65 G4ErrorPropagatorManager::theG4ErrorPropagatorManager = 0;
70 if(theG4ErrorPropagatorManager == NULL)
75 return theG4ErrorPropagatorManager;
84 char* g4emverb = std::getenv(
"G4EVERBOSE");
96 theEquationOfMotion = 0;
98 StartG4ErrorRunManagerHelper();
103 theG4ErrorPropagationNavigator = 0;
111 delete theEquationOfMotion;
112 delete theG4ErrorPropagationNavigator;
113 delete thePropagator;
114 delete theG4ErrorRunManagerHelper;
115 delete theG4ErrorPropagatorManager;
119void G4ErrorPropagatorManager::StartG4ErrorRunManagerHelper()
124 if(theG4ErrorRunManagerHelper == 0)
132 G4cout <<
" G4ErrorPropagatorManager::StartG4eRunManager() done "
133 << theG4ErrorRunManagerHelper <<
G4endl;
138void G4ErrorPropagatorManager::StartNavigator()
140 if(theG4ErrorPropagationNavigator == 0)
160 theG4ErrorPropagationNavigator);
203 G4cout <<
" bef theG4ErrorPropagatorManager->RunInitialization() "
207 G4cout <<
" aft theG4ErrorPropagatorManager->RunInitialization() "
218 std::ostringstream message;
220 G4Exception(
"G4ErrorPropagatorManager::InitGeant4e()",
"IllegalState",
250 G4cout <<
" G4ErrorPropagatorManager::InitFieldForBackwards() " <<
G4endl;
275 if(theEquationOfMotion == 0)
279 driver->SetEquationOfMotion(theEquationOfMotion);
416 nam =
"G4ErrorState_PreInit";
419 nam =
"G4ErrorState_Init";
422 nam =
"G4ErrorState_Propagating";
425 nam =
"G4ErrorState_TargetCloserThanBoundary";
428 nam =
"G4ErrorState_StoppedAtTarget";
448 nam =
"G4State_PreInit";
451 nam =
"G4State_Init";
454 nam =
"G4State_Idle";
457 nam =
"G4State_GeomClosed";
460 nam =
"G4State_EventProc";
463 nam =
"G4State_Quit";
466 nam =
"G4State_Abort";
@ G4ErrorState_TargetCloserThanBoundary
@ G4ErrorState_Propagating
@ G4ErrorState_StoppedAtTarget
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
G4VIntegrationDriver * GetIntegrationDriver()
static void SetVerbose(G4int ver)
static G4ErrorPropagatorData * GetErrorPropagatorData()
void SetMode(G4ErrorMode mode)
void SetState(G4ErrorState sta)
void SetSteppingManagerVerboseLevel()
void SetUserInitialization(G4VUserDetectorConstruction *userInit)
G4int Propagate(G4ErrorTrajState *currentTS, const G4ErrorTarget *target, G4ErrorMode mode=G4ErrorMode_PropForwards)
G4ErrorPropagatorManager()
void SetUserAction(G4UserTrackingAction *userAction)
~G4ErrorPropagatorManager()
G4String PrintG4ErrorState()
G4int PropagateOneStep(G4ErrorTrajState *currentTS, G4ErrorMode mode=G4ErrorMode_PropForwards)
G4bool InitFieldForBackwards()
static G4ErrorPropagatorManager * GetErrorPropagatorManager()
void InitTrackPropagation()
G4int PropagateOneStep(G4ErrorTrajState *currentTS)
void SetStepN(const G4int sn)
G4int Propagate(G4ErrorTrajState *currentTS, const G4ErrorTarget *target, G4ErrorMode mode=G4ErrorMode_PropForwards)
void InitializeGeometry()
static G4ErrorRunManagerHelper * GetRunManagerKernel()
void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void SetUserAction(G4UserEventAction *userAction)
static G4EventManager * GetEventManager()
G4TrackingManager * GetTrackingManager() const
void SetChordFinder(G4ChordFinder *aChordFinder)
const G4Field * GetDetectorField() const
G4ChordFinder * GetChordFinder()
static G4GeometryManager * GetInstance()
void OpenGeometry(G4VPhysicalVolume *vol=nullptr)
void SetVerboseLevel(G4int level)
G4int GetVerboseLevel() const
void SetWorldVolume(G4VPhysicalVolume *pWorld)
G4VPhysicalVolume * GetWorldVolume() const
G4VIntersectionLocator * GetIntersectionLocator()
const G4ApplicationState & GetCurrentState() const
static G4StateManager * GetStateManager()
G4bool SetNewState(const G4ApplicationState &requestedState)
void SetNavigator(G4Navigator *value)
void SetVerboseLevel(G4int vLevel)
G4int GetVerboseLevel() const
G4SteppingManager * GetSteppingManager() const
static G4TransportationManager * GetTransportationManager()
G4PropagatorInField * GetPropagatorInField() const
G4Navigator * GetNavigatorForTracking() const
G4FieldManager * GetFieldManager() const
void SetNavigatorForTracking(G4Navigator *newNavigator)
virtual G4EquationOfMotion * GetEquationOfMotion()=0
void SetNavigatorFor(G4Navigator *fNavigator)