Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxHitEval Class Reference

#include <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< PHG4Hit * > all_truth_hits (TrkrDefs::hitkey hit_key, const TrkrDefs::TrkrId trkrid)
 
PHG4Hitmax_truth_hit_by_energy (TrkrDefs::hitkey hit_key, const TrkrDefs::TrkrId trkrid)
 
std::set< PHG4Particle * > all_truth_particles (TrkrDefs::hitkey hit_key)
 
PHG4Particlemax_truth_particle_by_energy (TrkrDefs::hitkey hit_key)
 
std::set< PHG4Particle * > all_truth_particles (TrkrDefs::hitkey hit_key, const TrkrDefs::TrkrId trkrid)
 
PHG4Particlemax_truth_particle_by_energy (TrkrDefs::hitkey hit_key, const TrkrDefs::TrkrId trkrid)
 
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 = nullptr
 
TrkrClusterContainer_clustermap {}
 
TrkrHitTruthAssoc_hit_truth_map {}
 
PHG4HitContainer_g4hits_tpc = nullptr
 
PHG4HitContainer_g4hits_intt = nullptr
 
PHG4HitContainer_g4hits_mvtx = nullptr
 
PHG4HitContainer_g4hits_mms = nullptr
 
PHG4TruthInfoContainer_truthinfo
 
bool _strict = false
 
int _verbosity = 0
 
unsigned int _errors = 0
 
bool _do_cache = true
 
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 27 of file SvtxHitEval.cc.

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

References get_node_pointers().

+ Here is the call graph for this function:

SvtxHitEval::~SvtxHitEval ( )
virtual

Definition at line 33 of file SvtxHitEval.cc.

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

References _errors, and _verbosity.

Member Function Documentation

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

Definition at line 699 of file SvtxHitEval.cc.

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

References _cache_all_hits_from_particle, _do_cache, _errors, _hitmap, _strict, _truthinfo, _verbosity, all_truth_hits(), assert, PHG4Particle::get_track_id(), 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 769 of file SvtxHitEval.cc.

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

References _cache_all_hits_from_g4hit, _do_cache, _errors, _hitmap, _strict, _verbosity, all_truth_hits(), assert, 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 103 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 103 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, assert, 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(), max_truth_hit_by_energy(), and TPCMLDataInterface::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::set< PHG4Hit * > SvtxHitEval::all_truth_hits ( TrkrDefs::hitkey  hit_key,
const TrkrDefs::TrkrId  trkrid 
)

Definition at line 238 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 238 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, assert, PHG4HitContainer::findHit(), TrkrHitTruthAssoc::getG4Hits(), TrkrHitSet::getHit(), TrkrHitSetContainer::getHitSets(), has_node_pointers(), TrkrDefs::inttId, TrkrDefs::micromegasId, TrkrDefs::mvtxId, PHWHERE, and TrkrDefs::tpcId.

+ Here is the call graph for this function:

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

Definition at line 443 of file SvtxHitEval.cc.

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

References _cache_all_truth_particles, _do_cache, _errors, _strict, _verbosity, all_truth_hits(), assert, 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:

std::set< PHG4Particle * > SvtxHitEval::all_truth_particles ( TrkrDefs::hitkey  hit_key,
const TrkrDefs::TrkrId  trkrid 
)

Definition at line 512 of file SvtxHitEval.cc.

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

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

+ Here is the call graph for this function:

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

Definition at line 845 of file SvtxHitEval.cc.

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

References _cache_best_hit_from_g4hit, _do_cache, _errors, _strict, _verbosity, all_hits_from(), assert, energy, 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 903 of file SvtxHitEval.cc.

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

References _cache_get_energy_contribution_g4particle, _do_cache, _errors, _strict, _verbosity, all_truth_hits(), assert, energy, get_truth_eval(), has_node_pointers(), and PHWHERE.

Referenced by best_hit_from(), SvtxEvaluatorHaiwang::fillOutputNtuples(), psTOFTimezeroEval::fillOutputNtuples(), 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 958 of file SvtxHitEval.cc.

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

References _cache_get_energy_contribution_g4hit, _do_cache, _errors, _strict, _verbosity, all_truth_hits(), assert, energy, 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 76 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 76 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 1017 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 1017 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 1041 of file SvtxHitEval.cc.

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

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

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 331 of file SvtxHitEval.cc.

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

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

Referenced by psTOFTimezeroEval::fillOutputNtuples(), SvtxEvaluatorHaiwang::fillOutputNtuples(), and SvtxEvaluator::fillOutputNtuples().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4Hit * SvtxHitEval::max_truth_hit_by_energy ( TrkrDefs::hitkey  hit_key,
const TrkrDefs::TrkrId  trkrid 
)

Definition at line 387 of file SvtxHitEval.cc.

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

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

+ Here is the call graph for this function:

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

Definition at line 581 of file SvtxHitEval.cc.

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

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

+ Here is the call graph for this function:

PHG4Particle * SvtxHitEval::max_truth_particle_by_energy ( TrkrDefs::hitkey  hit_key,
const TrkrDefs::TrkrId  trkrid 
)

Definition at line 640 of file SvtxHitEval.cc.

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

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

+ Here is the call graph for this function:

void SvtxHitEval::next_event ( PHCompositeNode topNode)

Definition at line 44 of file SvtxHitEval.cc.

View newest version in sPHENIX GitHub at line 44 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, SvtxTruthEval::set_verbosity(), and 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 104 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 104 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 103 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 103 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 99 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 99 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 101 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 101 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 105 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 105 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 107 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 107 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 106 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 106 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 100 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 100 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 102 of file SvtxHitEval.h.

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

Referenced by max_truth_particle_by_energy(), and next_event().

TrkrClusterContainer* SvtxHitEval::_clustermap {}
private

Definition at line 84 of file SvtxHitEval.h.

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

Referenced by get_node_pointers().

bool SvtxHitEval::_do_cache = true
private
unsigned int SvtxHitEval::_errors = 0
private
PHG4HitContainer* SvtxHitEval::_g4hits_intt = nullptr
private

Definition at line 88 of file SvtxHitEval.h.

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

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

PHG4HitContainer* SvtxHitEval::_g4hits_mms = nullptr
private

Definition at line 90 of file SvtxHitEval.h.

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

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

PHG4HitContainer* SvtxHitEval::_g4hits_mvtx = nullptr
private

Definition at line 89 of file SvtxHitEval.h.

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

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

PHG4HitContainer* SvtxHitEval::_g4hits_tpc = nullptr
private

Definition at line 87 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 87 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 85 of file SvtxHitEval.h.

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

Referenced by all_truth_hits(), and get_node_pointers().

TrkrHitSetContainer* SvtxHitEval::_hitmap = nullptr
private

Definition at line 83 of file SvtxHitEval.h.

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

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

bool SvtxHitEval::_strict = false
private
SvtxTruthEval SvtxHitEval::_trutheval
private

Definition at line 82 of file SvtxHitEval.h.

View newest version in sPHENIX GitHub at line 82 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 92 of file SvtxHitEval.h.

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

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

int SvtxHitEval::_verbosity = 0
private

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