Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4InnerHcalSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4InnerHcalSteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4INNERHCALSTEPPINGACTION_H
4 #define G4DETECTORS_PHG4INNERHCALSTEPPINGACTION_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 CreateNodeTree(PHCompositeNode *topNode);
37 
38  private:
39  bool NoHitSteppingAction(const G4Step *aStep);
42 
44  TH2 *m_MapCorrHist = nullptr;
45 
49  PHG4Hit *m_Hit = nullptr;
50  const PHParameters *m_Params = nullptr;
55  int m_SaveTrackId = -1;
58  // since getting parameters is a map search we do not want to
59  // do this in every step, the parameters used are cached
60  // in the following variables
61  int m_IsActive = -1;
62  int m_IsBlackHole = -1;
64  bool m_doG4Hit = true;
65  double m_tmin = -20.;
66  double m_tmax = 60.;
67  double m_dt = 100.;
69 };
70 
71 #endif // G4DETECTORS_PHG4INNERHCALSTEPPINGACTION_H