21 const auto& path =
pair->first;
22 const auto& state =
pair->second;
25 const auto& seed = path->front();
26 const auto* seedRecoTrack = seed.getSeed();
27 const auto* seedEclShower = seedRecoTrack->getRelated<
ECLShower>(
"ECLShowers");
30 const auto* wireHit = state->getWireHit();
31 const auto* cdcHit = wireHit->getHit();
35 while (hitMCParticle->getMother()) {
36 hitMCParticle = hitMCParticle->getMother();
40 var<
named(
"match")>() = seedMCParticle == hitMCParticle ?
true :
false;
41 var<
named(
"PDG")>() = seedMCParticle->getPDG();
44 var<
named(
"seed_p_truth")>() = seedMom.R();
45 var<
named(
"seed_theta_truth")>() = seedMom.Theta() * 180. / M_PI;
46 var<
named(
"seed_pt_truth")>() = seedMom.Rho();
47 var<
named(
"seed_pz_truth")>() = seedMom.Z();
48 var<
named(
"seed_px_truth")>() = seedMom.X();
49 var<
named(
"seed_py_truth")>() = seedMom.Y();
A Class to store the Monte Carlo particle information.