11 for (
auto iTr =
tracks.begin(); iTr !=
tracks.end(); ++iTr) {
12 if (&(*iTr) ==
track) {
13 return iTr -
tracks.begin();
26 std::vector<OnTrackCluster>
clusters{};
28 for (
const auto&
assoc : *trajTrackAssociations) {
29 const auto traj =
assoc.key.get();
32 for (
const auto& meas : traj->measurements()) {
33 const auto& trajState = meas.updatedState();
34 if (!trajState.isValid())
38 const auto trechit = meas.recHit()->hit();
39 const auto simple1d = dynamic_cast<const SiStripRecHit1D*>(trechit);
40 const auto simple = dynamic_cast<const SiStripRecHit2D*>(trechit);
41 const auto matched = dynamic_cast<const SiStripMatchedRecHit2D*>(trechit);
46 clusters.emplace_back(simple->geographicalId().rawId(), simple->cluster().get(), traj,
track, meas);
47 }
else if (simple1d) {
48 clusters.emplace_back(simple1d->geographicalId().rawId(), simple1d->cluster().get(), traj,
track, meas);
55 std::vector<int> c_trackindex;
56 c_trackindex.reserve(
clusters.size());
57 std::vector<uint32_t> c_rawid;
61 c_rawid.push_back(clus.det);
63 addColumn(
out.get(),
"trackindex", c_trackindex,
"Track index");