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 
13 
15 {
16 }
17 
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 
35 
36  }
37  }
38  }
39 }

, generated on Tue Sep 26 2023.