6 #include <G4VProcess.hh>
9 using namespace G4TankSimulatorASCII;
25 fgParticleId = theStep->GetTrack()->GetDefinition()->GetPDGEncoding();
27 if (fgParticleId == 0) {
29 if (theStep->GetTrack()->GetNextVolume() != 0) {
31 if (theStep->GetTrack()->GetNextVolume()->GetName() ==
"top" ||
32 theStep->GetTrack()->GetNextVolume()->GetName() ==
"side" ||
33 theStep->GetTrack()->GetNextVolume()->GetName() ==
"bottom") {
41 if ( theStep->GetTrack()->GetTrackID() ==1 && theStep->GetTrack()->GetMaterial()->GetName()==
"Water" )
45 const G4VProcess* theProcess = theStep->GetPostStepPoint()->GetProcessDefinedStep();
46 if( theProcess!=0 && theStep->GetTrack()->GetTrackID() ==1 )
47 if ( theProcess->GetProcessName() ==
"Decay" )
void UserSteppingAction(const G4Step *)
static double WCD_Track_p