Loading...
Searching...
No Matches
Public Member Functions | List of all members
RE05SteppingAction Class Reference

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE05SteppingAction:
G4UserSteppingAction

Public Member Functions

 RE05SteppingAction ()
 
virtual ~RE05SteppingAction ()
 
virtual void UserSteppingAction (const G4Step *)
 

Detailed Description

Definition at line 119 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE05SteppingAction()

RE05SteppingAction::RE05SteppingAction ( )

Definition at line 43 of file RE05SteppingAction.cc.

◆ ~RE05SteppingAction()

RE05SteppingAction::~RE05SteppingAction ( )
virtual

Definition at line 49 of file RE05SteppingAction.cc.

50{}

Member Function Documentation

◆ UserSteppingAction()

void RE05SteppingAction::UserSteppingAction ( const G4Step theStep)
virtual

Definition at line 54 of file RE05SteppingAction.cc.

55{
56 G4Track * theTrack = theStep->GetTrack();
57
58 // check if it is alive
59 if(theTrack->GetTrackStatus()!=fAlive) { return; }
60
61 // check if it is primary
62 if(theTrack->GetParentID()!=0) { return; }
63
64 // check if it is NOT muon
65 G4ParticleDefinition * particleType = theTrack->GetDefinition();
66 if((particleType==G4MuonPlus::MuonPlusDefinition())
67 ||(particleType==G4MuonMinus::MuonMinusDefinition()))
68 { return; }
69
70 // check if it is entering to the calorimeter volume
71 G4StepPoint * thePrePoint = theStep->GetPreStepPoint();
72 G4VPhysicalVolume * thePrePV = thePrePoint->GetPhysicalVolume();
73 G4String thePrePVname = thePrePV->GetName();
74 if(thePrePVname.substr(0,4)=="calo") { return; }
75 G4StepPoint * thePostPoint = theStep->GetPostStepPoint();
76 G4VPhysicalVolume * thePostPV = thePostPoint->GetPhysicalVolume();
77 G4String thePostPVname = thePostPV->GetName();
78 if(thePostPVname.substr(0,4)!="calo") { return; }
79
80 // then suspend the track
81 theTrack->SetTrackStatus(fSuspend);
82}

The documentation for this class was generated from the following files:

Applications | User Support | Publications | Collaboration