Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PHG4TruthSubsystem Class Reference

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/simulation/g4main/PHG4TruthSubsystem.h>

+ Inheritance diagram for PHG4TruthSubsystem:
+ Collaboration diagram for PHG4TruthSubsystem:

Public Member Functions

 PHG4TruthSubsystem (const std::string &name="TRUTH")
 constructor More...
 
virtual ~PHG4TruthSubsystem (void)
 destructor More...
 
int InitRun (PHCompositeNode *)
 init More...
 
int process_event (PHCompositeNode *)
 event processing More...
 
virtual int process_after_geant (PHCompositeNode *)
 event processing More...
 
int ResetEvent (PHCompositeNode *)
 Clean up after each event. More...
 
virtual PHG4EventActionGetEventAction (void) const
 accessors (reimplemented) More...
 
virtual PHG4SteppingActionGetSteppingAction (void) const
 return pointer to this subsystem stepping action More...
 
virtual PHG4TrackingActionGetTrackingAction (void) const
 return pointer to this subsystem stepping action More...
 
void SetSaveOnlyEmbeded (bool b=true)
 only save the G4 truth information that is associated with the embedded particle More...
 
- Public Member Functions inherited from PHG4Subsystem
 PHG4Subsystem (const std::string &name="Generic Subsystem")
 constructor More...
 
virtual ~PHG4Subsystem (void)
 destructor More...
 
virtual PHG4DetectorGetDetector (void) const
 return pointer to created detector object More...
 
void OverlapCheck (const bool chk=true)
 
bool CheckOverlap () const
 
PHParametersGetParams ()
 
- Public Member Functions inherited from SubsysReco
virtual ~SubsysReco ()
 
virtual int End (PHCompositeNode *)
 Called at the end of all processing. More...
 
virtual int EndRun (const int)
 Called at the end of each run. More...
 
virtual int Init (PHCompositeNode *)
 
virtual int Reset (PHCompositeNode *)
 Reset. More...
 
virtual void Print (const std::string &what="ALL") const
 
- Public Member Functions inherited from Fun4AllBase
virtual ~Fun4AllBase ()
 
virtual const std::string Name () const
 Returns the name of this module. More...
 
virtual void Name (const std::string &name)
 Sets the name of this module. More...
 
virtual void Verbosity (const int ival)
 Sets the verbosity of this module (0 by default=quiet). More...
 
virtual void Verbosity (enu_Verbosity ival)
 Sets the verbosity of this module (0 by default=quiet). More...
 
virtual int Verbosity () const
 Gets the verbosity of this module. More...
 

Additional Inherited Members

- Public Types inherited from Fun4AllBase
enum  enu_Verbosity {
  VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3,
  VERBOSITY_A_LOT = 4, VERBOSITY_MAX = INT_MAX - 10
}
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 
- Protected Member Functions inherited from Fun4AllBase
 Fun4AllBase (const std::string &name="NONAME")
 
- Protected Attributes inherited from PHG4Subsystem
bool overlapcheck
 
PHParametersparams
 
- Protected Attributes inherited from Fun4AllBase
std::string ThisName
 
int verbosity
 The verbosity level. 0 means not verbose at all. More...
 

Detailed Description

Definition at line 11 of file PHG4TruthSubsystem.h.

Constructor & Destructor Documentation

PHG4TruthSubsystem::PHG4TruthSubsystem ( const std::string &  name = "TRUTH")

constructor

Definition at line 27 of file PHG4TruthSubsystem.cc.

virtual PHG4TruthSubsystem::~PHG4TruthSubsystem ( void  )
inlinevirtual

destructor

Definition at line 20 of file PHG4TruthSubsystem.h.

Member Function Documentation

PHG4EventAction * PHG4TruthSubsystem::GetEventAction ( void  ) const
virtual

accessors (reimplemented)

Reimplemented from PHG4Subsystem.

Definition at line 154 of file PHG4TruthSubsystem.cc.

PHG4SteppingAction * PHG4TruthSubsystem::GetSteppingAction ( void  ) const
virtual

return pointer to this subsystem stepping action

Reimplemented from PHG4Subsystem.

Definition at line 159 of file PHG4TruthSubsystem.cc.

PHG4TrackingAction * PHG4TruthSubsystem::GetTrackingAction ( void  ) const
virtual

return pointer to this subsystem stepping action

Reimplemented from PHG4Subsystem.

Definition at line 163 of file PHG4TruthSubsystem.cc.

int PHG4TruthSubsystem::InitRun ( PHCompositeNode topNode)
virtual

init

Reimplemented from SubsysReco.

Definition at line 36 of file PHG4TruthSubsystem.cc.

References PHCompositeNode::addNode(), and PHNodeIterator::findFirst().

+ Here is the call graph for this function:

int PHG4TruthSubsystem::process_after_geant ( PHCompositeNode topNode)
virtual

event processing

Reimplemented from PHG4Subsystem.

Definition at line 91 of file PHG4TruthSubsystem.cc.

References PHG4TruthInfoContainer::delete_particle(), PHG4TruthInfoContainer::delete_vtx(), PHG4TruthInfoContainer::GetParticleRange(), PHG4TruthInfoContainer::GetVtxRange(), PHG4TruthInfoContainer::isEmbeded(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int PHG4TruthSubsystem::process_event ( PHCompositeNode topNode)
virtual

event processing

Reimplemented from SubsysReco.

Definition at line 64 of file PHG4TruthSubsystem.cc.

References Fun4AllReturnCodes::EVENT_OK, PHWHERE, PHG4TruthTrackingAction::SetInterfacePointers(), and PHG4TruthEventAction::SetInterfacePointers().

+ Here is the call graph for this function:

int PHG4TruthSubsystem::ResetEvent ( PHCompositeNode topNode)
virtual

Clean up after each event.

Reimplemented from SubsysReco.

Definition at line 146 of file PHG4TruthSubsystem.cc.

References PHG4TruthTrackingAction::ResetEvent(), and PHG4TruthEventAction::ResetEvent().

+ Here is the call graph for this function:

void PHG4TruthSubsystem::SetSaveOnlyEmbeded ( bool  b = true)
inline

only save the G4 truth information that is associated with the embedded particle

Definition at line 41 of file PHG4TruthSubsystem.h.


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