EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxHitEval Class Reference

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4eval/SvtxHitEval.h>

+ Collaboration diagram for SvtxHitEval:

Public Member Functions

 SvtxHitEval (PHCompositeNode *topNode)
 
virtual ~SvtxHitEval ()
 
void next_event (PHCompositeNode *topNode)
 
void do_caching (bool do_cache)
 
void set_strict (bool strict)
 
void set_verbosity (int verbosity)
 
SvtxTruthEvalget_truth_eval ()
 
std::set< PHG4Hit * > all_truth_hits (TrkrDefs::hitkey hit_key)
 
PHG4Hitmax_truth_hit_by_energy (TrkrDefs::hitkey hit_key)
 
std::set< PHG4Particle * > all_truth_particles (TrkrDefs::hitkey hit_key)
 
PHG4Particlemax_truth_particle_by_energy (TrkrDefs::hitkey hit_key)
 
std::set< TrkrDefs::hitkeyall_hits_from (PHG4Particle *truthparticle)
 
std::set< TrkrDefs::hitkeyall_hits_from (PHG4Hit *truthhit)
 
TrkrDefs::hitkey best_hit_from (PHG4Hit *truthhit)
 
float get_energy_contribution (TrkrDefs::hitkey, PHG4Particle *truthparticle)
 
float get_energy_contribution (TrkrDefs::hitkey, PHG4Hit *truthhit)
 
unsigned int get_errors ()
 

Private Member Functions

void get_node_pointers (PHCompositeNode *topNode)
 
bool has_node_pointers ()
 

Private Attributes

SvtxTruthEval _trutheval
 
TrkrHitSetContainer_hitmap
 
TrkrClusterContainer_clustermap
 
TrkrHitTruthAssoc_hit_truth_map
 
PHG4HitContainer_g4hits_tpc
 
PHG4HitContainer_g4hits_intt
 
PHG4HitContainer_g4hits_mvtx
 
PHG4HitContainer_g4hits_mms
 
PHG4TruthInfoContainer_truthinfo
 
bool _strict
 
int _verbosity
 
unsigned int _errors
 
bool _do_cache
 
std::map< TrkrDefs::hitkey,
std::set< PHG4Hit * > > 
_cache_all_truth_hits
 
std::map< TrkrDefs::hitkey,
PHG4Hit * > 
_cache_max_truth_hit_by_energy
 
std::map< TrkrDefs::hitkey,
std::set< PHG4Particle * > > 
_cache_all_truth_particles
 
std::map< TrkrDefs::hitkey,
PHG4Particle * > 
_cache_max_truth_particle_by_energy
 
std::map< PHG4Particle
*, std::set< TrkrDefs::hitkey > > 
_cache_all_hits_from_particle
 
std::map< PHG4Hit *, std::set
< TrkrDefs::hitkey > > 
_cache_all_hits_from_g4hit
 
std::map< PHG4Hit
*, TrkrDefs::hitkey
_cache_best_hit_from_g4hit
 
std::map< std::pair
< TrkrDefs::hitkey,
PHG4Particle * >, float > 
_cache_get_energy_contribution_g4particle
 
std::map< std::pair
< TrkrDefs::hitkey, PHG4Hit * >
, float > 
_cache_get_energy_contribution_g4hit
 

Detailed Description

Definition at line 23 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 23 of file SvtxHitEval.h

Constructor & Destructor Documentation

SvtxHitEval::SvtxHitEval ( PHCompositeNode topNode)

Definition at line 29 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 29 of file SvtxHitEval.cc

References get_node_pointers().

+ Here is the call graph for this function:

SvtxHitEval::~SvtxHitEval ( )
virtual

Definition at line 57 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 57 of file SvtxHitEval.cc

References _errors, and _verbosity.

Member Function Documentation

std::set< TrkrDefs::hitkey > SvtxHitEval::all_hits_from ( PHG4Particle truthparticle)

Definition at line 403 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 403 of file SvtxHitEval.cc

References _cache_all_hits_from_particle, _do_cache, _errors, _hitmap, _strict, _truthinfo, _verbosity, all_truth_hits(), PHG4Particle::get_track_id(), PHG4Hit::get_trkid(), TrkrHitSetContainer::getHitSets(), PHG4TruthInfoContainer::GetParticle(), has_node_pointers(), particle, and PHWHERE.

Referenced by best_hit_from().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::set< TrkrDefs::hitkey > SvtxHitEval::all_hits_from ( PHG4Hit truthhit)

Definition at line 467 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 467 of file SvtxHitEval.cc

References _cache_all_hits_from_g4hit, _do_cache, _errors, _hitmap, _strict, _verbosity, all_truth_hits(), PHG4Hit::get_hit_id(), PHG4Hit::get_layer(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), has_node_pointers(), and PHWHERE.

+ Here is the call graph for this function:

std::set< PHG4Hit * > SvtxHitEval::all_truth_hits ( TrkrDefs::hitkey  hit_key)

Definition at line 127 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 127 of file SvtxHitEval.cc

References _cache_all_truth_hits, _do_cache, _errors, _g4hits_intt, _g4hits_mms, _g4hits_mvtx, _g4hits_tpc, _hit_truth_map, _hitmap, _strict, _verbosity, PHG4HitContainer::findHit(), TrkrHitTruthAssoc::getG4Hits(), TrkrHitSet::getHit(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getTrkrId(), has_node_pointers(), TrkrDefs::inttId, TrkrDefs::micromegasId, TrkrDefs::mvtxId, PHWHERE, and TrkrDefs::tpcId.

Referenced by all_hits_from(), all_truth_particles(), get_energy_contribution(), and max_truth_hit_by_energy().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::set< PHG4Particle * > SvtxHitEval::all_truth_particles ( TrkrDefs::hitkey  hit_key)

Definition at line 292 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 292 of file SvtxHitEval.cc

References _cache_all_truth_particles, _do_cache, _errors, _strict, _verbosity, all_truth_hits(), SvtxTruthEval::get_particle(), get_truth_eval(), has_node_pointers(), particle, and PHWHERE.

Referenced by max_truth_particle_by_energy().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TrkrDefs::hitkey SvtxHitEval::best_hit_from ( PHG4Hit truthhit)

Definition at line 534 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 534 of file SvtxHitEval.cc

References _cache_best_hit_from_g4hit, _do_cache, _errors, _strict, _verbosity, all_hits_from(), get_energy_contribution(), has_node_pointers(), and PHWHERE.

+ Here is the call graph for this function:

void SvtxHitEval::do_caching ( bool  do_cache)
inline

Definition at line 30 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 30 of file SvtxHitEval.h

References _do_cache, _trutheval, and SvtxTruthEval::do_caching().

Referenced by SvtxClusterEval::do_caching().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

float SvtxHitEval::get_energy_contribution ( TrkrDefs::hitkey  hit_key,
PHG4Particle truthparticle 
)

Definition at line 586 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 586 of file SvtxHitEval.cc

References _cache_get_energy_contribution_g4particle, _do_cache, _errors, _strict, _verbosity, all_truth_hits(), PHG4Hit::get_edep(), get_truth_eval(), has_node_pointers(), SvtxTruthEval::is_g4hit_from_particle(), and PHWHERE.

Referenced by best_hit_from(), SvtxEvaluator::fillOutputNtuples(), and max_truth_particle_by_energy().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

float SvtxHitEval::get_energy_contribution ( TrkrDefs::hitkey  hit_key,
PHG4Hit truthhit 
)

Definition at line 635 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 635 of file SvtxHitEval.cc

References _cache_get_energy_contribution_g4hit, _do_cache, _errors, _strict, _verbosity, all_truth_hits(), PHG4Hit::get_edep(), PHG4Hit::get_hit_id(), has_node_pointers(), and PHWHERE.

+ Here is the call graph for this function:

unsigned int SvtxHitEval::get_errors ( )
inline

Definition at line 68 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 68 of file SvtxHitEval.h

References _errors, _trutheval, and SvtxTruthEval::get_errors().

Referenced by SvtxClusterEval::get_errors().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxHitEval::get_node_pointers ( PHCompositeNode topNode)
private

Definition at line 685 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 685 of file SvtxHitEval.cc

References _clustermap, _g4hits_intt, _g4hits_mms, _g4hits_mvtx, _g4hits_tpc, _hit_truth_map, _hitmap, and _truthinfo.

Referenced by next_event(), and SvtxHitEval().

+ Here is the caller graph for this function:

SvtxTruthEval* SvtxHitEval::get_truth_eval ( )
inline

Definition at line 47 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 47 of file SvtxHitEval.h

References _trutheval.

Referenced by all_truth_particles(), get_energy_contribution(), and SvtxClusterEval::get_truth_eval().

+ Here is the caller graph for this function:

bool SvtxHitEval::has_node_pointers ( )
private

Definition at line 707 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 707 of file SvtxHitEval.cc

References _g4hits_intt, _g4hits_mms, _g4hits_mvtx, _g4hits_tpc, _hitmap, _strict, and _truthinfo.

Referenced by all_hits_from(), all_truth_hits(), all_truth_particles(), best_hit_from(), get_energy_contribution(), max_truth_hit_by_energy(), and max_truth_particle_by_energy().

+ Here is the caller graph for this function:

PHG4Hit * SvtxHitEval::max_truth_hit_by_energy ( TrkrDefs::hitkey  hit_key)

Definition at line 242 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 242 of file SvtxHitEval.cc

References _cache_max_truth_hit_by_energy, _do_cache, _errors, _strict, _verbosity, all_truth_hits(), PHG4Hit::get_edep(), has_node_pointers(), and PHWHERE.

Referenced by SvtxEvaluator::fillOutputNtuples().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4Particle * SvtxHitEval::max_truth_particle_by_energy ( TrkrDefs::hitkey  hit_key)

Definition at line 350 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 350 of file SvtxHitEval.cc

References _cache_max_truth_particle_by_energy, _do_cache, _errors, _strict, _verbosity, all_truth_particles(), Acts::UnitConstants::e, get_energy_contribution(), has_node_pointers(), particle, and PHWHERE.

+ Here is the call graph for this function:

void SvtxHitEval::next_event ( PHCompositeNode topNode)

Definition at line 68 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 68 of file SvtxHitEval.cc

References _cache_all_hits_from_g4hit, _cache_all_hits_from_particle, _cache_all_truth_hits, _cache_all_truth_particles, _cache_best_hit_from_g4hit, _cache_get_energy_contribution_g4hit, _cache_get_energy_contribution_g4particle, _cache_max_truth_hit_by_energy, _cache_max_truth_particle_by_energy, _trutheval, get_node_pointers(), and SvtxTruthEval::next_event().

Referenced by SvtxClusterEval::next_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxHitEval::set_strict ( bool  strict)
inline

Definition at line 35 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 35 of file SvtxHitEval.h

References _strict, _trutheval, and SvtxTruthEval::set_strict().

Referenced by SvtxClusterEval::set_strict().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxHitEval::set_verbosity ( int  verbosity)
inline

Definition at line 40 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 40 of file SvtxHitEval.h

References _trutheval, _verbosity, and SvtxTruthEval::set_verbosity().

Referenced by SvtxClusterEval::set_verbosity().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::map<PHG4Hit*, std::set<TrkrDefs::hitkey> > SvtxHitEval::_cache_all_hits_from_g4hit
private

Definition at line 96 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 96 of file SvtxHitEval.h

Referenced by all_hits_from(), and next_event().

std::map<PHG4Particle*, std::set<TrkrDefs::hitkey> > SvtxHitEval::_cache_all_hits_from_particle
private

Definition at line 95 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 95 of file SvtxHitEval.h

Referenced by all_hits_from(), and next_event().

std::map<TrkrDefs::hitkey, std::set<PHG4Hit*> > SvtxHitEval::_cache_all_truth_hits
private

Definition at line 91 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 91 of file SvtxHitEval.h

Referenced by all_truth_hits(), and next_event().

std::map<TrkrDefs::hitkey, std::set<PHG4Particle*> > SvtxHitEval::_cache_all_truth_particles
private

Definition at line 93 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 93 of file SvtxHitEval.h

Referenced by all_truth_particles(), and next_event().

std::map<PHG4Hit*, TrkrDefs::hitkey> SvtxHitEval::_cache_best_hit_from_g4hit
private

Definition at line 97 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 97 of file SvtxHitEval.h

Referenced by best_hit_from(), and next_event().

std::map<std::pair<TrkrDefs::hitkey, PHG4Hit*>, float> SvtxHitEval::_cache_get_energy_contribution_g4hit
private

Definition at line 99 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 99 of file SvtxHitEval.h

Referenced by get_energy_contribution(), and next_event().

std::map<std::pair<TrkrDefs::hitkey, PHG4Particle*>, float> SvtxHitEval::_cache_get_energy_contribution_g4particle
private

Definition at line 98 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 98 of file SvtxHitEval.h

Referenced by get_energy_contribution(), and next_event().

std::map<TrkrDefs::hitkey, PHG4Hit*> SvtxHitEval::_cache_max_truth_hit_by_energy
private

Definition at line 92 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 92 of file SvtxHitEval.h

Referenced by max_truth_hit_by_energy(), and next_event().

std::map<TrkrDefs::hitkey, PHG4Particle*> SvtxHitEval::_cache_max_truth_particle_by_energy
private

Definition at line 94 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 94 of file SvtxHitEval.h

Referenced by max_truth_particle_by_energy(), and next_event().

TrkrClusterContainer* SvtxHitEval::_clustermap
private

Definition at line 76 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 76 of file SvtxHitEval.h

Referenced by get_node_pointers().

bool SvtxHitEval::_do_cache
private
unsigned int SvtxHitEval::_errors
private
PHG4HitContainer* SvtxHitEval::_g4hits_intt
private

Definition at line 80 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 80 of file SvtxHitEval.h

Referenced by all_truth_hits(), get_node_pointers(), and has_node_pointers().

PHG4HitContainer* SvtxHitEval::_g4hits_mms
private

Definition at line 82 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 82 of file SvtxHitEval.h

Referenced by all_truth_hits(), get_node_pointers(), and has_node_pointers().

PHG4HitContainer* SvtxHitEval::_g4hits_mvtx
private

Definition at line 81 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 81 of file SvtxHitEval.h

Referenced by all_truth_hits(), get_node_pointers(), and has_node_pointers().

PHG4HitContainer* SvtxHitEval::_g4hits_tpc
private

Definition at line 79 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 79 of file SvtxHitEval.h

Referenced by all_truth_hits(), get_node_pointers(), and has_node_pointers().

TrkrHitTruthAssoc* SvtxHitEval::_hit_truth_map
private

Definition at line 77 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 77 of file SvtxHitEval.h

Referenced by all_truth_hits(), and get_node_pointers().

TrkrHitSetContainer* SvtxHitEval::_hitmap
private

Definition at line 75 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 75 of file SvtxHitEval.h

Referenced by all_hits_from(), all_truth_hits(), get_node_pointers(), and has_node_pointers().

bool SvtxHitEval::_strict
private
SvtxTruthEval SvtxHitEval::_trutheval
private

Definition at line 74 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 74 of file SvtxHitEval.h

Referenced by do_caching(), get_errors(), get_truth_eval(), next_event(), set_strict(), and set_verbosity().

PHG4TruthInfoContainer* SvtxHitEval::_truthinfo
private

Definition at line 84 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 84 of file SvtxHitEval.h

Referenced by all_hits_from(), get_node_pointers(), and has_node_pointers().

int SvtxHitEval::_verbosity
private

The documentation for this class was generated from the following files: