ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EICG4B0ECALSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EICG4B0ECALSteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef EICG4B0ECALSTEPPINGACTION_H
4 #define EICG4B0ECALSTEPPINGACTION_H
5 
7 #include <string>
8 
9 #include <Geant4/G4StepPoint.hh>
10 #include <Geant4/G4TouchableHandle.hh>
11 
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 ~EICG4B0ECALSteppingAction() 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 
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  std::string m_HitNodeName;
76 };
77 
78 #endif // EICG4B0ECALSTEPPINGACTION_H