Class Reference for E1039 Core & Analysis Software
PHG4Subsystem.h
Go to the documentation of this file.
1 #ifndef PHG4Subsystem_h
2 #define PHG4Subsystem_h
3 
4 #include <fun4all/SubsysReco.h>
5 
6 #include <iostream>
7 #include <string>
8 
9 class PHG4Detector;
10 class PHG4EventAction;
11 class PHG4SteppingAction;
12 class PHG4TrackingAction;
13 class PHParameters;
14 
16 {
17 
18  public:
19 
21  PHG4Subsystem( const std::string &name = "Generic Subsystem" ): SubsysReco(name),
22 overlapcheck(false), params(nullptr)
23  {}
24 
26  virtual ~PHG4Subsystem( void ) {}
27 
30  { return 0; }
31 
33  virtual PHG4Detector* GetDetector( void ) const
34  { return 0; }
35 
37  virtual PHG4EventAction* GetEventAction( void ) const
38  { return 0; }
39 
41  virtual PHG4SteppingAction* GetSteppingAction( void ) const
42  { return 0; }
43 
45  virtual PHG4TrackingAction* GetTrackingAction( void ) const
46  { return 0; }
47 
48  void OverlapCheck(const bool chk = true) {overlapcheck = chk;}
49 
50  bool CheckOverlap() const {return overlapcheck;}
51 
52  PHParameters* GetParams() { return params; }
53 
54  protected:
57 
58 
59 };
60 
61 #endif
base class for phenix detector creation
Definition: PHG4Detector.h:14
PHG4Subsystem(const std::string &name="Generic Subsystem")
constructor
Definition: PHG4Subsystem.h:21
void OverlapCheck(const bool chk=true)
Definition: PHG4Subsystem.h:48
virtual PHG4EventAction * GetEventAction(void) const
return pointer to this subsystem event action
Definition: PHG4Subsystem.h:37
virtual PHG4Detector * GetDetector(void) const
return pointer to created detector object
Definition: PHG4Subsystem.h:33
PHParameters * params
Definition: PHG4Subsystem.h:56
bool CheckOverlap() const
Definition: PHG4Subsystem.h:50
PHParameters * GetParams()
Definition: PHG4Subsystem.h:52
virtual ~PHG4Subsystem(void)
destructor
Definition: PHG4Subsystem.h:26
virtual int process_after_geant(PHCompositeNode *)
event processing
Definition: PHG4Subsystem.h:29
virtual PHG4TrackingAction * GetTrackingAction(void) const
return pointer to this subsystem stepping action
Definition: PHG4Subsystem.h:45
virtual PHG4SteppingAction * GetSteppingAction(void) const
return pointer to this subsystem stepping action
Definition: PHG4Subsystem.h:41