Main Page
Class Categories
Classes
Namespaces
File List
File Members
exper-sw
cosmosw
AugerSW
Offline
source
main
Modules
SdSimulation
G4TankSimulatorOG
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
8
int
G4TankEventAction::fgPrimaryId
= 0;
9
10
G4TankEventAction::G4TankEventAction
() :
11
fTimer(new G4Timer)
12
{
13
}
14
15
G4TankEventAction::~G4TankEventAction
()
16
{
17
delete
fTimer
;
18
}
19
20
void
21
G4TankEventAction::BeginOfEventAction
(
const
G4Event* Evt)
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
33
G4TankTrackingAction::fNumC
= 0;
34
G4TankTrackingAction::fNumCDelta
= 0;
35
G4TankTrackingAction::fNumBounces
= 0;
36
}
G4TankSimulatorOG::G4TankTrackingAction::fNumC
static int fNumC
Definition:
G4TankSimulatorOG/G4TankTrackingAction.h:32
G4TankSimulatorOG::G4TankEventAction::fTimer
G4Timer * fTimer
Definition:
G4TankSimulatorOG/G4TankEventAction.h:39
G4TankSimulatorOG::G4TankEventAction::G4TankEventAction
G4TankEventAction()
Definition:
G4TankSimulatorOG/G4TankEventAction.cc:10
G4TankSimulatorOG::G4TankEventAction::EndOfEventAction
virtual void EndOfEventAction(const G4Event *)
Definition:
G4TankSimulatorOG/G4TankEventAction.cc:29
G4TankSimulatorOG::G4TankTrackingAction::fNumCDelta
static int fNumCDelta
Definition:
G4TankSimulatorOG/G4TankTrackingAction.h:32
G4TankSimulatorOG::G4TankEventAction::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *)
Definition:
G4TankSimulatorOG/G4TankEventAction.cc:21
G4TankSimulatorOG::G4TankTrackingAction::fNumBounces
static int fNumBounces
Definition:
G4TankSimulatorOG/G4TankTrackingAction.h:32
G4TankSimulatorOG::G4TankEventAction::~G4TankEventAction
virtual ~G4TankEventAction()
Definition:
G4TankSimulatorOG/G4TankEventAction.cc:15
G4TankTrackingAction.h
G4TankEventAction.h
G4TankSimulatorOG::G4TankEventAction::fgPrimaryId
static int fgPrimaryId
Definition:
G4TankSimulatorOG/G4TankEventAction.h:32
, generated on Tue Sep 26 2023.