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

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

+ Inheritance diagram for PHG4TruthEventAction:
+ Collaboration diagram for PHG4TruthEventAction:

Public Member Functions

 PHG4TruthEventAction ()
 constructor
 
 ~PHG4TruthEventAction () override
 destuctor
 
void BeginOfEventAction (const G4Event *) override
 
void EndOfEventAction (const G4Event *) override
 
int ResetEvent (PHCompositeNode *) override
 
void SetInterfacePointers (PHCompositeNode *) override
 get relevant nodes from top node passed as argument
 
void AddTrackidToWritelist (const int trackid)
 add id into track list
 
- Public Member Functions inherited from PHG4EventAction
 PHG4EventAction (void)
 
virtual ~PHG4EventAction ()
 

Private Member Functions

void SearchNode (PHCompositeNode *topNode)
 
void PruneShowers ()
 
void ProcessShowers ()
 

Private Attributes

std::set< intm_WriteSet
 set of track ids to be written out
 
PHG4TruthInfoContainerm_TruthInfoContainer
 pointer to truth information container
 
int m_LowerKeyPrevExist
 
int m_UpperKeyPrevExist
 
std::map< int, PHG4HitContainer * > m_HitContainerMap
 

Detailed Description

Definition at line 16 of file PHG4TruthEventAction.h.

View newest version in sPHENIX GitHub at line 16 of file PHG4TruthEventAction.h

Constructor & Destructor Documentation

PHG4TruthEventAction::PHG4TruthEventAction ( )

constructor

Definition at line 40 of file PHG4TruthEventAction.cc.

View newest version in sPHENIX GitHub at line 40 of file PHG4TruthEventAction.cc

PHG4TruthEventAction::~PHG4TruthEventAction ( )
inlineoverride

destuctor

Definition at line 23 of file PHG4TruthEventAction.h.

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

Member Function Documentation

void PHG4TruthEventAction::AddTrackidToWritelist ( const int  trackid)

add id into track list

Definition at line 218 of file PHG4TruthEventAction.cc.

View newest version in sPHENIX GitHub at line 218 of file PHG4TruthEventAction.cc

References m_WriteSet.

Referenced by PHG4TruthTrackingAction::PostUserTrackingAction().

+ Here is the caller graph for this function:

void PHG4TruthEventAction::BeginOfEventAction ( const G4Event )
overridevirtual

Reimplemented from PHG4EventAction.

Definition at line 48 of file PHG4TruthEventAction.cc.

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

References PHG4TruthInfoContainer::GetMap(), m_LowerKeyPrevExist, m_TruthInfoContainer, and m_UpperKeyPrevExist.

+ Here is the call graph for this function:

void PHG4TruthEventAction::ProcessShowers ( )
private
void PHG4TruthEventAction::PruneShowers ( )
private

Definition at line 277 of file PHG4TruthEventAction.cc.

View newest version in sPHENIX GitHub at line 277 of file PHG4TruthEventAction.cc

References PHG4Shower::begin_g4hit_id(), PHG4Shower::begin_g4particle_id(), PHG4TruthInfoContainer::delete_shower(), PHG4Shower::empty_g4hit_id(), PHG4Shower::empty_g4particle_id(), PHG4Shower::end_g4hit_id(), PHG4Shower::end_g4particle_id(), PHG4Shower::get_edep(), PHG4TruthInfoContainer::GetParticle(), PHG4TruthInfoContainer::GetShowerRange(), m_HitContainerMap, m_TruthInfoContainer, particle, PHG4Shower::remove_g4hit_volume(), and PHG4Shower::remove_g4particle_id().

Referenced by EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHG4TruthEventAction::ResetEvent ( PHCompositeNode )
overridevirtual

Reimplemented from PHG4EventAction.

Definition at line 271 of file PHG4TruthEventAction.cc.

View newest version in sPHENIX GitHub at line 271 of file PHG4TruthEventAction.cc

References m_WriteSet.

Referenced by PHG4TruthSubsystem::ResetEvent().

+ Here is the caller graph for this function:

void PHG4TruthEventAction::SearchNode ( PHCompositeNode topNode)
private

Definition at line 238 of file PHG4TruthEventAction.cc.

View newest version in sPHENIX GitHub at line 238 of file PHG4TruthEventAction.cc

References PHDataNode< T >::getData(), PHNodeIterator::ls(), and m_HitContainerMap.

Referenced by SetInterfacePointers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4TruthEventAction::SetInterfacePointers ( PHCompositeNode topNode)
overridevirtual

get relevant nodes from top node passed as argument

Reimplemented from PHG4EventAction.

Definition at line 224 of file PHG4TruthEventAction.cc.

View newest version in sPHENIX GitHub at line 224 of file PHG4TruthEventAction.cc

References m_TruthInfoContainer, and SearchNode().

Referenced by PHG4TruthSubsystem::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::map<int, PHG4HitContainer*> PHG4TruthEventAction::m_HitContainerMap
private

Definition at line 51 of file PHG4TruthEventAction.h.

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

Referenced by ProcessShowers(), PruneShowers(), and SearchNode().

int PHG4TruthEventAction::m_LowerKeyPrevExist
private

Definition at line 48 of file PHG4TruthEventAction.h.

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

Referenced by BeginOfEventAction(), and EndOfEventAction().

PHG4TruthInfoContainer* PHG4TruthEventAction::m_TruthInfoContainer
private

pointer to truth information container

Definition at line 46 of file PHG4TruthEventAction.h.

View newest version in sPHENIX GitHub at line 46 of file PHG4TruthEventAction.h

Referenced by BeginOfEventAction(), EndOfEventAction(), ProcessShowers(), PruneShowers(), and SetInterfacePointers().

int PHG4TruthEventAction::m_UpperKeyPrevExist
private

Definition at line 49 of file PHG4TruthEventAction.h.

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

Referenced by BeginOfEventAction(), and EndOfEventAction().

std::set<int> PHG4TruthEventAction::m_WriteSet
private

set of track ids to be written out

Definition at line 43 of file PHG4TruthEventAction.h.

View newest version in sPHENIX GitHub at line 43 of file PHG4TruthEventAction.h

Referenced by AddTrackidToWritelist(), EndOfEventAction(), and ResetEvent().


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