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