Belle II Software development
|
It is the main interface for the user to define the setup and start the propagation. More...
#include <ExtManager.h>
Public Member Functions | |
~ExtManager () | |
destructor | |
void | EventTermination (G4ErrorMode) |
Terminate an event and set state to G4ErrorState_Init. | |
void | RunTermination () |
Terminate a run and set state to G4ErrorState_Init. | |
void | Initialize (const char[], const std::string &, double, double, bool, int, const std::vector< std::string > &) |
Initialize Geant4 and Geant4e. | |
void | InitTrackPropagation (G4ErrorMode) |
Initialize for propagation of a track and set state to G4ErrorState_Propagating. | |
G4int | PropagateOneStep (G4ErrorTrajState *currentTS, G4ErrorMode mode=G4ErrorMode_PropForwards) |
Propagate a track by one step. | |
G4ErrorPropagator * | GetPropagator () const |
Get the propagator. | |
Static Public Member Functions | |
static ExtManager * | GetManager () |
Get pointer to the instance of this singleton class (create if needed) | |
Private Member Functions | |
ExtManager () | |
constructor is hidden: user calls ExtManager::GetManager() instead | |
ExtManager (ExtManager &)=delete | |
copy constructor is undefined for singleton; user calls ExtManager::GetManager() instead | |
ExtManager & | operator= (ExtManager &)=delete |
Assignment operator is undefined for singleton; user calls ExtManager::GetManager() instead. | |
Private Attributes | |
G4ApplicationState | m_G4State |
Initial state of the G4RunManager (=PreInitif FullSimModule not present) | |
G4ErrorPropagator * | m_Propagator |
Stores pointer to the propagator. | |
G4RunManager * | m_G4RunMgr |
Pointer to the simulation's G4RunManager (if any) | |
G4UserTrackingAction * | m_TrackingAction |
Pointer to the simulation's TrackingAction (if any) | |
G4UserSteppingAction * | m_SteppingAction |
Pointer to the simulation's SteppingAction (if any) | |
G4VExceptionHandler * | m_StepExceptionHandler |
Pointer to the G4VExceptionHandler used in PropagateOneStep() | |
G4MagneticField * | m_MagneticField |
Pointer to the (un)cached magnetic field. | |
G4MagneticField * | m_UncachedField |
Pointer to the uncached magnetic field (might be superseded by its cached version) | |
G4Mag_UsualEqRhs * | m_MagFldEquation |
Pointer to the equation of motion in the magnetic field (if not the default) | |
G4MagIntegratorStepper * | m_Stepper |
Pointer to the equation-of-motion stepper (if not the default) | |
G4ChordFinder * | m_ChordFinder |
Pointer to the equation-of-motion chord finder (if not the default) | |
G4MagIntegratorStepper * | m_StdStepper |
Pointer to the standard equation-of-motion stepper. | |
G4EquationOfMotion * | m_ForwardEquationOfMotion |
Pointer to the forward-propagation equation of motion. | |
G4EquationOfMotion * | m_BackwardEquationOfMotion |
Pointer to the equation of motion that accommodates back-propagation. | |
G4VisManager * | m_VisManager |
Pointer to the visualization manager (if used) | |
Static Private Attributes | |
static ExtManager * | m_Manager = nullptr |
Stores pointer to the singleton class. | |
It is the main interface for the user to define the setup and start the propagation.
Initializes GEANT4 for the propagation.
Definition at line 50 of file ExtManager.h.
~ExtManager | ( | ) |
destructor
Definition at line 100 of file ExtManager.cc.
|
private |
constructor is hidden: user calls ExtManager::GetManager() instead
Definition at line 78 of file ExtManager.cc.
void EventTermination | ( | G4ErrorMode | mode | ) |
Terminate an event and set state to G4ErrorState_Init.
Definition at line 136 of file ExtManager.cc.
|
static |
Get pointer to the instance of this singleton class (create if needed)
Definition at line 72 of file ExtManager.cc.
|
inline |
void Initialize | ( | const char | caller[], |
const std::string & | magneticFieldName, | ||
double | magneticCacheDistance, | ||
double | deltaChordInMagneticField, | ||
bool | enableVisualization, | ||
int | trackingVerbosity, | ||
const std::vector< std::string > & | uiCommands | ||
) |
Initialize Geant4 and Geant4e.
Definition at line 176 of file ExtManager.cc.
void InitTrackPropagation | ( | G4ErrorMode | mode | ) |
Initialize for propagation of a track and set state to G4ErrorState_Propagating.
Definition at line 106 of file ExtManager.cc.
G4int PropagateOneStep | ( | G4ErrorTrajState * | currentTS, |
G4ErrorMode | mode = G4ErrorMode_PropForwards |
||
) |
Propagate a track by one step.
Definition at line 122 of file ExtManager.cc.
void RunTermination | ( | ) |
Terminate a run and set state to G4ErrorState_Init.
Definition at line 150 of file ExtManager.cc.
|
private |
Pointer to the equation of motion that accommodates back-propagation.
Definition at line 134 of file ExtManager.h.
|
private |
Pointer to the equation-of-motion chord finder (if not the default)
Definition at line 125 of file ExtManager.h.
|
private |
Pointer to the forward-propagation equation of motion.
Definition at line 131 of file ExtManager.h.
|
private |
Pointer to the simulation's G4RunManager (if any)
Definition at line 101 of file ExtManager.h.
|
private |
Initial state of the G4RunManager (=PreInitif FullSimModule not present)
Definition at line 95 of file ExtManager.h.
|
private |
Pointer to the equation of motion in the magnetic field (if not the default)
Definition at line 119 of file ExtManager.h.
|
private |
Pointer to the (un)cached magnetic field.
Definition at line 113 of file ExtManager.h.
|
staticprivate |
Stores pointer to the singleton class.
Definition at line 92 of file ExtManager.h.
|
private |
Stores pointer to the propagator.
Definition at line 98 of file ExtManager.h.
|
private |
Pointer to the standard equation-of-motion stepper.
Definition at line 128 of file ExtManager.h.
|
private |
Pointer to the G4VExceptionHandler used in PropagateOneStep()
Definition at line 110 of file ExtManager.h.
|
private |
Pointer to the equation-of-motion stepper (if not the default)
Definition at line 122 of file ExtManager.h.
|
private |
Pointer to the simulation's SteppingAction (if any)
Definition at line 107 of file ExtManager.h.
|
private |
Pointer to the simulation's TrackingAction (if any)
Definition at line 104 of file ExtManager.h.
|
private |
Pointer to the uncached magnetic field (might be superseded by its cached version)
Definition at line 116 of file ExtManager.h.
|
private |
Pointer to the visualization manager (if used)
Definition at line 137 of file ExtManager.h.