ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/simulation/g4simulation/g4eval/CaloRawTowerEval.h>
Public Member Functions | |
CaloRawTowerEval (PHCompositeNode *topNode, const std::string &caloname) | |
example caloname: CEMC, HCALIN, HCALOUT | |
virtual | ~CaloRawTowerEval () |
int | get_caloid () |
get the hash id for this calorimeter volume | |
void | next_event (PHCompositeNode *topNode) |
reinitialize the eval for a new event | |
void | do_caching (bool do_cache) |
activate or deactivate the memory caching inside the evaluation module | |
void | set_strict (bool strict) |
unsigned int | get_errors () |
get a count of the errors discovered thus far | |
void | set_verbosity (int verbosity) |
adjust the messaging from the evalutaion module | |
CaloTruthEval * | get_truth_eval () |
get a copy of the lower level truth eval and its memory cache | |
bool | has_reduced_node_pointers () |
has the eval initialized correctly for reduced sim DST nodes? | |
std::set< PHG4Shower * > | all_truth_primary_showers (RawTower *tower) |
what primary showers contributed energy to this tower? | |
PHG4Shower * | max_truth_primary_shower_by_energy (RawTower *tower) |
which primary shower contributed the most energy to this tower? | |
std::set< RawTower * > | all_towers_from (PHG4Shower *primary) |
what towers did this primary shower contribute energy to? | |
RawTower * | best_tower_from (PHG4Shower *primary) |
which tower did this primary shower contribute the most energy to? | |
float | get_energy_contribution (RawTower *tower, PHG4Shower *primary) |
how much energy did this primary shower contribute to this tower? | |
std::set< PHG4Particle * > | all_truth_primary_particles (RawTower *tower) |
what particles contributed energy to this tower? | |
PHG4Particle * | max_truth_primary_particle_by_energy (RawTower *tower) |
which particle contributed the most energy to this tower? | |
std::set< RawTower * > | all_towers_from (PHG4Particle *primary) |
what towers did this primary truth particle contribute energy to? | |
RawTower * | best_tower_from (PHG4Particle *primary) |
which tower did the primary truth particle contribute the most energy to? | |
float | get_energy_contribution (RawTower *tower, PHG4Particle *primary) |
how much energy did this primary truth particle contribute to this tower? | |
bool | has_full_node_pointers () |
has the eval initialized correctly for full sim DST nodes? | |
std::set< PHG4Hit * > | all_truth_hits (RawTower *tower) |
what truth hits contributed energy to this tower? | |
Private Member Functions | |
void | get_node_pointers (PHCompositeNode *topNode) |
Definition at line 23 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 23 of file CaloRawTowerEval.h
CaloRawTowerEval::CaloRawTowerEval | ( | PHCompositeNode * | topNode, |
const std::string & | caloname | ||
) |
example caloname: CEMC, HCALIN, HCALOUT
Definition at line 27 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 27 of file CaloRawTowerEval.cc
References get_node_pointers().
|
virtual |
Definition at line 53 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 53 of file CaloRawTowerEval.cc
References _errors, and _verbosity.
std::set< RawTower * > CaloRawTowerEval::all_towers_from | ( | PHG4Shower * | primary | ) |
what towers did this primary shower contribute energy to?
Definition at line 282 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 282 of file CaloRawTowerEval.cc
References _cache_all_towers_from_primary_shower, _do_cache, _errors, _strict, _towers, _trutheval, all_truth_primary_showers(), PHG4Shower::get_id(), RawTowerContainer::getTowers(), has_reduced_node_pointers(), and CaloTruthEval::is_primary().
Referenced by all_towers_from(), and best_tower_from().
std::set< RawTower * > CaloRawTowerEval::all_towers_from | ( | PHG4Particle * | primary | ) |
what towers did this primary truth particle contribute energy to?
Definition at line 493 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 493 of file CaloRawTowerEval.cc
References _cache_all_towers_from_primary_particle, _do_cache, _errors, _strict, _trutheval, all_towers_from(), CaloTruthEval::get_primary_particle(), CaloTruthEval::get_primary_shower(), get_truth_eval(), has_reduced_node_pointers(), and CaloTruthEval::is_primary().
what truth hits contributed energy to this tower?
Definition at line 690 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 690 of file CaloRawTowerEval.cc
References _cache_all_truth_hits, _do_cache, _errors, _g4cells, _g4hits, _strict, PHG4CellContainer::findCell(), PHG4HitContainer::findHit(), RawTower::get_g4cells(), PHG4Cell::get_g4hits(), and has_full_node_pointers().
Referenced by CaloRawClusterEval::all_truth_hits(), and JetRecoEval::all_truth_hits().
std::set< PHG4Particle * > CaloRawTowerEval::all_truth_primary_particles | ( | RawTower * | tower | ) |
what particles contributed energy to this tower?
Definition at line 395 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 395 of file CaloRawTowerEval.cc
References _cache_all_truth_primary_particles, _do_cache, _errors, _strict, all_truth_primary_showers(), CaloTruthEval::get_primary_particle(), get_truth_eval(), and has_reduced_node_pointers().
Referenced by JetRecoEval::all_truth_particles().
std::set< PHG4Shower * > CaloRawTowerEval::all_truth_primary_showers | ( | RawTower * | tower | ) |
what primary showers contributed energy to this tower?
Definition at line 102 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 102 of file CaloRawTowerEval.cc
References _cache_all_truth_primary_showers, _do_cache, _errors, _strict, _truthinfo, RawTower::get_g4showers(), PHG4TruthInfoContainer::GetShower(), and has_reduced_node_pointers().
Referenced by all_towers_from(), all_truth_primary_particles(), CaloRawClusterEval::all_truth_primary_showers(), JetRecoEval::all_truth_showers(), and max_truth_primary_shower_by_energy().
RawTower * CaloRawTowerEval::best_tower_from | ( | PHG4Shower * | primary | ) |
which tower did this primary shower contribute the most energy to?
Definition at line 219 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 219 of file CaloRawTowerEval.cc
References _cache_best_tower_from_primary_shower, _do_cache, _errors, _strict, _trutheval, all_towers_from(), energy, FLT_MAX, get_energy_contribution(), has_reduced_node_pointers(), and CaloTruthEval::is_primary().
Referenced by best_tower_from().
RawTower * CaloRawTowerEval::best_tower_from | ( | PHG4Particle * | primary | ) |
which tower did the primary truth particle contribute the most energy to?
Definition at line 550 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 550 of file CaloRawTowerEval.cc
References _cache_best_tower_from_primary_particle, _do_cache, _errors, _strict, _trutheval, best_tower_from(), CaloTruthEval::get_primary_particle(), CaloTruthEval::get_primary_shower(), get_truth_eval(), has_reduced_node_pointers(), and CaloTruthEval::is_primary().
|
inline |
activate or deactivate the memory caching inside the evaluation module
Definition at line 37 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 37 of file CaloRawTowerEval.h
References _do_cache, _trutheval, and CaloTruthEval::do_caching().
Referenced by CaloRawClusterEval::do_caching().
|
inline |
get the hash id for this calorimeter volume
Definition at line 31 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 31 of file CaloRawTowerEval.h
References CaloTruthEval::get_caloid(), and get_truth_eval().
float CaloRawTowerEval::get_energy_contribution | ( | RawTower * | tower, |
PHG4Shower * | primary | ||
) |
how much energy did this primary shower contribute to this tower?
Definition at line 350 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 350 of file CaloRawTowerEval.cc
References _cache_get_energy_contribution_primary_shower, _do_cache, _errors, _strict, _trutheval, energy, RawTower::find_g4shower(), RawTower::get_g4showers(), PHG4Shower::get_id(), has_reduced_node_pointers(), and CaloTruthEval::is_primary().
Referenced by best_tower_from(), CaloEvaluator::fillOutputNtuples(), CaloRawClusterEval::get_energy_contribution(), get_energy_contribution(), JetRecoEval::get_energy_contribution(), and max_truth_primary_shower_by_energy().
float CaloRawTowerEval::get_energy_contribution | ( | RawTower * | tower, |
PHG4Particle * | primary | ||
) |
how much energy did this primary truth particle contribute to this tower?
Definition at line 605 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 605 of file CaloRawTowerEval.cc
References _cache_get_energy_contribution_primary_particle, _do_cache, _errors, _strict, _trutheval, energy, get_energy_contribution(), CaloTruthEval::get_primary_particle(), CaloTruthEval::get_primary_shower(), get_truth_eval(), has_reduced_node_pointers(), and CaloTruthEval::is_primary().
|
inline |
get a count of the errors discovered thus far
Definition at line 52 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 52 of file CaloRawTowerEval.h
References _errors, _trutheval, and CaloTruthEval::get_errors().
Referenced by CaloRawClusterEval::get_errors().
|
private |
Definition at line 764 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 764 of file CaloRawTowerEval.cc
References _caloname, _g4cells, _g4hits, _towers, and _truthinfo.
Referenced by CaloRawTowerEval(), and next_event().
|
inline |
get a copy of the lower level truth eval and its memory cache
Definition at line 62 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 62 of file CaloRawTowerEval.h
References _trutheval.
Referenced by all_towers_from(), all_truth_primary_particles(), best_tower_from(), get_caloid(), get_energy_contribution(), CaloRawClusterEval::get_truth_eval(), has_full_node_pointers(), has_reduced_node_pointers(), and max_truth_primary_particle_by_energy().
bool CaloRawTowerEval::has_full_node_pointers | ( | ) |
has the eval initialized correctly for full sim DST nodes?
Definition at line 663 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 663 of file CaloRawTowerEval.cc
References _g4cells, _g4hits, _strict, _towers, _truthinfo, and get_truth_eval().
Referenced by all_truth_hits().
bool CaloRawTowerEval::has_reduced_node_pointers | ( | ) |
has the eval initialized correctly for reduced sim DST nodes?
Definition at line 85 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 85 of file CaloRawTowerEval.cc
References _strict, _towers, _truthinfo, and get_truth_eval().
Referenced by all_towers_from(), all_truth_primary_particles(), all_truth_primary_showers(), best_tower_from(), get_energy_contribution(), max_truth_primary_particle_by_energy(), and max_truth_primary_shower_by_energy().
PHG4Particle * CaloRawTowerEval::max_truth_primary_particle_by_energy | ( | RawTower * | tower | ) |
which particle contributed the most energy to this tower?
Definition at line 452 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 452 of file CaloRawTowerEval.cc
References _cache_max_truth_primary_particle_by_energy, _do_cache, _errors, _strict, CaloTruthEval::get_primary_particle(), get_truth_eval(), has_reduced_node_pointers(), and max_truth_primary_shower_by_energy().
Referenced by CaloEvaluator::fillOutputNtuples(), EventEvaluator::fillOutputNtuples(), and EventEvaluatorEIC::fillOutputNtuples().
PHG4Shower * CaloRawTowerEval::max_truth_primary_shower_by_energy | ( | RawTower * | tower | ) |
which primary shower contributed the most energy to this tower?
Definition at line 157 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 157 of file CaloRawTowerEval.cc
References _cache_max_truth_primary_shower_by_energy, _do_cache, _errors, _strict, all_truth_primary_showers(), e, FLT_MAX, get_energy_contribution(), and has_reduced_node_pointers().
Referenced by max_truth_primary_particle_by_energy().
void CaloRawTowerEval::next_event | ( | PHCompositeNode * | topNode | ) |
reinitialize the eval for a new event
Definition at line 64 of file CaloRawTowerEval.cc.
View newest version in sPHENIX GitHub at line 64 of file CaloRawTowerEval.cc
References _cache_all_towers_from_primary_particle, _cache_all_towers_from_primary_shower, _cache_all_truth_hits, _cache_all_truth_primary_particles, _cache_all_truth_primary_showers, _cache_best_tower_from_primary_particle, _cache_best_tower_from_primary_shower, _cache_get_energy_contribution_primary_particle, _cache_get_energy_contribution_primary_shower, _cache_max_truth_primary_particle_by_energy, _cache_max_truth_primary_shower_by_energy, _trutheval, get_node_pointers(), and CaloTruthEval::next_event().
Referenced by CaloRawClusterEval::next_event().
|
inline |
strict mode will assert when an error is detected non-strict mode will notice and report at the End()
Definition at line 45 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 45 of file CaloRawTowerEval.h
References _strict, _trutheval, and CaloTruthEval::set_strict().
Referenced by CaloRawClusterEval::set_strict().
adjust the messaging from the evalutaion module
Definition at line 55 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 55 of file CaloRawTowerEval.h
References _trutheval, _verbosity, and CaloTruthEval::set_verbosity().
Referenced by CaloRawClusterEval::set_verbosity().
|
private |
Definition at line 135 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 135 of file CaloRawTowerEval.h
Referenced by all_towers_from(), and next_event().
|
private |
Definition at line 129 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 129 of file CaloRawTowerEval.h
Referenced by all_towers_from(), and next_event().
Definition at line 139 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 139 of file CaloRawTowerEval.h
Referenced by all_truth_hits(), and next_event().
|
private |
Definition at line 133 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 133 of file CaloRawTowerEval.h
Referenced by all_truth_primary_particles(), and next_event().
|
private |
Definition at line 127 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 127 of file CaloRawTowerEval.h
Referenced by all_truth_primary_showers(), and next_event().
|
private |
Definition at line 136 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 136 of file CaloRawTowerEval.h
Referenced by best_tower_from(), and next_event().
|
private |
Definition at line 130 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 130 of file CaloRawTowerEval.h
Referenced by best_tower_from(), and next_event().
|
private |
Definition at line 137 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 137 of file CaloRawTowerEval.h
Referenced by get_energy_contribution(), and next_event().
|
private |
Definition at line 131 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 131 of file CaloRawTowerEval.h
Referenced by get_energy_contribution(), and next_event().
|
private |
Definition at line 134 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 134 of file CaloRawTowerEval.h
Referenced by max_truth_primary_particle_by_energy(), and next_event().
|
private |
Definition at line 128 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 128 of file CaloRawTowerEval.h
Referenced by max_truth_primary_shower_by_energy(), and next_event().
|
private |
Definition at line 114 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 114 of file CaloRawTowerEval.h
Referenced by get_node_pointers().
|
private |
Definition at line 125 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 125 of file CaloRawTowerEval.h
Referenced by all_towers_from(), all_truth_hits(), all_truth_primary_particles(), all_truth_primary_showers(), best_tower_from(), do_caching(), get_energy_contribution(), max_truth_primary_particle_by_energy(), and max_truth_primary_shower_by_energy().
|
private |
Definition at line 123 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 123 of file CaloRawTowerEval.h
Referenced by all_towers_from(), all_truth_hits(), all_truth_primary_particles(), all_truth_primary_showers(), best_tower_from(), get_energy_contribution(), get_errors(), max_truth_primary_particle_by_energy(), max_truth_primary_shower_by_energy(), and ~CaloRawTowerEval().
|
private |
Definition at line 117 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 117 of file CaloRawTowerEval.h
Referenced by all_truth_hits(), get_node_pointers(), and has_full_node_pointers().
|
private |
Definition at line 118 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 118 of file CaloRawTowerEval.h
Referenced by all_truth_hits(), get_node_pointers(), and has_full_node_pointers().
|
private |
Definition at line 121 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 121 of file CaloRawTowerEval.h
Referenced by all_towers_from(), all_truth_hits(), all_truth_primary_particles(), all_truth_primary_showers(), best_tower_from(), get_energy_contribution(), has_full_node_pointers(), has_reduced_node_pointers(), max_truth_primary_particle_by_energy(), max_truth_primary_shower_by_energy(), and set_strict().
|
private |
Definition at line 116 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 116 of file CaloRawTowerEval.h
Referenced by all_towers_from(), get_node_pointers(), has_full_node_pointers(), and has_reduced_node_pointers().
|
private |
Definition at line 115 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 115 of file CaloRawTowerEval.h
Referenced by all_towers_from(), best_tower_from(), do_caching(), get_energy_contribution(), get_errors(), get_truth_eval(), next_event(), set_strict(), and set_verbosity().
|
private |
Definition at line 119 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 119 of file CaloRawTowerEval.h
Referenced by all_truth_primary_showers(), get_node_pointers(), has_full_node_pointers(), and has_reduced_node_pointers().
|
private |
Definition at line 122 of file CaloRawTowerEval.h.
View newest version in sPHENIX GitHub at line 122 of file CaloRawTowerEval.h
Referenced by set_verbosity(), and ~CaloRawTowerEval().