G4StationEventAction.h
Go to the documentation of this file.
1 #ifndef _G4StationSimulatorOG_G4StationEventAction_h_
2 #define _G4StationSimulatorOG_G4StationEventAction_h_
3 
4 #include "G4StationSimulator.h"
5 
6 #include <det/Detector.h>
7 #include <sdet/SDetector.h>
8 #include <mdet/MDetector.h>
9 
10 #include <G4UserEventAction.hh>
11 
12 
13 class G4Event;
14 class G4Timer;
15 
16 namespace G4StationSimulatorOG {
17 
27  class G4StationEventAction : public G4UserEventAction {
28 
29  public:
30  G4StationEventAction(const bool umdEnabled);
31  virtual ~G4StationEventAction();
32 
33  virtual void BeginOfEventAction(const G4Event* const event) override;
34  virtual void EndOfEventAction(const G4Event* const event) override;
35 
36  void ProcessUMD(const G4Event* const event);
37 
38  private:
40  G4Timer* fTimer = nullptr;
42  bool fIsUMDEnabled = false;
43 
44  };
45 
46 }
47 
48 
49 #endif
virtual void EndOfEventAction(const G4Event *const event) override
virtual void BeginOfEventAction(const G4Event *const event) override
void ProcessUMD(const G4Event *const event)
class that handles Geant4 SD Station simulation adopted from G4TankSimulator

, generated on Tue Sep 26 2023.