20 : _basetrutheval(topNode)
25 , _g4hit_container_id(-1)
30 , _cache_get_shower_energy_deposit()
31 , _cache_all_truth_hits_g4shower()
32 , _cache_all_truth_hits_g4particle()
33 , _cache_get_primary_particle_g4hit()
34 , _cache_get_shower_hits_from_primary()
45 cout <<
"CaloTruthEval::~CaloTruthEval() - Error Count: " <<
_errors << endl;
164 std::map<PHG4Particle*, float>::iterator iter =
172 float shower_e = 0.0;
202 if (!shower)
return 0.0;
229 return std::set<PHG4Hit*>();
239 return std::set<PHG4Hit*>();
244 return std::set<PHG4Hit*>();
249 std::map<PHG4Shower*, std::set<PHG4Hit*> >::iterator iter =
257 std::set<PHG4Hit*> truth_hits;
263 for (std::set<PHG4HitDefs::keytype>::iterator jter = iter->second.begin();
264 jter != iter->second.end();
276 if (g4hit) truth_hits.insert(g4hit);
289 return std::set<PHG4Hit*>();
299 return std::set<PHG4Hit*>();
304 return std::set<PHG4Hit*>();
309 std::map<PHG4Particle*, std::set<PHG4Hit*> >::iterator iter =
317 std::set<PHG4Hit*> truth_hits;
324 PHG4Hit* g4hit = g4iter->second;
326 truth_hits.insert(g4hit);
359 std::map<PHG4Hit*, PHG4Particle*>::iterator iter =
393 return std::set<PHG4Hit*>();
403 return std::set<PHG4Hit*>();
406 if (!
is_primary(primary))
return std::set<PHG4Hit*>();
417 return std::set<PHG4Hit*>();
422 std::map<PHG4Particle*, std::set<PHG4Hit*> >::iterator iter =
430 std::set<PHG4Hit*> truth_hits;
443 _truthinfo = findNode::getClass<PHG4TruthInfoContainer>(topNode,
"G4TruthInfo");
446 _g4hits = findNode::getClass<PHG4HitContainer>(topNode, name.c_str());