#include <Geant4eSteppingAction.h>
Public Member Functions | |
Geant4eSteppingAction () | |
void | reset () |
double | trackLength () const |
virtual void | UserSteppingAction (const G4Step *step) |
virtual | ~Geant4eSteppingAction () |
Protected Attributes | |
double | theTrackLength |
A G4 User stepping action used to calculate the total track. The method G4UserSteppingAction::UserSteppingAction(const G4Step*) should be automatically called by G4eManager at each step.
Definition at line 11 of file Geant4eSteppingAction.h.
Geant4eSteppingAction::Geant4eSteppingAction | ( | ) | [inline] |
Definition at line 13 of file Geant4eSteppingAction.h.
:theTrackLength(0) {}
virtual Geant4eSteppingAction::~Geant4eSteppingAction | ( | ) | [inline, virtual] |
Definition at line 14 of file Geant4eSteppingAction.h.
{}
void Geant4eSteppingAction::reset | ( | void | ) | [inline] |
Resets to 0 the counter on the track length. Should be called at the beginning of any extrapolation.
Definition at line 24 of file Geant4eSteppingAction.h.
References theTrackLength.
Referenced by Geant4ePropagator::propagateWithPath().
{theTrackLength = 0;}
double Geant4eSteppingAction::trackLength | ( | ) | const [inline] |
Retrieve the length that the track has accumulated since the last call to reset()
Definition at line 19 of file Geant4eSteppingAction.h.
References theTrackLength.
Referenced by Geant4ePropagator::propagateWithPath().
{return theTrackLength;}
void Geant4eSteppingAction::UserSteppingAction | ( | const G4Step * | step | ) | [virtual] |
This method is automatically called by G4eManager at each step. The step length is then added to the stored value of the track length.
Definition at line 4 of file Geant4eSteppingAction.cc.
References theTrackLength.
{ theTrackLength += step->GetStepLength(); }
double Geant4eSteppingAction::theTrackLength [protected] |
Definition at line 32 of file Geant4eSteppingAction.h.
Referenced by reset(), trackLength(), and UserSteppingAction().