5 #include <calobase/RawCluster.h>
6 #include <calobase/RawClusterContainer.h>
7 #include <calobase/RawTowerContainer.h>
23 , _towereval(topNode, caloname)
34 std::cout <<
"CaloRawClusterEval::~CaloRawClusterEval() - Error Count: " <<
_errors << std::endl;
93 return std::set<PHG4Shower*>();
103 return std::set<PHG4Shower*>();
108 std::map<RawCluster*, std::set<PHG4Shower*> >::iterator iter =
116 std::set<PHG4Shower*> truth_primary_showers;
121 iter != begin_end.second;
138 for (
auto shower : new_primary_showers)
150 truth_primary_showers.insert(
shower);
159 return truth_primary_showers;
182 std::map<RawCluster*, PHG4Shower*>::iterator iter =
193 float max_e = FLT_MAX * -1.0;
195 for (
auto primary : primary_showers)
215 max_primary = primary;
232 return std::set<RawCluster*>();
242 return std::set<RawCluster*>();
247 return std::set<RawCluster*>();
259 return std::set<RawCluster*>();
264 std::map<PHG4Shower*, std::set<RawCluster*> >::iterator iter =
282 for (
auto candidate : primary_showers)
296 clusters.insert(cluster);
346 std::map<PHG4Shower*, RawCluster*>::iterator iter =
355 float best_energy = FLT_MAX * -1.0;
357 for (
auto cluster : clusters)
374 if (energy > best_energy)
376 best_cluster = cluster;
402 else if (!cluster || !primary)
428 std::map<std::pair<RawCluster*, PHG4Shower*>,
float>::iterator iter =
441 iter != begin_end.second;
476 return std::set<PHG4Particle*>();
486 return std::set<PHG4Particle*>();
491 std::map<RawCluster*, std::set<PHG4Particle*> >::iterator iter =
499 std::set<PHG4Particle*> truth_primary_particles;
503 for (
auto shower : primary_showers)
527 truth_primary_particles.insert(particle);
535 return truth_primary_particles;
558 std::map<RawCluster*, PHG4Particle*>::iterator iter =
587 return std::set<RawCluster*>();
597 return std::set<RawCluster*>();
602 return std::set<RawCluster*>();
614 return std::set<RawCluster*>();
619 std::map<PHG4Particle*, std::set<RawCluster*> >::iterator iter =
681 std::map<PHG4Particle*, RawCluster*>::iterator iter =
718 else if (!cluster || !primary)
744 std::map<std::pair<RawCluster*, PHG4Particle*>,
float>::iterator iter =
804 return std::set<PHG4Hit*>();
814 return std::set<PHG4Hit*>();
819 std::map<RawCluster*, std::set<PHG4Hit*> >::iterator iter =
827 std::set<PHG4Hit*> truth_hits;
832 iter != begin_end.second;
849 for (
auto g4hit : new_hits)
861 truth_hits.insert(g4hit);
877 _clusters = findNode::getClass<RawClusterContainer>(topNode, nodename.c_str());
880 _towers = findNode::getClass<RawTowerContainer>(topNode, towername.c_str());