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

#include <coresoftware/blob/master/simulation/g4simulation/g4eval/SvtxTrackEval.h>

+ Collaboration diagram for SvtxTrackEval:

Public Member Functions

 SvtxTrackEval (PHCompositeNode *topNode)
 
virtual ~SvtxTrackEval ()
 
void next_event (PHCompositeNode *topNode)
 
void do_caching (bool do_cache)
 
void set_strict (bool strict)
 
void set_verbosity (int verbosity)
 
SvtxClusterEvalget_cluster_eval ()
 
SvtxHitEvalget_hit_eval ()
 
SvtxTruthEvalget_truth_eval ()
 
std::set< PHG4Hit * > all_truth_hits (SvtxTrack *track)
 
std::set< PHG4Particle * > all_truth_particles (SvtxTrack *track)
 
PHG4Particlemax_truth_particle_by_nclusters (SvtxTrack *track)
 
std::set< SvtxTrack * > all_tracks_from (PHG4Particle *truthparticle)
 
SvtxTrackbest_track_from (PHG4Particle *truthparticle)
 
std::set< SvtxTrack * > all_tracks_from (PHG4Hit *truthhit)
 
std::set< SvtxTrack * > all_tracks_from (TrkrDefs::cluskey cluster_key)
 
SvtxTrackbest_track_from (TrkrDefs::cluskey cluster_key)
 
void create_cache_track_from_cluster ()
 
void calc_cluster_contribution (SvtxTrack *svtxtrack, PHG4Particle *truthparticle)
 
unsigned int get_nclusters_contribution (SvtxTrack *svtxtrack, PHG4Particle *truthparticle)
 
unsigned int get_layer_range_contribution (SvtxTrack *track, PHG4Particle *particle, unsigned int start_layer, unsigned int end_layer)
 
unsigned int get_nclusters_contribution_by_layer (SvtxTrack *svtxtrack, PHG4Particle *truthparticle)
 
unsigned int get_nwrongclusters_contribution (SvtxTrack *svtxtrack, PHG4Particle *truthparticle)
 
unsigned int get_errors ()
 
void set_track_nodename (const std::string &name)
 

Private Member Functions

void get_node_pointers (PHCompositeNode *topNode)
 
bool has_node_pointers ()
 

Private Attributes

SvtxClusterEval _clustereval
 
SvtxTrackMap_trackmap
 
bool _strict
 
int _verbosity
 
unsigned int _errors
 
bool _do_cache
 
bool _cache_track_from_cluster_exists
 
std::map< SvtxTrack
*, std::set< PHG4Hit * > > 
_cache_all_truth_hits
 
std::map< SvtxTrack
*, std::set< PHG4Particle * > > 
_cache_all_truth_particles
 
std::map< SvtxTrack
*, PHG4Particle * > 
_cache_max_truth_particle_by_nclusters
 
std::map< PHG4Particle
*, std::set< SvtxTrack * > > 
_cache_all_tracks_from_particle
 
std::map< PHG4Particle
*, SvtxTrack * > 
_cache_best_track_from_particle
 
std::map< PHG4Hit *, std::set
< SvtxTrack * > > 
_cache_all_tracks_from_g4hit
 
std::map< TrkrDefs::cluskey,
std::set< SvtxTrack * > > 
_cache_all_tracks_from_cluster
 
std::map< TrkrDefs::cluskey,
SvtxTrack * > 
_cache_best_track_from_cluster
 
std::map< std::pair< SvtxTrack
*, PHG4Particle * >, unsigned
int
_cache_get_nclusters_contribution
 
std::map< std::pair< SvtxTrack
*, PHG4Particle * >, unsigned
int
_cache_get_nclusters_contribution_by_layer
 
std::map< std::pair< SvtxTrack
*, PHG4Particle * >, unsigned
int
_cache_get_nwrongclusters_contribution
 
std::string m_TrackNodeName
 

Detailed Description

Definition at line 23 of file SvtxTrackEval.h.

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

Constructor & Destructor Documentation

SvtxTrackEval::SvtxTrackEval ( PHCompositeNode topNode)

Definition at line 22 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 22 of file SvtxTrackEval.cc

References get_node_pointers().

+ Here is the call graph for this function:

SvtxTrackEval::~SvtxTrackEval ( )
virtual

Definition at line 35 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 35 of file SvtxTrackEval.cc

References _errors, and _verbosity.

Member Function Documentation

std::set< SvtxTrack * > SvtxTrackEval::all_tracks_from ( PHG4Particle truthparticle)

Definition at line 244 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 244 of file SvtxTrackEval.cc

References _cache_all_tracks_from_particle, _clustereval, _do_cache, _errors, _strict, _trackmap, SvtxClusterEval::all_truth_particles(), SvtxTruthEval::are_same_particle(), SvtxTrackMap::begin(), SvtxTrack::begin_cluster_keys(), SvtxTrackMap::end(), SvtxTrack::end_cluster_keys(), get_truth_eval(), has_node_pointers(), and track.

Referenced by best_track_from(), and SvtxEvaluator::printOutputInfo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::set< SvtxTrack * > SvtxTrackEval::all_tracks_from ( PHG4Hit truthhit)

Definition at line 314 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 314 of file SvtxTrackEval.cc

References _cache_all_tracks_from_g4hit, _clustereval, _do_cache, _errors, _strict, _trackmap, SvtxClusterEval::all_truth_hits(), SvtxTrackMap::begin(), SvtxTrack::begin_cluster_keys(), SvtxTrackMap::end(), SvtxTrack::end_cluster_keys(), PHG4Hit::get_trkid(), has_node_pointers(), hits(), and track.

+ Here is the call graph for this function:

std::set< SvtxTrack * > SvtxTrackEval::all_tracks_from ( TrkrDefs::cluskey  cluster_key)

Definition at line 489 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 489 of file SvtxTrackEval.cc

References _cache_all_tracks_from_cluster, _cache_track_from_cluster_exists, _do_cache, _errors, _trackmap, SvtxTrackMap::begin(), SvtxTrack::begin_cluster_keys(), create_cache_track_from_cluster(), SvtxTrackMap::end(), SvtxTrack::end_cluster_keys(), has_node_pointers(), and track.

+ Here is the call graph for this function:

std::set< PHG4Hit * > SvtxTrackEval::all_truth_hits ( SvtxTrack track)

Definition at line 64 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 64 of file SvtxTrackEval.cc

References _cache_all_truth_hits, _clustereval, _do_cache, _errors, _strict, SvtxClusterEval::all_truth_hits(), SvtxTrack::begin_cluster_keys(), SvtxTrack::end_cluster_keys(), and has_node_pointers().

Referenced by JetRecoEval::all_truth_hits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::set< PHG4Particle * > SvtxTrackEval::all_truth_particles ( SvtxTrack track)

Definition at line 122 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 122 of file SvtxTrackEval.cc

References _cache_all_truth_particles, _clustereval, _do_cache, _errors, _strict, SvtxClusterEval::all_truth_particles(), SvtxTrack::begin_cluster_keys(), SvtxTrack::end_cluster_keys(), get_truth_eval(), has_node_pointers(), and track.

Referenced by JetRecoEval::all_truth_particles(), and max_truth_particle_by_nclusters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SvtxTrack * SvtxTrackEval::best_track_from ( PHG4Particle truthparticle)

Definition at line 389 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 389 of file SvtxTrackEval.cc

References _cache_best_track_from_particle, _do_cache, _errors, _strict, all_tracks_from(), get_nclusters_contribution(), has_node_pointers(), and track.

Referenced by SvtxEvaluator::fillOutputNtuples(), QAG4SimulationUpsilon::process_event(), QAG4SimulationTracking::process_event(), and QAG4SimulationCalorimeterSum::process_event_TrackProj().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SvtxTrack * SvtxTrackEval::best_track_from ( TrkrDefs::cluskey  cluster_key)

Definition at line 560 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 560 of file SvtxTrackEval.cc

References _cache_best_track_from_cluster, _do_cache, _errors, all_tracks_from(), FLT_MAX, SvtxTrack::get_quality(), and has_node_pointers().

+ Here is the call graph for this function:

void SvtxTrackEval::calc_cluster_contribution ( SvtxTrack svtxtrack,
PHG4Particle truthparticle 
)

Definition at line 672 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 672 of file SvtxTrackEval.cc

References _cache_get_nclusters_contribution, _cache_get_nwrongclusters_contribution, _clustereval, _errors, _strict, SvtxClusterEval::all_truth_particles(), SvtxTruthEval::are_same_particle(), SvtxTrack::begin_cluster_keys(), SvtxTrack::end_cluster_keys(), get_truth_eval(), and has_node_pointers().

Referenced by get_nclusters_contribution(), and get_nwrongclusters_contribution().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxTrackEval::create_cache_track_from_cluster ( )

Definition at line 438 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 438 of file SvtxTrackEval.cc

References _cache_all_tracks_from_cluster, _cache_track_from_cluster_exists, _errors, _trackmap, SvtxTrackMap::begin(), SvtxTrack::begin_cluster_keys(), SvtxTrackMap::end(), SvtxTrack::end_cluster_keys(), has_node_pointers(), and track.

Referenced by all_tracks_from().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxTrackEval::do_caching ( bool  do_cache)
inline

Definition at line 30 of file SvtxTrackEval.h.

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

References _clustereval, _do_cache, and SvtxClusterEval::do_caching().

Referenced by SvtxVertexEval::do_caching().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SvtxClusterEval* SvtxTrackEval::get_cluster_eval ( )
inline

Definition at line 47 of file SvtxTrackEval.h.

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

References _clustereval.

Referenced by SvtxVertexEval::get_cluster_eval().

+ Here is the caller graph for this function:

unsigned int SvtxTrackEval::get_errors ( )
inline

Definition at line 72 of file SvtxTrackEval.h.

View newest version in sPHENIX GitHub at line 72 of file SvtxTrackEval.h

References _clustereval, _errors, and SvtxClusterEval::get_errors().

Referenced by SvtxVertexEval::get_errors().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SvtxHitEval* SvtxTrackEval::get_hit_eval ( )
inline

Definition at line 48 of file SvtxTrackEval.h.

View newest version in sPHENIX GitHub at line 48 of file SvtxTrackEval.h

References _clustereval, and SvtxClusterEval::get_hit_eval().

Referenced by SvtxVertexEval::get_hit_eval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned int SvtxTrackEval::get_layer_range_contribution ( SvtxTrack track,
PHG4Particle particle,
unsigned int  start_layer,
unsigned int  end_layer 
)

Definition at line 817 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 817 of file SvtxTrackEval.cc

References _clustereval, _errors, _strict, SvtxClusterEval::all_truth_particles(), SvtxTruthEval::are_same_particle(), SvtxTrack::begin_cluster_keys(), SvtxTrack::end_cluster_keys(), get_truth_eval(), TrkrDefs::getLayer(), and has_node_pointers().

Referenced by SvtxEvaluator::fillOutputNtuples().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned int SvtxTrackEval::get_nclusters_contribution ( SvtxTrack svtxtrack,
PHG4Particle truthparticle 
)

Definition at line 610 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 610 of file SvtxTrackEval.cc

References _cache_get_nclusters_contribution, _errors, _strict, calc_cluster_contribution(), and has_node_pointers().

Referenced by best_track_from(), SvtxEvaluator::fillOutputNtuples(), max_truth_particle_by_nclusters(), and SvtxEvaluator::printOutputInfo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned int SvtxTrackEval::get_nclusters_contribution_by_layer ( SvtxTrack svtxtrack,
PHG4Particle truthparticle 
)

Definition at line 743 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 743 of file SvtxTrackEval.cc

References _cache_get_nclusters_contribution_by_layer, _clustereval, _do_cache, _errors, _strict, SvtxClusterEval::all_truth_particles(), SvtxTruthEval::are_same_particle(), SvtxTrack::begin_cluster_keys(), SvtxTrack::end_cluster_keys(), get_truth_eval(), TrkrDefs::getLayer(), and has_node_pointers().

Referenced by SvtxEvaluator::fillOutputNtuples().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxTrackEval::get_node_pointers ( PHCompositeNode topNode)
private

Definition at line 886 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 886 of file SvtxTrackEval.cc

References _trackmap, and m_TrackNodeName.

Referenced by next_event(), and SvtxTrackEval().

+ Here is the caller graph for this function:

unsigned int SvtxTrackEval::get_nwrongclusters_contribution ( SvtxTrack svtxtrack,
PHG4Particle truthparticle 
)

Definition at line 640 of file SvtxTrackEval.cc.

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

References _cache_get_nwrongclusters_contribution, _errors, _strict, calc_cluster_contribution(), and has_node_pointers().

Referenced by SvtxEvaluator::fillOutputNtuples().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SvtxTruthEval* SvtxTrackEval::get_truth_eval ( )
inline

Definition at line 49 of file SvtxTrackEval.h.

View newest version in sPHENIX GitHub at line 49 of file SvtxTrackEval.h

References _clustereval, and SvtxClusterEval::get_truth_eval().

Referenced by all_tracks_from(), all_truth_particles(), calc_cluster_contribution(), get_layer_range_contribution(), get_nclusters_contribution_by_layer(), SvtxVertexEval::get_truth_eval(), and max_truth_particle_by_nclusters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool SvtxTrackEval::has_node_pointers ( )
private

Definition at line 893 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 893 of file SvtxTrackEval.cc

References _strict, and _trackmap.

Referenced by all_tracks_from(), all_truth_hits(), all_truth_particles(), best_track_from(), calc_cluster_contribution(), create_cache_track_from_cluster(), get_layer_range_contribution(), get_nclusters_contribution(), get_nclusters_contribution_by_layer(), get_nwrongclusters_contribution(), and max_truth_particle_by_nclusters().

+ Here is the caller graph for this function:

PHG4Particle * SvtxTrackEval::max_truth_particle_by_nclusters ( SvtxTrack track)

Definition at line 187 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 187 of file SvtxTrackEval.cc

References _cache_max_truth_particle_by_nclusters, _do_cache, _errors, _strict, all_truth_particles(), get_nclusters_contribution(), SvtxTruthEval::get_particle(), get_truth_eval(), has_node_pointers(), and track.

Referenced by SvtxVertexEval::all_truth_particles(), ActsEvaluator::evaluateTrackFits(), SvtxEvaluator::fillOutputNtuples(), JetRecoEval::get_energy_contribution(), SvtxVertexEval::get_ntracks_contribution(), AnaTutorial::getTracks(), and QAG4SimulationTracking::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxTrackEval::next_event ( PHCompositeNode topNode)

Definition at line 46 of file SvtxTrackEval.cc.

View newest version in sPHENIX GitHub at line 46 of file SvtxTrackEval.cc

References _cache_all_tracks_from_cluster, _cache_all_tracks_from_g4hit, _cache_all_tracks_from_particle, _cache_all_truth_hits, _cache_all_truth_particles, _cache_best_track_from_cluster, _cache_best_track_from_particle, _cache_get_nclusters_contribution, _cache_get_nclusters_contribution_by_layer, _cache_get_nwrongclusters_contribution, _cache_max_truth_particle_by_nclusters, _clustereval, get_node_pointers(), and SvtxClusterEval::next_event().

Referenced by SvtxVertexEval::next_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxTrackEval::set_strict ( bool  strict)
inline

Definition at line 35 of file SvtxTrackEval.h.

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

References _clustereval, _strict, and SvtxClusterEval::set_strict().

Referenced by SvtxVertexEval::set_strict().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxTrackEval::set_track_nodename ( const std::string &  name)
inline

Definition at line 74 of file SvtxTrackEval.h.

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

References m_TrackNodeName.

Referenced by SvtxVertexEval::set_track_nodename().

+ Here is the caller graph for this function:

void SvtxTrackEval::set_verbosity ( int  verbosity)
inline

Definition at line 40 of file SvtxTrackEval.h.

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

References _clustereval, _verbosity, and SvtxClusterEval::set_verbosity().

Referenced by SvtxVertexEval::set_verbosity().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::map<TrkrDefs::cluskey, std::set<SvtxTrack*> > SvtxTrackEval::_cache_all_tracks_from_cluster
private

Definition at line 95 of file SvtxTrackEval.h.

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

Referenced by all_tracks_from(), create_cache_track_from_cluster(), and next_event().

std::map<PHG4Hit*, std::set<SvtxTrack*> > SvtxTrackEval::_cache_all_tracks_from_g4hit
private

Definition at line 94 of file SvtxTrackEval.h.

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

Referenced by all_tracks_from(), and next_event().

std::map<PHG4Particle*, std::set<SvtxTrack*> > SvtxTrackEval::_cache_all_tracks_from_particle
private

Definition at line 92 of file SvtxTrackEval.h.

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

Referenced by all_tracks_from(), and next_event().

std::map<SvtxTrack*, std::set<PHG4Hit*> > SvtxTrackEval::_cache_all_truth_hits
private

Definition at line 89 of file SvtxTrackEval.h.

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

Referenced by all_truth_hits(), and next_event().

std::map<SvtxTrack*, std::set<PHG4Particle*> > SvtxTrackEval::_cache_all_truth_particles
private

Definition at line 90 of file SvtxTrackEval.h.

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

Referenced by all_truth_particles(), and next_event().

std::map<TrkrDefs::cluskey, SvtxTrack*> SvtxTrackEval::_cache_best_track_from_cluster
private

Definition at line 96 of file SvtxTrackEval.h.

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

Referenced by best_track_from(), and next_event().

std::map<PHG4Particle*, SvtxTrack*> SvtxTrackEval::_cache_best_track_from_particle
private

Definition at line 93 of file SvtxTrackEval.h.

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

Referenced by best_track_from(), and next_event().

std::map<std::pair<SvtxTrack*, PHG4Particle*>, unsigned int> SvtxTrackEval::_cache_get_nclusters_contribution
private

Definition at line 97 of file SvtxTrackEval.h.

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

Referenced by calc_cluster_contribution(), get_nclusters_contribution(), and next_event().

std::map<std::pair<SvtxTrack*, PHG4Particle*>, unsigned int> SvtxTrackEval::_cache_get_nclusters_contribution_by_layer
private

Definition at line 98 of file SvtxTrackEval.h.

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

Referenced by get_nclusters_contribution_by_layer(), and next_event().

std::map<std::pair<SvtxTrack*, PHG4Particle*>, unsigned int> SvtxTrackEval::_cache_get_nwrongclusters_contribution
private

Definition at line 99 of file SvtxTrackEval.h.

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

Referenced by calc_cluster_contribution(), get_nwrongclusters_contribution(), and next_event().

std::map<SvtxTrack*, PHG4Particle*> SvtxTrackEval::_cache_max_truth_particle_by_nclusters
private

Definition at line 91 of file SvtxTrackEval.h.

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

Referenced by max_truth_particle_by_nclusters(), and next_event().

bool SvtxTrackEval::_cache_track_from_cluster_exists
private

Definition at line 88 of file SvtxTrackEval.h.

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

Referenced by all_tracks_from(), and create_cache_track_from_cluster().

bool SvtxTrackEval::_do_cache
private
SvtxTrackMap* SvtxTrackEval::_trackmap
private

Definition at line 81 of file SvtxTrackEval.h.

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

Referenced by all_tracks_from(), create_cache_track_from_cluster(), get_node_pointers(), and has_node_pointers().

int SvtxTrackEval::_verbosity
private

Definition at line 84 of file SvtxTrackEval.h.

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

Referenced by set_verbosity(), and ~SvtxTrackEval().

std::string SvtxTrackEval::m_TrackNodeName
private

Definition at line 100 of file SvtxTrackEval.h.

View newest version in sPHENIX GitHub at line 100 of file SvtxTrackEval.h

Referenced by get_node_pointers(), and set_track_nodename().


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