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

#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4EnvelopeSubsystem.h>

+ Inheritance diagram for PHG4EnvelopeSubsystem:
+ Collaboration diagram for PHG4EnvelopeSubsystem:

Public Member Functions

 PHG4EnvelopeSubsystem (const std::string &name="ENVELOPE_DEFAULT", const int layer=0)
 
 ~PHG4EnvelopeSubsystem (void) override
 
int Init (PHCompositeNode *) override
 
int process_event (PHCompositeNode *) override
 
PHG4DetectorGetDetector (void) const override
 return pointer to created detector object
 
PHG4SteppingActionGetSteppingAction (void) const override
 return pointer to this subsystem stepping action
 
- 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 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

PHG4EnvelopeDetectordetector_
 
PHG4EnvelopeSteppingActionsteppingAction_
 
G4String material
 
int active
 
std::string detector_type
 

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 18 of file PHG4EnvelopeSubsystem.h.

View newest version in sPHENIX GitHub at line 18 of file PHG4EnvelopeSubsystem.h

Constructor & Destructor Documentation

PHG4EnvelopeSubsystem::PHG4EnvelopeSubsystem ( const std::string &  name = "ENVELOPE_DEFAULT",
const int  layer = 0 
)

Definition at line 20 of file PHG4EnvelopeSubsystem.cc.

View newest version in sPHENIX GitHub at line 20 of file PHG4EnvelopeSubsystem.cc

PHG4EnvelopeSubsystem::~PHG4EnvelopeSubsystem ( void  )
inlineoverride

Definition at line 25 of file PHG4EnvelopeSubsystem.h.

View newest version in sPHENIX GitHub at line 25 of file PHG4EnvelopeSubsystem.h

Member Function Documentation

PHG4Detector * PHG4EnvelopeSubsystem::GetDetector ( void  ) const
overridevirtual

return pointer to created detector object

Reimplemented from PHG4Subsystem.

Definition at line 74 of file PHG4EnvelopeSubsystem.cc.

View newest version in sPHENIX GitHub at line 74 of file PHG4EnvelopeSubsystem.cc

References detector_.

PHG4SteppingAction * PHG4EnvelopeSubsystem::GetSteppingAction ( void  ) const
overridevirtual

return pointer to this subsystem stepping action

Reimplemented from PHG4Subsystem.

Definition at line 80 of file PHG4EnvelopeSubsystem.cc.

View newest version in sPHENIX GitHub at line 80 of file PHG4EnvelopeSubsystem.cc

References steppingAction_.

int PHG4EnvelopeSubsystem::Init ( PHCompositeNode )
overridevirtual

Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).

Reimplemented from SubsysReco.

Definition at line 31 of file PHG4EnvelopeSubsystem.cc.

View newest version in sPHENIX GitHub at line 31 of file PHG4EnvelopeSubsystem.cc

References active, PHCompositeNode::addNode(), PHG4Subsystem::CheckOverlap(), detector_, detector_type, PHNodeIterator::findFirst(), Fun4AllBase::Name(), PHG4Detector::OverlapCheck(), PHG4EnvelopeDetector::SetActive(), and steppingAction_.

+ Here is the call graph for this function:

int PHG4EnvelopeSubsystem::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 62 of file PHG4EnvelopeSubsystem.cc.

View newest version in sPHENIX GitHub at line 62 of file PHG4EnvelopeSubsystem.cc

References PHG4EnvelopeSteppingAction::SetInterfacePointers(), and steppingAction_.

+ Here is the call graph for this function:

Member Data Documentation

int PHG4EnvelopeSubsystem::active
private

Definition at line 51 of file PHG4EnvelopeSubsystem.h.

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

Referenced by Init().

PHG4EnvelopeDetector* PHG4EnvelopeSubsystem::detector_
private

Definition at line 45 of file PHG4EnvelopeSubsystem.h.

View newest version in sPHENIX GitHub at line 45 of file PHG4EnvelopeSubsystem.h

Referenced by GetDetector(), and Init().

std::string PHG4EnvelopeSubsystem::detector_type
private

Definition at line 53 of file PHG4EnvelopeSubsystem.h.

View newest version in sPHENIX GitHub at line 53 of file PHG4EnvelopeSubsystem.h

Referenced by Init().

G4String PHG4EnvelopeSubsystem::material
private

Definition at line 50 of file PHG4EnvelopeSubsystem.h.

View newest version in sPHENIX GitHub at line 50 of file PHG4EnvelopeSubsystem.h

Referenced by emcalc_gui.MainWindow::cb_select_material(), and emcalc_gui.MainWindow::cb_show_plot().

PHG4EnvelopeSteppingAction* PHG4EnvelopeSubsystem::steppingAction_
private

Definition at line 48 of file PHG4EnvelopeSubsystem.h.

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

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


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