G4StationSteppingAction.h
Go to the documentation of this file.
1 #ifndef _G4StationSimulatorOG_G4StationSteppingAction_h_
2 #define _G4StationSimulatorOG_G4StationSteppingAction_h_
3 
4 #include <G4UserSteppingAction.hh>
5 #include <G4Track.hh>
6 
7 #include <utl/Particle.h>
8 
9 
10 class G4Step;
11 
12 namespace G4StationSimulatorOG {
13 
14  class G4StationSimulator;
15  class G4StationConstruction;
16 
17 
28  class G4StationSteppingAction : public G4UserSteppingAction {
29 
30  public:
31  G4StationSteppingAction(const bool isMARTAEnabled) : fMARTAEnabled(isMARTAEnabled) { }
33 
34  void UserSteppingAction(const G4Step* const step) override;
35 
36  static int GetCurrentParticleId() { return fgParticleId; }
37 
38  typedef std::vector<int> RPCTrackIDList;
39  typedef std::vector<utl::Particle> RPCParticleList;
40 
41  typedef std::map<int, RPCTrackIDList> RPCTrackIDListMap;
42  typedef std::map<int, RPCParticleList> RPCParticleListMap;
43 
46 
47  private:
48  static int fgParticleId;
49 
50  bool fMARTAEnabled = false;
51 
52  };
53 
54 }
55 
56 
57 #endif
void UserSteppingAction(const G4Step *const step) override
std::map< int, RPCParticleList > RPCParticleListMap

, generated on Tue Sep 26 2023.