EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BeamLineMagnetSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BeamLineMagnetSteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_BEAMLINEMAGNETSTEPPINGACTION_H
4 #define G4DETECTORS_BEAMLINEMAGNETSTEPPINGACTION_H
5 
7 
8 #include <string> // for string
9 
10 class G4Step;
11 class G4VPhysicalVolume;
12 class PHCompositeNode;
14 class PHG4Hit;
15 class PHG4HitContainer;
16 class PHParameters;
17 
19 {
20  public:
23 
26 
28  bool UserSteppingAction(const G4Step*, bool) override;
29 
31  void SetInterfacePointers(PHCompositeNode*) override;
32 
33  void SetHitNodeName(const std::string &type, const std::string &name) override;
34 
35  private:
38  const PHParameters* m_Params = nullptr;
42  PHG4Hit* m_Hit = nullptr;
44 
45  G4VPhysicalVolume* m_SaveVolPre = nullptr;
46  G4VPhysicalVolume* m_SaveVolPost = nullptr;
47  int m_SaveTrackId = -1;
50  double m_EdepSum = 0.;
51  int m_ActiveFlag = 0;
53  int m_BlackHoleFlag = 0;
54 
55  std::string m_HitNodeName;
56  std::string m_AbsorberNodeName;
57 };
58 
59 #endif // G4DETECTORS_BEAMLINEMAGNETSTEPPINGACTION_H