EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ECAPToFSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4ECAPToFSteppingAction.h
1 #ifndef G4DETECTORS_PHG4ECAPToFSTEPPINGACTION_H
2 #define G4DETECTORS_PHG4ECAPToFSTEPPINGACTION_H
3 
5 
6 #include <string>
7 
8 class G4Step;
9 class G4VPhysicalVolume;
10 class PHCompositeNode;
13 class PHG4Hit;
14 class PHG4HitContainer;
15 class PHG4Shower;
16 class PHParameters;
17 
19 {
20  public:
22  // PHG4ECAPToFSteppingAction(PHG4ECAPToFSubsystem *subsys, PHG4ECAPToFDetector *detector, const PHParameters *parameters);
24 
26  ~PHG4ECAPToFSteppingAction() override;
27 
29  bool UserSteppingAction(const G4Step *, bool) override;
30 
32  void SetInterfacePointers(PHCompositeNode *) override;
33 
34  // needed for hit position crosschecks, if this volume is inside
35  // another volume the absolut hit coordinates in our G4Hits and
36  // the local coordinates differ, so checking against our place in z
37  // goes wrong
38  //bool hasMotherSubsystem() const;
39 
41  // this is the only detector using this - there is no need to add
42  // this to our parameters
43  void SaveAllHits(bool i = true) { m_SaveAllHitsFlag = i; }
44  //void HitNodeName(const std::string &name) {m_HitNodeName = name;}
45 
46  private:
48  //PHG4ECAPToFSubsystem *m_Subsystem;
52 
55  //PHG4HitContainer *m_AbsorberHits;
60 
61  G4VPhysicalVolume *m_SaveVolPre;
62  G4VPhysicalVolume *m_SaveVolPost;
63  bool m_SaveAllHitsFlag = false;
70  double m_Zmin;
71  double m_Zmax;
72  //double m_EdepSum;
73  //std::string m_HitNodeName;
74 };
75 
76 #endif