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

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

+ Collaboration diagram for BaseTruthEval:

Public Member Functions

 BaseTruthEval (PHCompositeNode *topNode)
 
virtual ~BaseTruthEval ()
 
void next_event (PHCompositeNode *topNode)
 reinitialize the eval for a new event
 
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
 
bool has_reduced_node_pointers ()
 
int get_embed (PHG4Particle *particle)
 what was the embed flag set for this particle?
 
PHG4VtxPointget_vertex (PHG4Particle *particle)
 what was the vertex creation point of the particle?
 
bool is_primary (PHG4Shower *shower)
 is this a primary shower?
 
bool is_primary (PHG4Particle *particle)
 is this a primary particle?
 
PHG4Showerget_primary_shower (PHG4Shower *shower)
 what was the primary shower for this possibly secondary shower?
 
PHG4Showerget_primary_shower (PHG4Particle *particle)
 what was the primary shower that is associated with this particle?
 
PHG4Particleget_primary_particle (PHG4Particle *particle)
 what was the primary particle that is associated with this particle?
 
PHG4Particleget_primary_particle (PHG4Shower *shower)
 what was the primary particle that is associated with this shower?
 
std::set< PHG4Shower * > all_secondary_showers (PHG4Shower *shower)
 which secondary showers are inside this shower?
 
bool are_same_shower (PHG4Shower *s1, PHG4Shower *s2)
 do these two shower pointers resolve to the same shower?
 
bool are_same_particle (PHG4Particle *p1, PHG4Particle *p2)
 do these two particle pointers resolve to the same particle?
 
bool are_same_vertex (PHG4VtxPoint *vtx1, PHG4VtxPoint *vtx2)
 do these two vertex pointers resolve to the same vertex?
 
bool has_full_node_pointers ()
 
PHG4Particleget_particle (PHG4Hit *g4hit)
 which particle left this truth hit?
 
PHG4Showerget_primary_shower (PHG4Hit *g4hit)
 which primary shower contains this truth hit?
 
PHG4Particleget_primary_particle (PHG4Hit *g4hit)
 which primary particle resulted in this truth hit?
 
PHG4Particleget_particle (const int trackid)
 which is the particle associated with this track ID?
 
bool is_g4hit_from_primary_shower (PHG4Hit *g4hit, PHG4Shower *shower)
 is this truth hit inside this shower?
 
bool is_g4hit_from_particle (PHG4Hit *g4hit, PHG4Particle *particle)
 was this truth hit left by this particle?
 

Private Member Functions

void get_node_pointers (PHCompositeNode *topNode)
 

Private Attributes

PHG4TruthInfoContainerm_TruthInfo
 
bool m_Strict
 
int m_Verbosity
 
unsigned int m_Errors
 

Detailed Description

Definition at line 13 of file BaseTruthEval.h.

View newest version in sPHENIX GitHub at line 13 of file BaseTruthEval.h

Constructor & Destructor Documentation

BaseTruthEval::BaseTruthEval ( PHCompositeNode topNode)
explicit

Definition at line 19 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 19 of file BaseTruthEval.cc

References get_node_pointers().

+ Here is the call graph for this function:

BaseTruthEval::~BaseTruthEval ( )
virtual

Definition at line 28 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 28 of file BaseTruthEval.cc

References m_Errors, and m_Verbosity.

Member Function Documentation

std::set< PHG4Shower * > BaseTruthEval::all_secondary_showers ( PHG4Shower shower)

which secondary showers are inside this shower?

Definition at line 319 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 319 of file BaseTruthEval.cc

References PHG4Shower::get_id(), PHG4Shower::get_parent_shower_id(), PHG4TruthInfoContainer::GetSecondaryShowerRange(), has_reduced_node_pointers(), m_Errors, m_Strict, and m_TruthInfo.

+ Here is the call graph for this function:

bool BaseTruthEval::are_same_particle ( PHG4Particle p1,
PHG4Particle p2 
)

do these two particle pointers resolve to the same particle?

Definition at line 390 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 390 of file BaseTruthEval.cc

References PHG4Particle::get_track_id(), has_reduced_node_pointers(), m_Errors, and m_Strict.

Referenced by SvtxTruthEval::are_same_particle(), and CaloTruthEval::are_same_particle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool BaseTruthEval::are_same_shower ( PHG4Shower s1,
PHG4Shower s2 
)

do these two shower pointers resolve to the same shower?

Definition at line 367 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 367 of file BaseTruthEval.cc

References PHG4Shower::get_id(), has_reduced_node_pointers(), m_Errors, and m_Strict.

Referenced by CaloTruthEval::are_same_shower().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool BaseTruthEval::are_same_vertex ( PHG4VtxPoint vtx1,
PHG4VtxPoint vtx2 
)

do these two vertex pointers resolve to the same vertex?

Definition at line 413 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 413 of file BaseTruthEval.cc

References PHG4VtxPoint::get_id(), has_reduced_node_pointers(), m_Errors, and m_Strict.

Referenced by SvtxTruthEval::are_same_vertex(), and CaloTruthEval::are_same_vertex().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int BaseTruthEval::get_embed ( PHG4Particle particle)

what was the embed flag set for this particle?

Definition at line 44 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 44 of file BaseTruthEval.cc

References get_primary_particle(), PHG4Particle::get_track_id(), has_reduced_node_pointers(), PHG4TruthInfoContainer::isEmbeded(), m_Errors, m_Strict, and m_TruthInfo.

Referenced by SvtxTruthEval::get_embed(), and CaloTruthEval::get_embed().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned int BaseTruthEval::get_errors ( )
inline

get a count of the errors discovered thus far

Definition at line 27 of file BaseTruthEval.h.

View newest version in sPHENIX GitHub at line 27 of file BaseTruthEval.h

References m_Errors.

Referenced by SvtxTruthEval::get_errors().

+ Here is the caller graph for this function:

void BaseTruthEval::get_node_pointers ( PHCompositeNode topNode)
private

Definition at line 590 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 590 of file BaseTruthEval.cc

References exit(), m_TruthInfo, and PHWHERE.

Referenced by BaseTruthEval(), and next_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4Particle * BaseTruthEval::get_particle ( PHG4Hit g4hit)

which particle left this truth hit?

Definition at line 436 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 436 of file BaseTruthEval.cc

References PHG4Hit::get_trkid(), PHG4TruthInfoContainer::GetParticle(), has_reduced_node_pointers(), m_Errors, m_Strict, m_TruthInfo, and particle.

Referenced by CaloTruthEval::get_parent_particle(), SvtxTruthEval::get_particle(), and get_primary_particle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4Particle * BaseTruthEval::get_particle ( const int  trackid)

which is the particle associated with this track ID?

Definition at line 531 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 531 of file BaseTruthEval.cc

References PHG4TruthInfoContainer::GetParticle(), and m_TruthInfo.

+ Here is the call graph for this function:

PHG4Particle * BaseTruthEval::get_primary_particle ( PHG4Particle particle)

what was the primary particle that is associated with this particle?

Definition at line 240 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 240 of file BaseTruthEval.cc

References PHG4Particle::get_primary_id(), PHG4TruthInfoContainer::GetPrimaryParticle(), has_reduced_node_pointers(), is_primary(), m_Errors, m_Strict, m_TruthInfo, and particle.

Referenced by get_embed(), SvtxTruthEval::get_primary_particle(), get_primary_particle(), CaloTruthEval::get_primary_particle(), and get_primary_shower().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4Particle * BaseTruthEval::get_primary_particle ( PHG4Shower shower)

what was the primary particle that is associated with this shower?

Definition at line 274 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 274 of file BaseTruthEval.cc

References PHG4Shower::get_parent_particle_id(), get_primary_particle(), PHG4TruthInfoContainer::GetParticle(), has_reduced_node_pointers(), m_Errors, m_Strict, and m_TruthInfo.

+ Here is the call graph for this function:

PHG4Particle * BaseTruthEval::get_primary_particle ( PHG4Hit g4hit)

which primary particle resulted in this truth hit?

Definition at line 498 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 498 of file BaseTruthEval.cc

References get_particle(), get_primary_particle(), has_reduced_node_pointers(), m_Errors, m_Strict, and particle.

+ Here is the call graph for this function:

PHG4Shower * BaseTruthEval::get_primary_shower ( PHG4Shower shower)

what was the primary shower for this possibly secondary shower?

Definition at line 164 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 164 of file BaseTruthEval.cc

References PHG4Shower::get_parent_shower_id(), PHG4TruthInfoContainer::GetShower(), has_reduced_node_pointers(), is_primary(), m_Errors, m_Strict, and m_TruthInfo.

Referenced by CaloTruthEval::get_primary_shower().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4Shower * BaseTruthEval::get_primary_shower ( PHG4Particle particle)

what was the primary shower that is associated with this particle?

Definition at line 202 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 202 of file BaseTruthEval.cc

References PHG4Shower::get_parent_particle_id(), get_primary_particle(), PHG4Particle::get_track_id(), PHG4TruthInfoContainer::GetPrimaryShowerRange(), has_reduced_node_pointers(), is_primary(), m_Errors, m_Strict, and m_TruthInfo.

+ Here is the call graph for this function:

PHG4Shower * BaseTruthEval::get_primary_shower ( PHG4Hit g4hit)

which primary shower contains this truth hit?

Definition at line 467 of file BaseTruthEval.cc.

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

References PHG4Hit::get_shower_id(), PHG4TruthInfoContainer::GetShower(), has_reduced_node_pointers(), m_Errors, m_Strict, and m_TruthInfo.

+ Here is the call graph for this function:

PHG4VtxPoint * BaseTruthEval::get_vertex ( PHG4Particle particle)

what was the vertex creation point of the particle?

Definition at line 79 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 79 of file BaseTruthEval.cc

References PHG4Particle::get_vtx_id(), PHG4TruthInfoContainer::GetVtx(), has_reduced_node_pointers(), m_Errors, m_Strict, m_TruthInfo, and vtx().

Referenced by SvtxTruthEval::get_vertex(), and CaloTruthEval::get_vertex().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool BaseTruthEval::has_full_node_pointers ( )
inline

Definition at line 74 of file BaseTruthEval.h.

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

References has_reduced_node_pointers().

Referenced by CaloTruthEval::has_full_node_pointers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool BaseTruthEval::has_reduced_node_pointers ( )

Definition at line 602 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 602 of file BaseTruthEval.cc

References m_Strict, and m_TruthInfo.

Referenced by all_secondary_showers(), are_same_particle(), are_same_shower(), are_same_vertex(), get_embed(), get_particle(), get_primary_particle(), get_primary_shower(), get_vertex(), has_full_node_pointers(), CaloTruthEval::has_reduced_node_pointers(), is_g4hit_from_particle(), is_g4hit_from_primary_shower(), and is_primary().

+ Here is the caller graph for this function:

bool BaseTruthEval::is_g4hit_from_particle ( PHG4Hit g4hit,
PHG4Particle particle 
)

was this truth hit left by this particle?

Definition at line 563 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 563 of file BaseTruthEval.cc

References PHG4Particle::get_track_id(), PHG4Hit::get_trkid(), has_reduced_node_pointers(), m_Errors, and m_Strict.

Referenced by SvtxTruthEval::is_g4hit_from_particle(), and CaloTruthEval::is_g4hit_from_particle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool BaseTruthEval::is_g4hit_from_primary_shower ( PHG4Hit g4hit,
PHG4Shower shower 
)

is this truth hit inside this shower?

Definition at line 536 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 536 of file BaseTruthEval.cc

References PHG4Shower::get_id(), PHG4Hit::get_shower_id(), has_reduced_node_pointers(), m_Errors, and m_Strict.

+ Here is the call graph for this function:

bool BaseTruthEval::is_primary ( PHG4Shower shower)

is this a primary shower?

Definition at line 110 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 110 of file BaseTruthEval.cc

References PHG4Shower::get_parent_shower_id(), has_reduced_node_pointers(), m_Errors, and m_Strict.

Referenced by get_primary_particle(), get_primary_shower(), is_primary(), SvtxTruthEval::is_primary(), and CaloTruthEval::is_primary().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool BaseTruthEval::is_primary ( PHG4Particle particle)

is this a primary particle?

Definition at line 137 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 137 of file BaseTruthEval.cc

References PHG4Particle::get_parent_id(), has_reduced_node_pointers(), is_primary(), m_Errors, and m_Strict.

+ Here is the call graph for this function:

void BaseTruthEval::next_event ( PHCompositeNode topNode)

reinitialize the eval for a new event

Definition at line 39 of file BaseTruthEval.cc.

View newest version in sPHENIX GitHub at line 39 of file BaseTruthEval.cc

References get_node_pointers().

Referenced by CaloTruthEval::next_event(), and SvtxTruthEval::next_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void BaseTruthEval::set_strict ( bool  strict)
inline

strict mode will assert when an error is detected non-strict mode will notice and report at the End()

Definition at line 24 of file BaseTruthEval.h.

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

References m_Strict.

Referenced by SvtxTruthEval::set_strict(), and CaloTruthEval::set_strict().

+ Here is the caller graph for this function:

void BaseTruthEval::set_verbosity ( int  verbosity)
inline

adjust the messaging from the evalutaion module

Definition at line 30 of file BaseTruthEval.h.

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

References m_Verbosity.

Referenced by SvtxTruthEval::set_verbosity(), and CaloTruthEval::set_verbosity().

+ Here is the caller graph for this function:

Member Data Documentation

PHG4TruthInfoContainer* BaseTruthEval::m_TruthInfo
private
int BaseTruthEval::m_Verbosity
private

Definition at line 100 of file BaseTruthEval.h.

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

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


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