Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4EnvelopeSubsystem.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4EnvelopeSubsystem.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4ENVELOPESUBSYSTEM_H
4 #define G4DETECTORS_PHG4ENVELOPESUBSYSTEM_H
5 
6 #include <g4main/PHG4Subsystem.h>
7 
8 #include <Geant4/G4String.hh>
9 
10 #include <string> // for string
11 
12 class PHG4Detector;
15 class PHG4SteppingAction;
16 class PHCompositeNode;
17 
19 {
20  public:
21  //Constructor
22  PHG4EnvelopeSubsystem(const std::string& name = "ENVELOPE_DEFAULT", const int layer = 0);
23 
24  //Destructor
25  ~PHG4EnvelopeSubsystem(void) override
26  {
27  }
28 
29  /*
30  Creates the detector_ object and place it on the node tree, under "DETECTORS" node (or whatever)
31  Creates the stepping action and place it on the node tree, under "ACTIONS" node
32  Creates relevant hit nodes that will be populated by the stepping action and stored in the output DST
33  */
34 
35  int Init(PHCompositeNode*) override;
36 
37  //Event Processing
38  int process_event(PHCompositeNode*) override;
39 
40  //Accessors (reimplemented)
41  PHG4Detector* GetDetector(void) const override;
42  PHG4SteppingAction* GetSteppingAction(void) const override;
43 
44  private:
45  //Pointer to Geant4 implementation of detector
47 
48  //Stepping Action
50 
51  G4String material;
52  int active;
53 
55 };
56 
57 #endif