9 #ifndef STEPPINGACTION_H_
10 #define STEPPINGACTION_H_
13 #include <G4UserSteppingAction.hh>
23 namespace Simulation {
The Class for the stepping action.
std::vector< float > m_absorbers
The absorbers defined at given radii where tracks across them will be destroyed.
void setAbsorbersR(const std::vector< float > &vec)
Sets the radii of absorbers for killing tracks across them.
void setStoreTrajectories(bool store)
Sets the trajectory option to enable storing of the simulated particle trajectories.
virtual void UserSteppingAction(const G4Step *step)
The method will be called at each step during simulation.
virtual ~SteppingAction()
Destructor.
int m_maxNumberSteps
The maximum number of steps before the track transportation is stopped and the track is killed.
SteppingAction()
Constructor.
bool m_storeTrajectories
if true, check if the track has attached trajectory info and append step information if necessary
void setMaxNumberSteps(int maxSteps)
Sets the maximum number of steps before a track is stopped and killed.
Abstract base class for different kinds of events.