BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Action to decide whether or not to store trajectory information. More...
#include <BDSTrackingAction.hh>
Public Member Functions | |
BDSTrackingAction (G4bool batchMode, G4bool storeTrajectoryIn, const BDS::TrajectoryOptions &storeTrajectoryOptionsIn, BDSEventAction *eventActionIn, G4int verboseSteppingEventStartIn, G4int verboseSteppingEventStopIn, G4bool verboseSteppingPrimaryOnlyIn, G4int verboseSteppingLevelIn) | |
virtual void | PreUserTrackingAction (const G4Track *track) |
Used to decide whether or not to store trajectories. | |
virtual void | PostUserTrackingAction (const G4Track *track) |
Detect whether track is a primary and if so whether it ended in a collimator. | |
Private Member Functions | |
BDSTrackingAction ()=delete | |
No default constructor required. | |
Private Attributes | |
const G4bool | interactive |
const G4bool | storeTrajectory |
const BDS::TrajectoryOptions | storeTrajectoryOptions |
Cache of flag from global constants to control storing all trajectories. | |
BDSEventAction * | eventAction |
Cache of trajectory options. | |
G4int | verboseSteppingEventStart |
G4int | verboseSteppingEventStop |
G4bool | verboseSteppingPrimaryOnly |
G4int | verboseSteppingLevel |
Action to decide whether or not to store trajectory information.
Definition at line 34 of file BDSTrackingAction.hh.
BDSTrackingAction::BDSTrackingAction | ( | G4bool | batchMode, |
G4bool | storeTrajectoryIn, | ||
const BDS::TrajectoryOptions & | storeTrajectoryOptionsIn, | ||
BDSEventAction * | eventActionIn, | ||
G4int | verboseSteppingEventStartIn, | ||
G4int | verboseSteppingEventStopIn, | ||
G4bool | verboseSteppingPrimaryOnlyIn, | ||
G4int | verboseSteppingLevelIn | ||
) |
Definition at line 38 of file BDSTrackingAction.cc.
|
inlinevirtual |
Definition at line 46 of file BDSTrackingAction.hh.
|
virtual |
Detect whether track is a primary and if so whether it ended in a collimator.
Definition at line 99 of file BDSTrackingAction.cc.
References eventAction, BDSEventAction::SetPrimaryAbsorbedInCollimator(), and BDSAcceleratorModel::VolumeSet().
|
virtual |
Used to decide whether or not to store trajectories.
Definition at line 56 of file BDSTrackingAction.cc.
References BDSIntegratorMag::currentTrackIsPrimary, eventAction, BDSEventAction::IncrementNTracks(), interactive, BDSEventAction::RegisterPrimaryTrajectory(), storeTrajectoryOptions, and BDS::VerboseThisEvent().
|
private |
Cache of trajectory options.
Cache of event action to communicate whether a primary stopped in a collimator or not.
Definition at line 66 of file BDSTrackingAction.hh.
Referenced by PostUserTrackingAction(), and PreUserTrackingAction().
|
private |
Whether we're using the visualiser - in which case always store trajectories for visualisation.
Definition at line 60 of file BDSTrackingAction.hh.
Referenced by PreUserTrackingAction().
|
private |
Definition at line 62 of file BDSTrackingAction.hh.
|
private |
Cache of flag from global constants to control storing all trajectories.
Definition at line 63 of file BDSTrackingAction.hh.
Referenced by PreUserTrackingAction().
|
private |
Definition at line 68 of file BDSTrackingAction.hh.
|
private |
Definition at line 69 of file BDSTrackingAction.hh.
|
private |
Definition at line 71 of file BDSTrackingAction.hh.
|
private |
Definition at line 70 of file BDSTrackingAction.hh.