G4TankSimulatorOG/G4TankEventAction.cc
Go to the documentation of this file.
1 #include "G4TankEventAction.h"
2 #include "G4TankTrackingAction.h"
3 #include <G4Event.hh>
4 #include <G4Timer.hh>
5 
6 using namespace G4TankSimulatorOG;
7 
9 
11  fTimer(new G4Timer)
12 {
13 }
14 
16 {
17  delete fTimer;
18 }
19 
20 void
22 {
23  fgPrimaryId = Evt->GetPrimaryVertex()->GetPrimary()->GetPDGcode();
24  fTimer->Start();
25 }
26 
27 
28 void
29 G4TankEventAction::EndOfEventAction(const G4Event* /*event*/)
30 {
31  fTimer->Stop();
32 
36 }

, generated on Tue Sep 26 2023.