42 edm4hep::TrackerHitPlaneCollection hits;
43 podio::UserDataCollection<std::int32_t> cluster_size;
44 podio::UserDataCollection<std::int32_t> tanagra_id;
46 const int ldtop = ph::LDTOP;
49 if (ldtop > 0 && ph::IQ(ldtop - 3) >= kPxtdLink) {
50 if (
const int l = ph::LQ(ldtop - kPxtdLink); l > 0) {
51 const int blen = ph::IQ(l - 1);
52 const int nhit = ph::IQ(l + 1);
54 for (
int i = 0; i < nhit; ++i) {
55 if (w + kWordsPerHit - 1 > blen)
break;
56 const int npix = ph::IQ(l + w + 9) % 100;
58 auto hit = hits.create();
59 hit.setCellID(
static_cast<std::uint64_t
>(ph::IQ(l + w)));
60 hit.setPosition({coord(l + w + 1), coord(l + w + 2), coord(l + w + 3)});
61 hit.setDu(
static_cast<float>(coord(l + w + 6)));
62 hit.setDv(
static_cast<float>(coord(l + w + 7)));
63 hit.setU({kNotMeasured, kNotMeasured});
64 hit.setV({kNotMeasured, kNotMeasured});
66 cluster_size.push_back(npix);
67 tanagra_id.push_back(ph::IQ(l + w + 8));
69 w += kWordsPerHit + npix;