EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EICG4BwdSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EICG4BwdSteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef EICG4BwdSTEPPINGACTION_H
4 #define EICG4BwdSTEPPINGACTION_H
5 
7 #include <string>
8 
9 #include <Geant4/G4TouchableHandle.hh>
10 #include <Geant4/G4StepPoint.hh>
11 
12 class EICG4BwdDetector;
13 class EICG4BwdSubsystem;
14 
15 class G4Step;
16 class G4VPhysicalVolume;
17 class PHCompositeNode;
18 class PHG4Hit;
19 class PHG4Shower;
20 class PHG4HitContainer;
21 class PHParameters;
22 
24 {
25  public:
28 
30  virtual ~EICG4BwdSteppingAction() override;
31 
33  virtual bool UserSteppingAction(const G4Step*, bool) override;
34 
36  virtual void SetInterfacePointers(PHCompositeNode*) override;
37 
38  virtual void SaveLightYield(const int i = 1) { m_SaveLightYieldFlag = i;}
39 
40  virtual bool hasMotherSubsystem() const;
41 
42  virtual void SaveAllHits(bool i = true){ m_SaveAllHitsFlag = i;}
43 
44  virtual void HitNodeName(const std::string &name) {m_HitNodeName=name;}
45 
46  private:
47  int FindTowerIndexFromPosition(G4StepPoint* prePoint, int& j, int& k);
48 
52 
58  G4VPhysicalVolume* m_SaveVolPre;
59  G4VPhysicalVolume* m_SaveVolPost;
60 
61  bool m_SaveAllHitsFlag = false;
66  int m_ActiveFlag = 0;
67  int m_BlackHoleFlag = 0;
69  double m_Zmin;
70  double m_Zmax;
71  double m_Tmin;
72  double m_Tmax;
73  double m_EdepSum;
74  double m_EabsSum;
75  double m_EionSum;
76  std::string m_HitNodeName;
77 };
78 
79 #endif // EICG4BwdSTEPPINGACTION_H