9#ifndef STEPPINGACTION_H_
10#define STEPPINGACTION_H_
13#include <G4UserSteppingAction.hh>
25 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.
bool m_writeSimSteps
Flag for writing out the simulation steps.
void setStoreTrajectories(bool store)
Sets the trajectory option to enable storing of the simulated particle trajectories.
void writeVREventStep(const G4Step *, const G4Track *)
Method to write (almost) each G4Step to the VR event file.
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.