22 : _truthjetname(truthjetname)
23 , _svtxevalstack(topNode)
24 , _cemcevalstack(topNode,
"CEMC")
25 , _hcalinevalstack(topNode,
"HCALIN")
26 , _hcaloutevalstack(topNode,
"HCALOUT")
27 , _femcevalstack(topNode,
"FEMC")
28 , _fhcalevalstack(topNode,
"FHCAL")
29 , _eemcevalstack(topNode,
"EEMC")
40 std::cout <<
"JetTruthEval::~JetTruthEval() - Error Count: " <<
_errors << std::endl;
71 return std::set<PHG4Particle*>();
76 std::map<Jet*, std::set<PHG4Particle*> >::iterator iter =
84 std::set<PHG4Particle*> truth_particles;
93 unsigned int index = iter.second;
96 std::cout <<
PHWHERE <<
" truth jet contains something other than particles!" << std::endl;
106 else if (!truth_particle)
112 truth_particles.insert(truth_particle);
120 return truth_particles;
132 return std::set<PHG4Shower*>();
137 std::map<Jet*, std::set<PHG4Shower*> >::iterator iter =
145 std::set<PHG4Shower*> truth_showers;
150 for (
auto particle : truth_particles)
167 truth_showers.insert(shower);
176 return truth_showers;
188 return std::set<PHG4Hit*>();
193 std::map<Jet*, std::set<PHG4Hit*> >::iterator iter =
201 std::set<PHG4Hit*> truth_hits;
206 for (
auto particle : truth_particles)
222 for (
auto g4hit : svtx_g4hits)
234 truth_hits.insert(g4hit);
260 std::map<PHG4Particle*, Jet*>::iterator iter =
268 Jet* truth_jet =
nullptr;
276 for (
const std::pair<Jet::SRC, unsigned int>& jter
277 : candidate->get_comp_vec())
279 unsigned int index = jter.second;
286 else if (!constituent)
294 truth_jet = candidate;
315 _truthinfo = findNode::getClass<PHG4TruthInfoContainer>(topNode,
"G4TruthInfo");
318 std::cout <<
PHWHERE <<
" ERROR: Can't find G4TruthInfo" << std::endl;