G4XTankEventAction.cc
Go to the documentation of this file.
1 #include "G4XTankEventAction.h"
3 #include <G4Event.hh>
4 #include <G4Timer.hh>
5 
6 using namespace G4XTankSimulatorAG;
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 G4XTankEventAction::EndOfEventAction(const G4Event* /*event*/)
30 {
31  fTimer->Stop();
32 
36 }
virtual void BeginOfEventAction(const G4Event *)
virtual void EndOfEventAction(const G4Event *)

, generated on Tue Sep 26 2023.