|
LDMX Software
|
Implements the Geant4 user stepping action. More...
#include <SteppingAction.h>
Public Member Functions | |
| ~SteppingAction () | |
| Destructor. | |
| void | UserSteppingAction (const G4Step *step) override |
| Callback used to process a step. | |
| void | registerAction (std::shared_ptr< UserAction > steppingAction) |
| Register a user action of type SteppingAction with this class. | |
Private Attributes | |
| std::vector< std::shared_ptr< UserAction > > | stepping_actions_ |
| Collection of user stepping actions. | |
Implements the Geant4 user stepping action.
Definition at line 31 of file SteppingAction.h.
|
inline |
|
inline |
Register a user action of type SteppingAction with this class.
| action | User action of type SteppingAction |
Definition at line 48 of file SteppingAction.h.
References stepping_actions_.
|
override |
Callback used to process a step.
| step | The Geant4 step. |
Reset PN/EN flags and updating running energy totals
The process of looping through the secondaries of every step may slow down our simulation. I (Tom E) do not know how much it would slow us down, but we could implement a procedure to make this configurable if we wish.
Definition at line 5 of file SteppingAction.cxx.
References stepping_actions_.
|
private |
Collection of user stepping actions.
Definition at line 54 of file SteppingAction.h.
Referenced by registerAction(), and UserSteppingAction().