G4StationTrackingAction.h
Go to the documentation of this file.
1 #ifndef _G4StationSimulatorOG_G4StationTrackingAction_h_
2 #define _G4StationSimulatorOG_G4StationTrackingAction_h_
3 
4 #include <G4UserTrackingAction.hh>
5 #include <G4ios.hh>
6 
8 #include "G4SoilAction.h"
9 
10 
11 class G4Track;
12 
13 namespace G4StationSimulatorOG {
14 
24  class G4StationTrackingAction : public G4UserTrackingAction {
25 
26  public:
27  G4StationTrackingAction(const bool enabled);
29 
30  virtual void PreUserTrackingAction(const G4Track* const track) override;
31  virtual void PostUserTrackingAction(const G4Track* const track) override;
32 
33  bool GetFirstStepInVolume() const { return firstStepInVolume; }
34  void SetFirstStepInVolume(const bool b) { firstStepInVolume = b; }
35 
36  static int fNumC;
37  static int fNumCDelta;
38  static int fNumBounces;
39 
40  private:
41  bool fIsUMDEnabled = false;
42  bool firstStepInVolume = true;
43 
44  friend class G4UMDScintStripAction;
45  friend class G4SoilAction;
46 
47  };
48 
49 }
50 
51 
52 #endif
virtual void PreUserTrackingAction(const G4Track *const track) override
virtual void PostUserTrackingAction(const G4Track *const track) override

, generated on Tue Sep 26 2023.