20 const auto& path =
pair->first;
21 const auto& state =
pair->second;
24 const auto& seed = path->front();
25 const auto* seedRecoTrack = seed.getSeed();
26 const auto* seedMCTrack = seedRecoTrack->getRelated<
RecoTrack>(
"MCRecoTracks");
29 const auto* wireHit = state->getWireHit();
30 const auto* cdcHit = wireHit->getHit();
34 while (seedMCParticle->getMother()) {
35 seedMCParticle = seedMCParticle->getMother();
39 var<
named(
"match")>() = seedMCTrack == hitMCTrack ?
true :
false;
40 var<
named(
"PDG")>() = seedMCParticle->getPDG();
A Class to store the Monte Carlo particle information.