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

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

+ Collaboration diagram for SvtxVertexEval:

Public Member Functions

 SvtxVertexEval (PHCompositeNode *topNode)
 
virtual ~SvtxVertexEval ()
 
void next_event (PHCompositeNode *topNode)
 
void do_caching (bool do_cache)
 
void set_strict (bool strict)
 
void set_verbosity (int verbosity)
 
SvtxTrackEvalget_track_eval ()
 
SvtxClusterEvalget_cluster_eval ()
 
SvtxHitEvalget_hit_eval ()
 
SvtxTruthEvalget_truth_eval ()
 
std::set< PHG4Particle * > all_truth_particles (SvtxVertex *vertex)
 
std::set< PHG4VtxPoint * > all_truth_points (SvtxVertex *vertex)
 
PHG4VtxPointmax_truth_point_by_ntracks (SvtxVertex *vertex)
 
std::set< SvtxVertex * > all_vertexes_from (PHG4VtxPoint *truthpoint)
 
SvtxVertexbest_vertex_from (PHG4VtxPoint *truthpoint)
 
unsigned int get_ntracks_contribution (SvtxVertex *svtxvertex, PHG4VtxPoint *truthpoint)
 
unsigned int get_errors ()
 
void set_use_initial_vertex (bool use_init_vertex)
 
void set_use_genfit_vertex (bool use_genfit_vertex)
 
void set_track_nodename (const std::string &name)
 

Private Member Functions

void get_node_pointers (PHCompositeNode *topNode)
 
bool has_node_pointers ()
 

Private Attributes

SvtxTrackEval _trackeval
 
SvtxVertexMap_vertexmap
 
SvtxTrackMap_trackmap
 
PHG4TruthInfoContainer_truthinfo
 
bool _strict
 
bool _use_initial_vertex = true
 
bool _use_genfit_vertex = false
 
int _verbosity
 
unsigned int _errors
 
bool _do_cache
 
std::map< SvtxVertex
*, std::set< PHG4Particle * > > 
_cache_all_truth_particles
 
std::map< SvtxVertex
*, std::set< PHG4VtxPoint * > > 
_cache_all_truth_points
 
std::map< SvtxVertex
*, PHG4VtxPoint * > 
_cache_max_truth_point_by_ntracks
 
std::map< PHG4VtxPoint
*, std::set< SvtxVertex * > > 
_cache_all_vertexes_from_point
 
std::map< PHG4VtxPoint
*, SvtxVertex * > 
_cache_best_vertex_from_point
 
std::map< std::pair
< SvtxVertex *, PHG4VtxPoint * >
, unsigned int > 
_cache_get_ntracks_contribution
 
std::string m_TrackNodeName
 

Detailed Description

Definition at line 24 of file SvtxVertexEval.h.

View newest version in sPHENIX GitHub at line 24 of file SvtxVertexEval.h

Constructor & Destructor Documentation

SvtxVertexEval::SvtxVertexEval ( PHCompositeNode topNode)

Definition at line 24 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 24 of file SvtxVertexEval.cc

References set_track_nodename().

+ Here is the call graph for this function:

SvtxVertexEval::~SvtxVertexEval ( )
virtual

Definition at line 37 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 37 of file SvtxVertexEval.cc

References _errors, and _verbosity.

Member Function Documentation

std::set< PHG4Particle * > SvtxVertexEval::all_truth_particles ( SvtxVertex vertex)

Definition at line 62 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 62 of file SvtxVertexEval.cc

References _cache_all_truth_particles, _do_cache, _errors, _strict, _trackeval, _trackmap, SvtxVertex::begin_tracks(), SvtxVertex::end_tracks(), SvtxTrackMap::get(), has_node_pointers(), and SvtxTrackEval::max_truth_particle_by_nclusters().

Referenced by all_truth_points().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::set< PHG4VtxPoint * > SvtxVertexEval::all_truth_points ( SvtxVertex vertex)

Definition at line 129 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 129 of file SvtxVertexEval.cc

References _cache_all_truth_points, _do_cache, _errors, _strict, all_truth_particles(), get_truth_eval(), SvtxTruthEval::get_vertex(), has_node_pointers(), and particle.

Referenced by all_vertexes_from(), and max_truth_point_by_ntracks().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::set< SvtxVertex * > SvtxVertexEval::all_vertexes_from ( PHG4VtxPoint truthpoint)

Definition at line 236 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 236 of file SvtxVertexEval.cc

References _cache_all_vertexes_from_point, _do_cache, _errors, _strict, _vertexmap, all_truth_points(), SvtxTruthEval::are_same_vertex(), SvtxVertexMap::begin(), SvtxVertexMap::end(), get_truth_eval(), and has_node_pointers().

Referenced by best_vertex_from().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SvtxVertex * SvtxVertexEval::best_vertex_from ( PHG4VtxPoint truthpoint)

Definition at line 291 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 291 of file SvtxVertexEval.cc

References _cache_best_vertex_from_point, _do_cache, _errors, _strict, all_vertexes_from(), get_ntracks_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:

void SvtxVertexEval::do_caching ( bool  do_cache)
inline

Definition at line 31 of file SvtxVertexEval.h.

View newest version in sPHENIX GitHub at line 31 of file SvtxVertexEval.h

References _do_cache, _trackeval, and SvtxTrackEval::do_caching().

Referenced by SvtxEvalStack::do_caching().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SvtxClusterEval* SvtxVertexEval::get_cluster_eval ( )
inline

Definition at line 49 of file SvtxVertexEval.h.

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

References _trackeval, and SvtxTrackEval::get_cluster_eval().

Referenced by SvtxEvalStack::get_cluster_eval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned int SvtxVertexEval::get_errors ( )
inline

Definition at line 67 of file SvtxVertexEval.h.

View newest version in sPHENIX GitHub at line 67 of file SvtxVertexEval.h

References _errors, _trackeval, and SvtxTrackEval::get_errors().

Referenced by SvtxEvalStack::get_errors().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SvtxHitEval* SvtxVertexEval::get_hit_eval ( )
inline

Definition at line 50 of file SvtxVertexEval.h.

View newest version in sPHENIX GitHub at line 50 of file SvtxVertexEval.h

References _trackeval, and SvtxTrackEval::get_hit_eval().

Referenced by SvtxEvalStack::get_hit_eval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxVertexEval::get_node_pointers ( PHCompositeNode topNode)
private

Definition at line 402 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 402 of file SvtxVertexEval.cc

References _trackmap, _truthinfo, _use_genfit_vertex, _use_initial_vertex, _vertexmap, m_TrackNodeName, and PHWHERE.

Referenced by next_event().

+ Here is the caller graph for this function:

unsigned int SvtxVertexEval::get_ntracks_contribution ( SvtxVertex svtxvertex,
PHG4VtxPoint truthpoint 
)

Definition at line 341 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 341 of file SvtxVertexEval.cc

References _cache_get_ntracks_contribution, _do_cache, _errors, _strict, _trackeval, _trackmap, SvtxVertex::begin_tracks(), SvtxVertex::end_tracks(), SvtxTrackMap::get(), get_truth_eval(), SvtxTruthEval::get_vertex(), has_node_pointers(), SvtxTrackEval::max_truth_particle_by_nclusters(), and particle.

Referenced by best_vertex_from(), SvtxEvaluator::fillOutputNtuples(), and max_truth_point_by_ntracks().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SvtxTrackEval* SvtxVertexEval::get_track_eval ( )
inline

Definition at line 48 of file SvtxVertexEval.h.

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

References _trackeval.

Referenced by SvtxEvalStack::get_track_eval().

+ Here is the caller graph for this function:

SvtxTruthEval* SvtxVertexEval::get_truth_eval ( )
inline

Definition at line 51 of file SvtxVertexEval.h.

View newest version in sPHENIX GitHub at line 51 of file SvtxVertexEval.h

References _trackeval, and SvtxTrackEval::get_truth_eval().

Referenced by all_truth_points(), all_vertexes_from(), get_ntracks_contribution(), and SvtxEvalStack::get_truth_eval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool SvtxVertexEval::has_node_pointers ( )
private

Definition at line 428 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 428 of file SvtxVertexEval.cc

References _strict, _trackmap, _truthinfo, _vertexmap, and PHWHERE.

Referenced by all_truth_particles(), all_truth_points(), all_vertexes_from(), best_vertex_from(), get_ntracks_contribution(), and max_truth_point_by_ntracks().

+ Here is the caller graph for this function:

PHG4VtxPoint * SvtxVertexEval::max_truth_point_by_ntracks ( SvtxVertex vertex)

Definition at line 185 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 185 of file SvtxVertexEval.cc

References _cache_max_truth_point_by_ntracks, _do_cache, _errors, _strict, all_truth_points(), get_ntracks_contribution(), and has_node_pointers().

Referenced by SvtxEvaluator::fillOutputNtuples(), KFParticle_truthAndDetTools::fillTruthBranch(), and QAG4SimulationVertex::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxVertexEval::next_event ( PHCompositeNode topNode)

Definition at line 48 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 48 of file SvtxVertexEval.cc

References _cache_all_truth_particles, _cache_all_truth_points, _cache_all_vertexes_from_point, _cache_best_vertex_from_point, _cache_get_ntracks_contribution, _cache_max_truth_point_by_ntracks, _trackeval, get_node_pointers(), and SvtxTrackEval::next_event().

Referenced by SvtxEvalStack::next_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxVertexEval::set_strict ( bool  strict)
inline

Definition at line 36 of file SvtxVertexEval.h.

View newest version in sPHENIX GitHub at line 36 of file SvtxVertexEval.h

References _strict, _trackeval, and SvtxTrackEval::set_strict().

Referenced by SvtxEvalStack::set_strict().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxVertexEval::set_track_nodename ( const std::string &  name)

Definition at line 457 of file SvtxVertexEval.cc.

View newest version in sPHENIX GitHub at line 457 of file SvtxVertexEval.cc

References _trackeval, m_TrackNodeName, name, and SvtxTrackEval::set_track_nodename().

Referenced by SvtxEvalStack::set_track_nodename(), and SvtxVertexEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SvtxVertexEval::set_use_genfit_vertex ( bool  use_genfit_vertex)
inline

Definition at line 70 of file SvtxVertexEval.h.

View newest version in sPHENIX GitHub at line 70 of file SvtxVertexEval.h

References _use_genfit_vertex.

Referenced by SvtxEvalStack::set_use_genfit_vertex().

+ Here is the caller graph for this function:

void SvtxVertexEval::set_use_initial_vertex ( bool  use_init_vertex)
inline

Definition at line 69 of file SvtxVertexEval.h.

View newest version in sPHENIX GitHub at line 69 of file SvtxVertexEval.h

References _use_initial_vertex.

Referenced by SvtxEvalStack::set_use_initial_vertex().

+ Here is the caller graph for this function:

void SvtxVertexEval::set_verbosity ( int  verbosity)
inline

Definition at line 41 of file SvtxVertexEval.h.

View newest version in sPHENIX GitHub at line 41 of file SvtxVertexEval.h

References _trackeval, _verbosity, and SvtxTrackEval::set_verbosity().

Referenced by SvtxEvalStack::set_verbosity().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::map<SvtxVertex*, std::set<PHG4Particle*> > SvtxVertexEval::_cache_all_truth_particles
private

Definition at line 90 of file SvtxVertexEval.h.

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

Referenced by all_truth_particles(), and next_event().

std::map<SvtxVertex*, std::set<PHG4VtxPoint*> > SvtxVertexEval::_cache_all_truth_points
private

Definition at line 91 of file SvtxVertexEval.h.

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

Referenced by all_truth_points(), and next_event().

std::map<PHG4VtxPoint*, std::set<SvtxVertex*> > SvtxVertexEval::_cache_all_vertexes_from_point
private

Definition at line 93 of file SvtxVertexEval.h.

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

Referenced by all_vertexes_from(), and next_event().

std::map<PHG4VtxPoint*, SvtxVertex*> SvtxVertexEval::_cache_best_vertex_from_point
private

Definition at line 94 of file SvtxVertexEval.h.

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

Referenced by best_vertex_from(), and next_event().

std::map<std::pair<SvtxVertex*, PHG4VtxPoint*>, unsigned int> SvtxVertexEval::_cache_get_ntracks_contribution
private

Definition at line 95 of file SvtxVertexEval.h.

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

Referenced by get_ntracks_contribution(), and next_event().

std::map<SvtxVertex*, PHG4VtxPoint*> SvtxVertexEval::_cache_max_truth_point_by_ntracks
private

Definition at line 92 of file SvtxVertexEval.h.

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

Referenced by max_truth_point_by_ntracks(), and next_event().

bool SvtxVertexEval::_do_cache
private

Definition at line 89 of file SvtxVertexEval.h.

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

Referenced by all_truth_particles(), all_truth_points(), all_vertexes_from(), best_vertex_from(), do_caching(), get_ntracks_contribution(), and max_truth_point_by_ntracks().

unsigned int SvtxVertexEval::_errors
private
bool SvtxVertexEval::_strict
private
SvtxTrackEval SvtxVertexEval::_trackeval
private
SvtxTrackMap* SvtxVertexEval::_trackmap
private

Definition at line 80 of file SvtxVertexEval.h.

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

Referenced by all_truth_particles(), get_node_pointers(), get_ntracks_contribution(), and has_node_pointers().

PHG4TruthInfoContainer* SvtxVertexEval::_truthinfo
private

Definition at line 81 of file SvtxVertexEval.h.

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

Referenced by get_node_pointers(), and has_node_pointers().

bool SvtxVertexEval::_use_genfit_vertex = false
private

Definition at line 85 of file SvtxVertexEval.h.

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

Referenced by get_node_pointers(), and set_use_genfit_vertex().

bool SvtxVertexEval::_use_initial_vertex = true
private

Definition at line 84 of file SvtxVertexEval.h.

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

Referenced by get_node_pointers(), and set_use_initial_vertex().

int SvtxVertexEval::_verbosity
private

Definition at line 86 of file SvtxVertexEval.h.

View newest version in sPHENIX GitHub at line 86 of file SvtxVertexEval.h

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

SvtxVertexMap* SvtxVertexEval::_vertexmap
private

Definition at line 79 of file SvtxVertexEval.h.

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

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

std::string SvtxVertexEval::m_TrackNodeName
private

Definition at line 96 of file SvtxVertexEval.h.

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

Referenced by get_node_pointers(), and set_track_nodename().


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