Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4OuterHcalSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4OuterHcalSteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4OUTERHCALSTEPPINGACTION_H
4 #define G4DETECTORS_PHG4OUTERHCALSTEPPINGACTION_H
5 
7 
8 class G4Step;
10 class PHCompositeNode;
11 class TowerInfoContainer;
13 class PHParameters;
14 class PHG4Hit;
15 class PHG4HitContainer;
16 class PHG4Shower;
17 class TH2;
18 
20 {
21  public:
24 
27 
29  bool UserSteppingAction(const G4Step *, bool) override;
30 
31  int InitWithNode(PHCompositeNode *topNode) override;
32 
34  void SetInterfacePointers(PHCompositeNode *) override;
35 
36  void FieldChecker(const G4Step *);
37  void EnableFieldChecker(const int i = 1) { m_EnableFieldCheckerFlag = i; }
38  void CreateNodeTree(PHCompositeNode *topNode);
39 
40  private:
41  bool NoHitSteppingAction(const G4Step *aStep);
44 
46  TH2 *m_MapCorrHist = nullptr;
47 
51  PHG4Hit *m_Hit = nullptr;
52  const PHParameters *m_Params = nullptr;
57  int m_SaveTrackId = -1;
61 
62  // since getting parameters is a map search we do not want to
63  // do this in every step, the parameters used are cached
64  // in the following variables
65  int m_IsActiveFlag = -1;
67  int m_NScintiPlates = -1;
69  bool m_doG4Hit = true;
70  double m_tmin = -20.;
71  double m_tmax = 60.;
72  double m_dt = 100.;
74 };
75 
76 #endif // G4DETECTORS_PHG4OUTERHCALSTEPPINGACTION_H