Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4MicromegasSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4MicromegasSteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MICROMEGAS_PHG4MICROMEGASSTEPPINGACTION_H
4 #define G4MICROMEGAS_PHG4MICROMEGASSTEPPINGACTION_H
5 
11 #include <g4main/PHG4Hit.h> // for PHG4Hit
13 
14 #include <memory>
15 #include <string> // for string
16 
18 
19 class G4Step;
20 class G4VPhysicalVolume;
21 class PHCompositeNode;
22 class PHG4HitContainer;
23 class PHParameters;
24 
26 {
27  public:
30 
32  bool UserSteppingAction(const G4Step*, bool) override;
33 
35  void SetInterfacePointers(PHCompositeNode*) override;
36 
37  void SetHitNodeName(const std::string& type, const std::string& name) override;
38 
39  private:
42 
43  const PHParameters* m_Params{nullptr};
44 
47 
50 
52  std::unique_ptr<PHG4Hit> m_hit;
53 
57 
58  int m_SaveTrackId{-1};
61  int m_ActiveFlag{0};
63  double m_EdepSum{0};
64  double m_EionSum{0};
65 
68 };
69 
70 #endif // MICROMEGASSTEPPINGACTION_H