43 edm4hep::TrackerHit3DCollection pointsCol;
44 edm4hep::TrackerHit3DCollection hitsCol;
48 for (
int n = 1; n <= sk::NVDUN; ++n) {
49 fillHit(pointsCol.create(),
50 sk::KVDUN(sk::IVDUMOD, n), sk::QVDUN(sk::IVDUXLC, n),
51 sk::QVDUN(sk::IVDURCO, n), sk::QVDUN(sk::IVDURPH, n),
52 sk::QVDUN(sk::IVDUSTN, n));
66 const int ntrk = std::min(sk::NCVECP,
static_cast<int>(skelana::MTRACK));
67 out.
vecp_to_hits.assign(
static_cast<std::size_t
>(std::max(0, ntrk) + 1), {});
68 for (
int j = 1; j <= ntrk; ++j) {
69 const int nhit = sk::NASHT(j);
70 if (nhit <= 0)
continue;
71 for (
int n = 1; n <= nhit && n <= sk::NHIT; ++n) {
72 auto hit = hitsCol.create();
74 sk::KVDAS(sk::IVDAMOD, j, n), sk::QVDAS(sk::IVDAXLC, j, n),
75 sk::QVDAS(sk::IVDARCO, j, n), sk::QVDAS(sk::IVDARPH, j, n),
76 sk::QVDAS(sk::IVDASTN, j, n));
77 out.
vecp_to_hits[
static_cast<std::size_t
>(j)].push_back(hit);
83 ctx_.vd_hits = std::move(out);