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

#include <coresoftware/blob/master/simulation/g4simulation/g4main/PHG4TruthInfoContainer.h>

+ Inheritance diagram for PHG4TruthInfoContainer:
+ Collaboration diagram for PHG4TruthInfoContainer:

Public Types

typedef std::map< int,
PHG4Particle * > 
Map
 
typedef Map::iterator Iterator
 
typedef Map::const_iterator ConstIterator
 
typedef std::pair< Iterator,
Iterator
Range
 
typedef std::pair
< ConstIterator, ConstIterator
ConstRange
 
typedef std::map< int,
PHG4VtxPoint * > 
VtxMap
 
typedef VtxMap::iterator VtxIterator
 
typedef VtxMap::const_iterator ConstVtxIterator
 
typedef std::pair< VtxIterator,
VtxIterator
VtxRange
 
typedef std::pair
< ConstVtxIterator,
ConstVtxIterator
ConstVtxRange
 
typedef std::map< int,
PHG4Shower * > 
ShowerMap
 
typedef ShowerMap::iterator ShowerIterator
 
typedef ShowerMap::const_iterator ConstShowerIterator
 
typedef std::pair
< ShowerIterator,
ShowerIterator
ShowerRange
 
typedef std::pair
< ConstShowerIterator,
ConstShowerIterator
ConstShowerRange
 

Public Member Functions

 PHG4TruthInfoContainer ()
 
 ~PHG4TruthInfoContainer () override
 
void Reset () override
 Clear Event.
 
void identify (std::ostream &os=std::cout) const override
 
ConstIterator AddParticle (const int particleid, PHG4Particle *newparticle)
 Add a particle that the user has created.
 
void delete_particle (Iterator piter)
 
void delete_particle (int trackid)
 
PHG4ParticleGetParticle (const int trackid)
 
PHG4ParticleGetPrimaryParticle (const int trackid)
 
bool is_primary (const PHG4Particle *p) const
 
Range GetParticleRange ()
 Get a range of iterators covering the entire container.
 
ConstRange GetParticleRange () const
 
Range GetPrimaryParticleRange ()
 
ConstRange GetPrimaryParticleRange () const
 
Range GetSecondaryParticleRange ()
 
ConstRange GetSecondaryParticleRange () const
 
unsigned int size (void) const
 track -> particle map size
 
int GetNumPrimaryVertexParticles ()
 
const MapGetMap () const
 Get the Particle Map storage.
 
int maxtrkindex () const
 
int mintrkindex () const
 
std::pair< std::map< int, int >
::const_iterator, std::map
< int, int >::const_iterator > 
GetEmbeddedTrkIds () const
 
void AddEmbededTrkId (const int id, const int flag)
 
int isEmbeded (const int trackid) const
 
ConstVtxIterator AddVertex (const int vtxid, PHG4VtxPoint *vertex)
 Add a vertex and return an iterator to the user.
 
void delete_vtx (VtxIterator viter)
 
void delete_vtx (int vtxid)
 
PHG4VtxPointGetVtx (const int vtxid)
 
PHG4VtxPointGetPrimaryVtx (const int vtxid)
 
bool is_primary_vtx (const PHG4VtxPoint *v) const
 
VtxRange GetVtxRange ()
 Get a range of iterators covering the entire vertex container.
 
ConstVtxRange GetVtxRange () const
 
VtxRange GetPrimaryVtxRange ()
 
ConstVtxRange GetPrimaryVtxRange () const
 
VtxRange GetSecondaryVtxRange ()
 
ConstVtxRange GetSecondaryVtxRange () const
 
unsigned int GetNumVertices () const
 Get the number of vertices stored.
 
const VtxMapGetVtxMap () const
 Get the Vertex Map storage.
 
int maxvtxindex () const
 
int minvtxindex () const
 
int GetPrimaryVertexIndex () const
 
std::pair< std::map< int, int >
::const_iterator, std::map
< int, int >::const_iterator > 
GetEmbeddedVtxIds () const
 
void AddEmbededVtxId (const int id, const int flag)
 
int isEmbededVtx (const int vtxid) const
 
ConstShowerIterator AddShower (const int showerid, PHG4Shower *newshower)
 Add a shower that the user has created.
 
void delete_shower (ShowerIterator piter)
 
PHG4ShowerGetShower (const int showerid)
 
PHG4ShowerGetPrimaryShower (const int showerid)
 
ShowerRange GetShowerRange ()
 Get a range of iterators covering the entire container.
 
ConstShowerRange GetShowerRange () const
 
ShowerRange GetPrimaryShowerRange ()
 
ConstShowerRange GetPrimaryShowerRange () const
 
ShowerRange GetSecondaryShowerRange ()
 
ConstShowerRange GetSecondaryShowerRange () const
 
unsigned int shower_size (void) const
 shower size
 
const ShowerMapGetShowerMap () const
 Get the Shower Map storage.
 
int maxshowerindex () const
 
int minshowerindex () const
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Private Attributes

Map particlemap
 
VtxMap vtxmap
 
ShowerMap showermap
 
std::map< int, intparticle_embed_flags
 
std::map< int, intvertex_embed_flags
 

Detailed Description

Definition at line 17 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 17 of file PHG4TruthInfoContainer.h

Member Typedef Documentation

typedef Map::const_iterator PHG4TruthInfoContainer::ConstIterator

Definition at line 22 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 22 of file PHG4TruthInfoContainer.h

Definition at line 24 of file PHG4TruthInfoContainer.h.

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

typedef ShowerMap::const_iterator PHG4TruthInfoContainer::ConstShowerIterator

Definition at line 34 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 34 of file PHG4TruthInfoContainer.h

Definition at line 36 of file PHG4TruthInfoContainer.h.

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

typedef VtxMap::const_iterator PHG4TruthInfoContainer::ConstVtxIterator

Definition at line 28 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 28 of file PHG4TruthInfoContainer.h

Definition at line 30 of file PHG4TruthInfoContainer.h.

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

typedef Map::iterator PHG4TruthInfoContainer::Iterator

Definition at line 21 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 21 of file PHG4TruthInfoContainer.h

Definition at line 20 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 20 of file PHG4TruthInfoContainer.h

Definition at line 23 of file PHG4TruthInfoContainer.h.

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

typedef ShowerMap::iterator PHG4TruthInfoContainer::ShowerIterator

Definition at line 33 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 33 of file PHG4TruthInfoContainer.h

Definition at line 32 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 32 of file PHG4TruthInfoContainer.h

Definition at line 35 of file PHG4TruthInfoContainer.h.

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

typedef VtxMap::iterator PHG4TruthInfoContainer::VtxIterator

Definition at line 27 of file PHG4TruthInfoContainer.h.

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

Definition at line 26 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 26 of file PHG4TruthInfoContainer.h

Definition at line 29 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 29 of file PHG4TruthInfoContainer.h

Constructor & Destructor Documentation

PHG4TruthInfoContainer::PHG4TruthInfoContainer ( )

Definition at line 14 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 14 of file PHG4TruthInfoContainer.cc

PHG4TruthInfoContainer::~PHG4TruthInfoContainer ( )
override

Definition at line 22 of file PHG4TruthInfoContainer.cc.

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

References Reset().

+ Here is the call graph for this function:

Member Function Documentation

void PHG4TruthInfoContainer::AddEmbededTrkId ( const int  id,
const int  flag 
)
inline

Set the embedding ID for the HepMC subevent or track to be analyzed. positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 95 of file PHG4TruthInfoContainer.h.

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

References particle_embed_flags.

Referenced by Fun4AllDstPileupMerger::copy_background_event(), and PHG4TruthEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

void PHG4TruthInfoContainer::AddEmbededVtxId ( const int  id,
const int  flag 
)
inline

Set the embedding ID for the HepMC subevent or track to be analyzed. positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 156 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 156 of file PHG4TruthInfoContainer.h

References vertex_embed_flags.

Referenced by Fun4AllDstPileupMerger::copy_background_event(), and PHG4TruthEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

PHG4TruthInfoContainer::ConstIterator PHG4TruthInfoContainer::AddParticle ( const int  particleid,
PHG4Particle newparticle 
)

Add a particle that the user has created.

Definition at line 98 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 98 of file PHG4TruthInfoContainer.cc

References added, PHG4Particle::get_name(), PHG4Particle::get_parent_id(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), PHG4Particle::get_track_id(), it, and particlemap.

Referenced by PHG4TruthTrackingAction::AddParticle(), PHG4TpcDirectLaser::AppendLaserTrack(), and Fun4AllDstPileupMerger::copy_background_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4TruthInfoContainer::ConstShowerIterator PHG4TruthInfoContainer::AddShower ( const int  showerid,
PHG4Shower newshower 
)

Add a shower that the user has created.

Definition at line 194 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 194 of file PHG4TruthInfoContainer.cc

References added, identify(), it, PHG4Shower::set_id(), and showermap.

Referenced by PHG4TruthTrackingAction::PreUserTrackingAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4TruthInfoContainer::ConstVtxIterator PHG4TruthInfoContainer::AddVertex ( const int  vtxid,
PHG4VtxPoint vertex 
)

Add a vertex and return an iterator to the user.

Definition at line 167 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 167 of file PHG4TruthInfoContainer.cc

References added, identify(), it, PHG4VtxPoint::set_id(), and vtxmap.

Referenced by PHG4TruthTrackingAction::AddVertex(), PHG4TpcDirectLaser::AppendLaserTrack(), and Fun4AllDstPileupMerger::copy_background_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4TruthInfoContainer::delete_particle ( Iterator  piter)

Definition at line 268 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 268 of file PHG4TruthInfoContainer.cc

References particlemap.

Referenced by delete_particle(), PHG4TruthEventAction::EndOfEventAction(), PHG4TruthSubsystem::process_after_geant(), PHG4DstCompressReco::process_event(), PHG4TruthTrackingAction::ResetEvent(), and PHG4TruthTrackingAction::UpdateG4ParticleStack().

+ Here is the caller graph for this function:

void PHG4TruthInfoContainer::delete_particle ( int  trackid)

Definition at line 275 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 275 of file PHG4TruthInfoContainer.cc

References delete_particle(), it, and particlemap.

+ Here is the call graph for this function:

void PHG4TruthInfoContainer::delete_shower ( ShowerIterator  piter)

Definition at line 296 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 296 of file PHG4TruthInfoContainer.cc

References showermap.

Referenced by PHG4TruthEventAction::PruneShowers().

+ Here is the caller graph for this function:

void PHG4TruthInfoContainer::delete_vtx ( VtxIterator  viter)

Definition at line 282 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 282 of file PHG4TruthInfoContainer.cc

References vtxmap.

Referenced by delete_vtx(), PHG4TruthEventAction::EndOfEventAction(), PHG4TruthSubsystem::process_after_geant(), and PHG4DstCompressReco::process_event().

+ Here is the caller graph for this function:

void PHG4TruthInfoContainer::delete_vtx ( int  vtxid)

Definition at line 289 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 289 of file PHG4TruthInfoContainer.cc

References delete_vtx(), it, and vtxmap.

+ Here is the call graph for this function:

std::pair<std::map<int, int>::const_iterator, std::map<int, int>::const_iterator> PHG4TruthInfoContainer::GetEmbeddedTrkIds ( ) const
inline

Retrieve the embedding ID for the HepMC subevent or track to be analyzed. positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 86 of file PHG4TruthInfoContainer.h.

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

References particle_embed_flags.

Referenced by PHG4ConsistencyCheck::process_event().

+ Here is the caller graph for this function:

std::pair<std::map<int, int>::const_iterator, std::map<int, int>::const_iterator> PHG4TruthInfoContainer::GetEmbeddedVtxIds ( ) const
inline

Retrieve the embedding ID for the HepMC subevent or track to be analyzed. positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 147 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 147 of file PHG4TruthInfoContainer.h

References vertex_embed_flags.

const Map& PHG4TruthInfoContainer::GetMap ( ) const
inline

Get the Particle Map storage.

Definition at line 75 of file PHG4TruthInfoContainer.h.

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

References particlemap.

Referenced by PHG4TruthEventAction::BeginOfEventAction(), QAG4SimulationCalorimeterSum::get_truth_particle(), operator==(), MomentumEvaluator::process_event(), PHG4DSTReader::process_event(), QAG4SimulationCalorimeter::process_event_Cluster(), and QAG4SimulationCalorimeter::process_event_G4Hit().

+ Here is the caller graph for this function:

int PHG4TruthInfoContainer::GetNumPrimaryVertexParticles ( )
inline

Definition at line 69 of file PHG4TruthInfoContainer.h.

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

References particlemap.

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

+ Here is the caller graph for this function:

unsigned int PHG4TruthInfoContainer::GetNumVertices ( ) const
inline

Get the number of vertices stored.

Definition at line 129 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 129 of file PHG4TruthInfoContainer.h

References vtxmap.

Referenced by DumpPHG4TruthInfoContainer::process_Node().

+ Here is the caller graph for this function:

Range PHG4TruthInfoContainer::GetParticleRange ( )
inline
ConstRange PHG4TruthInfoContainer::GetParticleRange ( ) const
inline

Definition at line 59 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 59 of file PHG4TruthInfoContainer.h

References particlemap.

PHG4Particle * PHG4TruthInfoContainer::GetPrimaryParticle ( const int  trackid)

Definition at line 126 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 126 of file PHG4TruthInfoContainer.cc

References it, and particlemap.

Referenced by BaseTruthEval::get_primary_particle(), and PHTruthClustering::process_event().

+ Here is the caller graph for this function:

ConstRange PHG4TruthInfoContainer::GetPrimaryParticleRange ( ) const
inline

Definition at line 62 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 62 of file PHG4TruthInfoContainer.h

References particlemap.

PHG4Shower * PHG4TruthInfoContainer::GetPrimaryShower ( const int  showerid)

Definition at line 158 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 158 of file PHG4TruthInfoContainer.cc

References it, and showermap.

ShowerRange PHG4TruthInfoContainer::GetPrimaryShowerRange ( )
inline

Definition at line 180 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 180 of file PHG4TruthInfoContainer.h

References showermap.

Referenced by BaseTruthEval::get_primary_shower().

+ Here is the caller graph for this function:

ConstShowerRange PHG4TruthInfoContainer::GetPrimaryShowerRange ( ) const
inline

Definition at line 181 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 181 of file PHG4TruthInfoContainer.h

References showermap.

int PHG4TruthInfoContainer::GetPrimaryVertexIndex ( ) const

Return ID of the truth primary vertex with highest embedding ID. For vertex with identical embedding ID, return first one simulated in Geant4.

Definition at line 335 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 335 of file PHG4TruthInfoContainer.cc

References GetPrimaryVtxRange(), isEmbededVtx(), and min.

Referenced by CaloEvaluator::fillOutputNtuples(), identify(), PHGenFitTrkFitter::MakeSvtxTrack(), CaloEvaluator::printOutputInfo(), SvtxEvaluator::printOutputInfo(), MomentumEvaluator::process_event(), G4VtxNtuple::process_event(), BbcVertexFastSimReco::process_event(), GlobalVertexFastSimReco::process_event(), PHG4TrackFastSim::process_event(), and B0TrackFastSim::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VtxRange PHG4TruthInfoContainer::GetPrimaryVtxRange ( )
inline

Definition at line 122 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 122 of file PHG4TruthInfoContainer.h

References vtxmap.

Referenced by PHGenFitTrkFitter::fill_eval_tree(), SvtxEvaluator::fillOutputNtuples(), GetPrimaryVertexIndex(), PHTruthVertexing::Process(), PHSiliconTruthTrackSeeding::Process(), and QAG4SimulationVertex::process_event().

+ Here is the caller graph for this function:

ConstVtxRange PHG4TruthInfoContainer::GetPrimaryVtxRange ( ) const
inline

Definition at line 123 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 123 of file PHG4TruthInfoContainer.h

References vtxmap.

Range PHG4TruthInfoContainer::GetSecondaryParticleRange ( )
inline

Definition at line 64 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 64 of file PHG4TruthInfoContainer.h

References particlemap.

Referenced by PHG4DstCompressReco::process_event().

+ Here is the caller graph for this function:

ConstRange PHG4TruthInfoContainer::GetSecondaryParticleRange ( ) const
inline

Definition at line 65 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 65 of file PHG4TruthInfoContainer.h

References particlemap.

ShowerRange PHG4TruthInfoContainer::GetSecondaryShowerRange ( )
inline

Definition at line 183 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 183 of file PHG4TruthInfoContainer.h

References showermap.

Referenced by BaseTruthEval::all_secondary_showers().

+ Here is the caller graph for this function:

ConstShowerRange PHG4TruthInfoContainer::GetSecondaryShowerRange ( ) const
inline

Definition at line 184 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 184 of file PHG4TruthInfoContainer.h

References showermap.

VtxRange PHG4TruthInfoContainer::GetSecondaryVtxRange ( )
inline

Definition at line 125 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 125 of file PHG4TruthInfoContainer.h

References vtxmap.

Referenced by PHG4DstCompressReco::process_event().

+ Here is the caller graph for this function:

ConstVtxRange PHG4TruthInfoContainer::GetSecondaryVtxRange ( ) const
inline

Definition at line 126 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 126 of file PHG4TruthInfoContainer.h

References vtxmap.

PHG4Shower * PHG4TruthInfoContainer::GetShower ( const int  showerid)

Definition at line 150 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 150 of file PHG4TruthInfoContainer.cc

References it, and showermap.

Referenced by CaloRawTowerEval::all_truth_primary_showers(), and BaseTruthEval::get_primary_shower().

+ Here is the caller graph for this function:

const ShowerMap& PHG4TruthInfoContainer::GetShowerMap ( ) const
inline

Get the Shower Map storage.

Definition at line 190 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 190 of file PHG4TruthInfoContainer.h

References showermap.

Referenced by operator==().

+ Here is the caller graph for this function:

ShowerRange PHG4TruthInfoContainer::GetShowerRange ( )
inline

Get a range of iterators covering the entire container.

Definition at line 177 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 177 of file PHG4TruthInfoContainer.h

References showermap.

Referenced by PHG4DstCompressReco::process_event(), DumpPHG4TruthInfoContainer::process_Node(), PHG4TruthEventAction::ProcessShowers(), and PHG4TruthEventAction::PruneShowers().

+ Here is the caller graph for this function:

ConstShowerRange PHG4TruthInfoContainer::GetShowerRange ( ) const
inline

Definition at line 178 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 178 of file PHG4TruthInfoContainer.h

References showermap.

const VtxMap& PHG4TruthInfoContainer::GetVtxMap ( ) const
inline

Get the Vertex Map storage.

Definition at line 132 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 132 of file PHG4TruthInfoContainer.h

References vtxmap.

Referenced by PHG4TruthTrackingAction::AddVertex(), and operator==().

+ Here is the caller graph for this function:

VtxRange PHG4TruthInfoContainer::GetVtxRange ( )
inline

Get a range of iterators covering the entire vertex container.

Definition at line 119 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 119 of file PHG4TruthInfoContainer.h

References vtxmap.

Referenced by PHG4TruthEventAction::EndOfEventAction(), PHG4TruthSubsystem::process_after_geant(), and DumpPHG4TruthInfoContainer::process_Node().

+ Here is the caller graph for this function:

ConstVtxRange PHG4TruthInfoContainer::GetVtxRange ( ) const
inline

Definition at line 120 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 120 of file PHG4TruthInfoContainer.h

References vtxmap.

void PHG4TruthInfoContainer::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 50 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 50 of file PHG4TruthInfoContainer.cc

References GetPrimaryVertexIndex(), particle_embed_flags, particlemap, showermap, vertex_embed_flags, and vtxmap.

Referenced by AddShower(), AddVertex(), and PHG4ParticleGeneratorBase::ReuseExistingVertex().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool PHG4TruthInfoContainer::is_primary ( const PHG4Particle p) const

Definition at line 330 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 330 of file PHG4TruthInfoContainer.cc

References PHG4Particle::get_track_id().

Referenced by AnaTutorialECCE::getTracks(), AnaTutorial::getTracks(), and eIDMLInterface::getTracks().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool PHG4TruthInfoContainer::is_primary_vtx ( const PHG4VtxPoint v) const

Definition at line 325 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 325 of file PHG4TruthInfoContainer.cc

References PHG4VtxPoint::get_id().

+ Here is the call graph for this function:

int PHG4TruthInfoContainer::isEmbeded ( const int  trackid) const

Retrieve the embedding ID for the HepMC subevent or track to be analyzed. positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 303 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 303 of file PHG4TruthInfoContainer.cc

References particle_embed_flags.

Referenced by BaseTruthEval::get_embed(), DSTEmulator::get_embed(), TrackEvaluation::get_embed(), TruthJetInput::get_input(), SvtxEvaluator::printOutputInfo(), PHSiliconTruthTrackSeeding::Process(), PHG4TruthSubsystem::process_after_geant(), PHG4ConsistencyCheck::process_event(), DetermineTowerBackground::process_event(), and PHTruthClustering::process_event().

+ Here is the caller graph for this function:

int PHG4TruthInfoContainer::isEmbededVtx ( const int  vtxid) const

Retrieve the embedding ID for the HepMC subevent or track to be analyzed. positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 314 of file PHG4TruthInfoContainer.cc.

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

References vertex_embed_flags.

Referenced by SvtxEvaluator::fillOutputNtuples(), GetPrimaryVertexIndex(), PHTruthVertexing::Process(), PHSiliconTruthTrackSeeding::Process(), and QAG4SimulationVertex::process_event().

+ Here is the caller graph for this function:

int PHG4TruthInfoContainer::maxshowerindex ( ) const

Definition at line 252 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 252 of file PHG4TruthInfoContainer.cc

References showermap.

Referenced by DumpPHG4TruthInfoContainer::process_Node().

+ Here is the caller graph for this function:

int PHG4TruthInfoContainer::maxtrkindex ( ) const

Definition at line 220 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 220 of file PHG4TruthInfoContainer.cc

References particlemap.

Referenced by PHG4TruthTrackingAction::AddParticle(), PHG4TpcDirectLaser::AppendLaserTrack(), Fun4AllDstPileupMerger::copy_background_event(), and DumpPHG4TruthInfoContainer::process_Node().

+ Here is the caller graph for this function:

int PHG4TruthInfoContainer::maxvtxindex ( ) const

Definition at line 236 of file PHG4TruthInfoContainer.cc.

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

References vtxmap.

Referenced by PHG4TruthTrackingAction::AddVertex(), PHG4TpcDirectLaser::AppendLaserTrack(), Fun4AllDstPileupMerger::copy_background_event(), and DumpPHG4TruthInfoContainer::process_Node().

+ Here is the caller graph for this function:

int PHG4TruthInfoContainer::minshowerindex ( ) const

Definition at line 260 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 260 of file PHG4TruthInfoContainer.cc

References showermap.

Referenced by DumpPHG4TruthInfoContainer::process_Node().

+ Here is the caller graph for this function:

int PHG4TruthInfoContainer::mintrkindex ( ) const

Definition at line 228 of file PHG4TruthInfoContainer.cc.

View newest version in sPHENIX GitHub at line 228 of file PHG4TruthInfoContainer.cc

References particlemap.

Referenced by PHG4TruthTrackingAction::AddParticle(), Fun4AllDstPileupMerger::copy_background_event(), and DumpPHG4TruthInfoContainer::process_Node().

+ Here is the caller graph for this function:

int PHG4TruthInfoContainer::minvtxindex ( ) const

Definition at line 244 of file PHG4TruthInfoContainer.cc.

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

References vtxmap.

Referenced by PHG4TruthTrackingAction::AddVertex(), Fun4AllDstPileupMerger::copy_background_event(), and DumpPHG4TruthInfoContainer::process_Node().

+ Here is the caller graph for this function:

void PHG4TruthInfoContainer::Reset ( )
overridevirtual

Clear Event.

Reimplemented from PHObject.

Definition at line 24 of file PHG4TruthInfoContainer.cc.

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

References particle_embed_flags, particlemap, showermap, vertex_embed_flags, and vtxmap.

Referenced by ~PHG4TruthInfoContainer().

+ Here is the caller graph for this function:

unsigned int PHG4TruthInfoContainer::shower_size ( void  ) const
inline

shower size

Definition at line 187 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 187 of file PHG4TruthInfoContainer.h

References showermap.

Referenced by DumpPHG4TruthInfoContainer::process_Node().

+ Here is the caller graph for this function:

unsigned int PHG4TruthInfoContainer::size ( void  ) const
inline

track -> particle map size

Definition at line 68 of file PHG4TruthInfoContainer.h.

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

References particlemap.

Referenced by DumpPHG4TruthInfoContainer::process_Node().

+ Here is the caller graph for this function:

Member Data Documentation

std::map<int, int> PHG4TruthInfoContainer::particle_embed_flags
private

Definition at line 229 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 229 of file PHG4TruthInfoContainer.h

Referenced by AddEmbededTrkId(), GetEmbeddedTrkIds(), identify(), isEmbeded(), and Reset().

Map PHG4TruthInfoContainer::particlemap
private

particle storage map format description: primary particles are appended in the positive direction secondary particles are appended in the negative direction +N primary particle id => particle* +N-1 ... +1 primary particle id => particle* 0 no entry -1 secondary particle id => particle* ... -M+1 -M secondary particle id => particle*

Definition at line 208 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 208 of file PHG4TruthInfoContainer.h

Referenced by AddParticle(), delete_particle(), GetMap(), GetNumPrimaryVertexParticles(), GetParticle(), GetParticleRange(), GetPrimaryParticle(), GetPrimaryParticleRange(), GetSecondaryParticleRange(), identify(), maxtrkindex(), mintrkindex(), Reset(), and size().

ShowerMap PHG4TruthInfoContainer::showermap
private

shower map showers encapsulate the secondaries and hits from a primary particle

Definition at line 226 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 226 of file PHG4TruthInfoContainer.h

Referenced by AddShower(), delete_shower(), GetPrimaryShower(), GetPrimaryShowerRange(), GetSecondaryShowerRange(), GetShower(), GetShowerMap(), GetShowerRange(), identify(), maxshowerindex(), minshowerindex(), Reset(), and shower_size().

std::map<int, int> PHG4TruthInfoContainer::vertex_embed_flags
private

Definition at line 230 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 230 of file PHG4TruthInfoContainer.h

Referenced by AddEmbededVtxId(), GetEmbeddedVtxIds(), identify(), isEmbededVtx(), and Reset().

VtxMap PHG4TruthInfoContainer::vtxmap
private

vertex storage map format description: primary vertexes are appended in the positive direction secondary vertexes are appended in the negative direction +N primary vertex id => vertex* +N-1 ... +1 primary vertex id => vertex* 0 no entry -1 secondary vertex id => vertex* ... -M+1 -M secondary vertex id => vertex*

Definition at line 222 of file PHG4TruthInfoContainer.h.

View newest version in sPHENIX GitHub at line 222 of file PHG4TruthInfoContainer.h

Referenced by AddVertex(), delete_vtx(), GetNumVertices(), GetPrimaryVtx(), GetPrimaryVtxRange(), GetSecondaryVtxRange(), GetVtx(), GetVtxMap(), GetVtxRange(), identify(), maxvtxindex(), minvtxindex(), and Reset().


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