Main Page
Class Categories
Classes
Namespaces
File List
File Members
exper-sw
cosmosw
AugerSW
Offline
source
main
Modules
SdSimulation
G4TankSimulatorOG
G4TankSimulatorOG/G4TankSteppingAction.cc
Go to the documentation of this file.
1
#include "
G4TankSteppingAction.h
"
2
#include "
G4TankTrackingAction.h
"
3
4
#include <G4Step.hh>
5
6
#include <G4VProcess.hh>
7
#include <sstream>
8
9
using namespace
G4TankSimulatorOG;
10
using namespace
std;
11
12
int
G4TankSteppingAction::fgParticleId
= 0;
13
14
G4TankSteppingAction::G4TankSteppingAction
()
15
{
16
}
17
18
G4TankSteppingAction::~G4TankSteppingAction
()
19
{
20
}
21
22
void
G4TankSteppingAction::UserSteppingAction
(
const
G4Step *theStep) {
23
24
fgParticleId = theStep->GetTrack()->GetDefinition()->GetPDGEncoding();
25
26
if
(fgParticleId == 0) {
27
28
if
(theStep->GetTrack()->GetNextVolume() != 0) {
29
30
if
(theStep->GetTrack()->GetNextVolume()->GetName() ==
"top"
||
31
theStep->GetTrack()->GetNextVolume()->GetName() ==
"side"
||
32
theStep->GetTrack()->GetNextVolume()->GetName() ==
"bottom"
) {
33
34
G4TankTrackingAction::fNumBounces
++;
35
36
}
37
}
38
}
39
}
G4TankSimulatorOG::G4TankSteppingAction::G4TankSteppingAction
G4TankSteppingAction()
Definition:
G4TankSimulatorOG/G4TankSteppingAction.cc:14
G4TankSimulatorOG::G4TankSteppingAction::UserSteppingAction
void UserSteppingAction(const G4Step *)
Definition:
G4TankSimulatorOG/G4TankSteppingAction.cc:22
G4TankSimulatorOG::G4TankSteppingAction::fgParticleId
static int fgParticleId
Definition:
G4TankSimulatorOG/G4TankSteppingAction.h:30
G4TankSimulatorOG::G4TankTrackingAction::fNumBounces
static int fNumBounces
Definition:
G4TankSimulatorOG/G4TankTrackingAction.h:32
G4TankTrackingAction.h
G4TankSimulatorOG::G4TankSteppingAction::~G4TankSteppingAction
~G4TankSteppingAction()
Definition:
G4TankSimulatorOG/G4TankSteppingAction.cc:18
G4TankSteppingAction.h
, generated on Tue Sep 26 2023.