Main Page
Class Categories
Classes
Namespaces
File List
File Members
exper-sw
cosmosw
AugerSW
Offline
source
main
Modules
MdSimulation
Deprecated
G4XTankGroundSimulationAG
G4XTankEventAction.cc
Go to the documentation of this file.
1
#include "
G4XTankEventAction.h
"
2
#include "
G4XTankTrackingAction.h
"
3
#include <G4Event.hh>
4
#include <G4Timer.hh>
5
6
using namespace
G4XTankSimulatorAG;
7
8
int
G4XTankEventAction::fgPrimaryId
= 0;
9
10
G4XTankEventAction::G4XTankEventAction
() :
11
fTimer(new G4Timer)
12
{
13
}
14
15
G4XTankEventAction::~G4XTankEventAction
()
16
{
17
delete
fTimer
;
18
}
19
20
void
21
G4XTankEventAction::BeginOfEventAction
(
const
G4Event* Evt)
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
33
G4XTankTrackingAction::fNumC
= 0;
34
G4XTankTrackingAction::fNumCDelta
= 0;
35
G4XTankTrackingAction::fNumBounces
= 0;
36
}
G4XTankSimulatorAG::G4XTankEventAction::G4XTankEventAction
G4XTankEventAction()
Definition:
G4XTankEventAction.cc:10
G4XTankSimulatorAG::G4XTankTrackingAction::fNumBounces
static int fNumBounces
Definition:
G4XTankTrackingAction.h:32
G4XTankSimulatorAG::G4XTankTrackingAction::fNumCDelta
static int fNumCDelta
Definition:
G4XTankTrackingAction.h:32
G4XTankSimulatorAG::G4XTankEventAction::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *)
Definition:
G4XTankEventAction.cc:21
G4XTankSimulatorAG::G4XTankEventAction::fTimer
G4Timer * fTimer
Definition:
G4XTankEventAction.h:39
G4XTankTrackingAction.h
G4XTankEventAction.h
G4XTankSimulatorAG::G4XTankEventAction::EndOfEventAction
virtual void EndOfEventAction(const G4Event *)
Definition:
G4XTankEventAction.cc:29
G4XTankSimulatorAG::G4XTankEventAction::fgPrimaryId
static int fgPrimaryId
Definition:
G4XTankEventAction.h:32
G4XTankSimulatorAG::G4XTankTrackingAction::fNumC
static int fNumC
Definition:
G4XTankTrackingAction.h:32
G4XTankSimulatorAG::G4XTankEventAction::~G4XTankEventAction
virtual ~G4XTankEventAction()
Definition:
G4XTankEventAction.cc:15
, generated on Tue Sep 26 2023.