Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4SpacalSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4SpacalSteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
11 #ifndef G4DETECTORS_PHG4SPACALSTEPPINGACTION_H
12 #define G4DETECTORS_PHG4SPACALSTEPPINGACTION_H
13 
14 #include "LightCollectionModel.h"
15 
17 
18 class G4Step;
20 class PHCompositeNode;
25 class PHG4SpacalDetector;
26 class PHG4Hit;
27 class PHG4HitContainer;
28 class PHG4Shower;
29 class PHParameters;
30 class TowerInfoContainer;
31 
33 {
34  public:
37 
39  ~PHG4SpacalSteppingAction() override;
40 
42  bool UserSteppingAction(const G4Step *, bool) override;
43 
44  int InitWithNode(PHCompositeNode *topNode) override;
45 
47  void SetInterfacePointers(PHCompositeNode *) override;
48 
49  double get_zmin() const;
50 
51  double get_zmax() const;
52 
53  void SetHitNodeName(const std::string &type, const std::string &name) override;
54 
55  int SetUpGeomNode(PHCompositeNode *topNode);
56 
58 
59  private:
60  bool NoHitSteppingAction(const G4Step *aStep);
63 
67  PHG4Hit *m_Hit = nullptr;
70  const PHParameters *m_Params = nullptr;
71  int m_SaveTrackid = -1;
73  bool m_doG4Hit = true;
74  bool m_geomsetup = false;
75  double m_tmin = -20.;
76  double m_tmax = 60.;
77  double m_dt = 100.;
78 
84 
86 
88 
90 
92 
94 
96 };
97 
98 #endif // PHG4VHcalSteppingAction_h