EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4TpcSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4TpcSteppingAction.h
1 #ifndef G4TPC_PHG4VTPCSTEPPINGACTION_H
2 #define G4TPC_PHG4VTPCSTEPPINGACTION_H
3 
5 
6 class G4Step;
7 class G4VPhysicalVolume;
8 class PHCompositeNode;
9 class PHG4TpcDetector;
10 class PHG4Hit;
11 class PHG4HitContainer;
12 class PHG4Shower;
13 class PHParameters;
14 
16 {
17  public:
20 
22  ~PHG4TpcSteppingAction() override;
23 
25  bool UserSteppingAction(const G4Step *, bool) override;
26 
28  void SetInterfacePointers(PHCompositeNode *) override;
29 
30  void SetHitNodeName(const std::string& type, const std::string& name) override;
31 
32  private:
35 
39  PHG4Hit *m_Hit = nullptr;
40  const PHParameters *m_Params = nullptr;
42  PHG4Shower *m_Shower = nullptr;
43  G4VPhysicalVolume *m_SaveVolPre = nullptr;
44  G4VPhysicalVolume *m_SaveVolPost = nullptr;
45  int m_SaveTrackId = -1;
48  // since getting parameters is a map search we do not want to
49  // do this in every step, the parameters used are cached
50  // in the following variables
53 
54  std::string m_HitNodeName;
55  std::string m_AbsorberNodeName;
56 };
57 
58 #endif // G4TPC_PHG4TPCSTEPPINGACTION_H