Belle II Software
release-08-01-10
|
The Class for the stepping action. More...
#include <SteppingAction.h>
Public Member Functions | |
SteppingAction () | |
Constructor. | |
virtual | ~SteppingAction () |
Destructor. | |
void | setMaxNumberSteps (int maxSteps) |
Sets the maximum number of steps before a track is stopped and killed. More... | |
void | setStoreTrajectories (bool store) |
Sets the trajectory option to enable storing of the simulated particle trajectories. | |
void | setAbsorbersR (const std::vector< float > &vec) |
Sets the radii of absorbers for killing tracks across them. More... | |
virtual void | UserSteppingAction (const G4Step *step) |
The method will be called at each step during simulation. More... | |
Protected Attributes | |
int | m_maxNumberSteps |
The maximum number of steps before the track transportation is stopped and the track is killed. | |
bool | m_storeTrajectories = false |
if true, check if the track has attached trajectory info and append step information if necessary | |
std::vector< float > | m_absorbers |
The absorbers defined at given radii where tracks across them will be destroyed. | |
The Class for the stepping action.
This class is called for each step during the Geant4 transportation. It implements protection mechanisms to remove unreasonable tracks.
Definition at line 29 of file SteppingAction.h.
|
inline |
Sets the radii of absorbers for killing tracks across them.
This set is used in the PXD only simulation for PXD gain calibration.
vec | The c++ vector with the radii of absorbers in cm |
Definition at line 55 of file SteppingAction.h.
|
inline |
Sets the maximum number of steps before a track is stopped and killed.
maxSteps | The maximum number of steps. |
Definition at line 46 of file SteppingAction.h.
|
virtual |
The method will be called at each step during simulation.
step | The pointer of current step. |
Definition at line 38 of file SteppingAction.cc.