ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EICG4RPSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EICG4RPSteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef EICG4RPSTEPPINGACTION_H
4 #define EICG4RPSTEPPINGACTION_H
5 
7 #include <string>
8 
9 class EICG4RPDetector;
10 class EICG4RPSubsystem;
11 
12 class G4Step;
13 class G4VPhysicalVolume;
14 class PHCompositeNode;
15 class PHG4Hit;
16 class PHG4Shower;
17 class PHG4HitContainer;
18 class PHParameters;
19 
21 {
22  public:
25 
27  virtual ~EICG4RPSteppingAction() override;
28 
30  virtual bool UserSteppingAction(const G4Step*, bool) override;
31 
33  virtual void SetInterfacePointers(PHCompositeNode*) override;
34 
35  virtual void SaveLightYield(const int i = 1) { m_SaveLightYieldFlag = i; }
36 
37  virtual bool hasMotherSubsystem() const;
38 
39  virtual void SaveAllHits(bool i = true) { m_SaveAllHitsFlag = i; }
40 
41  virtual void HitNodeName(const std::string& name) { m_HitNodeName = name; }
42  virtual void HitNodeNameVirt(const std::string& name) { m_HitNodeNameVirt = name; }
43 
44  private:
48 
57 
58  bool m_SaveAllHitsFlag = false;
66  double m_Zmin;
67  double m_Zmax;
68  double m_Tmin;
69  double m_Tmax;
70  double m_EdepSum;
71  double m_EabsSum;
72  double m_EionSum;
73  std::string m_HitNodeName;
74  std::string m_HitNodeNameVirt;
75 };
76 
77 #endif // EICG4RPSTEPPINGACTION_H