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

#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4eiccalos/PHG4FCalSubsystem.h>

+ Inheritance diagram for PHG4FCalSubsystem:
+ Collaboration diagram for PHG4FCalSubsystem:

Public Member Functions

 PHG4FCalSubsystem (const char *name="FCAL")
 constructor
 
virtual ~PHG4FCalSubsystem (void)
 destructor
 
int Init (PHCompositeNode *)
 init
 
int process_event (PHCompositeNode *)
 event processing
 
virtual PHG4DetectorGetDetector (void) const
 accessors (reimplemented)
 
- Public Member Functions inherited from PHG4Subsystem
 PHG4Subsystem (const std::string &name="Generic Subsystem")
 constructor
 
 ~PHG4Subsystem (void) override
 destructor
 
virtual int process_after_geant (PHCompositeNode *)
 event processing
 
virtual PHG4EventActionGetEventAction (void) const
 return pointer to this subsystem event action
 
virtual PHG4SteppingActionGetSteppingAction (void) const
 return pointer to this subsystem stepping action
 
virtual PHG4TrackingActionGetTrackingAction (void) const
 return pointer to this subsystem stepping action
 
virtual PHG4DisplayActionGetDisplayAction () const
 return pointer to this subsystem display setting
 
virtual PHG4StackingActionGetStackingAction () const
 
void OverlapCheck (const bool chk=true)
 
bool CheckOverlap () const
 
void SetMotherSubsystem (PHG4Subsystem *subsys)
 
PHG4SubsystemGetMotherSubsystem () const
 
void SetLogicalVolume (G4LogicalVolume *vol)
 
G4LogicalVolumeGetLogicalVolume () const
 
virtual bool CanBeMotherSubsystem () const
 
virtual void AddProcesses (G4ParticleDefinition *)
 
virtual void DefineMaterials ()
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int End (PHCompositeNode *)
 Called at the end of all processing.
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int InitRun (PHCompositeNode *)
 
virtual int Reset (PHCompositeNode *)
 Reset.
 
virtual int ResetEvent (PHCompositeNode *)
 Clean up after each event.
 
void Print (const std::string &="ALL") const override
 
- Public Member Functions inherited from Fun4AllBase
virtual ~Fun4AllBase ()
 
virtual const std::string Name () const
 Returns the name of this module.
 
virtual void Name (const std::string &name)
 Sets the name of this module.
 
virtual void Verbosity (const int ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual void Verbosity (enu_Verbosity ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual int Verbosity () const
 Gets the verbosity of this module.
 

Private Attributes

PHG4FCalDetectordetector_
 detector geometry
 

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")
 

Detailed Description

Definition at line 12 of file PHG4FCalSubsystem.h.

View newest version in sPHENIX GitHub at line 12 of file PHG4FCalSubsystem.h

Constructor & Destructor Documentation

PHG4FCalSubsystem::PHG4FCalSubsystem ( const char *  name = "FCAL")

constructor

Definition at line 21 of file PHG4FCalSubsystem.cc.

View newest version in sPHENIX GitHub at line 21 of file PHG4FCalSubsystem.cc

virtual PHG4FCalSubsystem::~PHG4FCalSubsystem ( void  )
inlinevirtual

destructor

Definition at line 19 of file PHG4FCalSubsystem.h.

View newest version in sPHENIX GitHub at line 19 of file PHG4FCalSubsystem.h

Member Function Documentation

PHG4Detector * PHG4FCalSubsystem::GetDetector ( void  ) const
virtual

accessors (reimplemented)

Reimplemented from PHG4Subsystem.

Definition at line 58 of file PHG4FCalSubsystem.cc.

View newest version in sPHENIX GitHub at line 58 of file PHG4FCalSubsystem.cc

References detector_.

int PHG4FCalSubsystem::Init ( PHCompositeNode topNode)
virtual

init

creates the detector_ object and place it on the node tree, under "DETECTORS" node (or whatever) reates the stepping action and place it on the node tree, under "ACTIONS" node creates relevant hit nodes that will be populated by the stepping action and stored in the output DST

Reimplemented from SubsysReco.

Definition at line 28 of file PHG4FCalSubsystem.cc.

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

References PHCompositeNode::addNode(), detector_, PHNodeIterator::findFirst(), Fun4AllBase::Name(), PHG4Detector::topNode(), PHG4Detector::Verbosity(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int PHG4FCalSubsystem::process_event ( PHCompositeNode topNode)
virtual

event processing

get all relevant nodes from top nodes (namely hit list) and pass that to the stepping action

Reimplemented from SubsysReco.

Definition at line 49 of file PHG4FCalSubsystem.cc.

View newest version in sPHENIX GitHub at line 49 of file PHG4FCalSubsystem.cc

References detector_, and PHG4FCalDetector::GetSteppingAction().

+ Here is the call graph for this function:

Member Data Documentation

PHG4FCalDetector* PHG4FCalSubsystem::detector_
private

detector geometry

defives from PHG4Detector

Definition at line 44 of file PHG4FCalSubsystem.h.

View newest version in sPHENIX GitHub at line 44 of file PHG4FCalSubsystem.h

Referenced by GetDetector(), Init(), and process_event().


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