ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EICG4B0SteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EICG4B0SteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef EICG4B0STEPPINGACTION_H
4 #define EICG4B0STEPPINGACTION_H
5 
7 #include <string>
8 
9 #include <Geant4/G4StepPoint.hh>
10 #include <Geant4/G4TouchableHandle.hh>
11 
12 class EICG4B0Detector;
13 class EICG4B0Subsystem;
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 ~EICG4B0SteppingAction() 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  void SetTowerSize(double twrsze)
47  {
48  _tower_size = twrsze;
49  }
50  void SetReadoutSize(double rdosze)
51  {
52  _readout_size = rdosze;
53  }
54  void SetDetectorSize(double detsze)
55  {
56  _detector_size = detsze;
57  }
58 
59  private:
60  int FindTowerIndexFromPosition(G4StepPoint* prePoint, int& j, int& k);
61 
65 
69  // PHG4HitContainer* m_AbsorberHitContainer=nullptr;
71  // PHG4HitContainer* m_SaveHitContainer;
75 
76  bool m_SaveAllHitsFlag = false;
77  // int m_SaveLightYieldFlag;
81  int m_ActiveFlag = 0;
82  int m_BlackHoleFlag = 0;
84  double m_Zmin;
85  double m_Zmax;
86  double m_Tmin;
87  double m_Tmax;
88  double m_EdepSum;
89  double m_EabsSum;
91  double _tower_size;
92  double _readout_size;
94  std::string m_HitNodeName;
95 };
96 
97 #endif // EICG4B0STEPPINGACTION_H