47 G4ErrorRunManagerHelper::fRunManagerKernel = 0;
52 return fRunManagerKernel;
60 G4Exception(
"G4ErrorRunManagerHelper::G4ErrorRunManagerHelper()",
62 "G4eRunManageKernel constructed twice.");
64 fRunManagerKernel =
this;
68 if(theG4RunManagerKernel == 0)
72 G4cout <<
" creating G4RunManagerKernel " << theG4RunManagerKernel
77 theUserPhysicsList = 0;
94 theUserWorld = userInit;
101 theUserPhysicsList = userInit;
110 if(theUserWorld != 0)
121 ->GetNavigatorForTracking()
122 ->GetWorldVolume() == 0)
124 G4Exception(
"G4ErrorRunManagerHelper::InitializeGeometry()",
126 "No world defined in your geometry!");
134 G4cout <<
" G4ErrorRunManagerHelper::InitializePhysics " <<
G4endl;
137 if(theUserPhysicsList != 0)
139 theG4RunManagerKernel->
SetPhysics(theUserPhysicsList);
153 std::ostringstream message;
154 message <<
"Physics list is not G4ErrorPhysicsList. Are you sure?";
155 G4Exception(
"G4ErrorRunManagerHelper::InitializePhysics()",
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
G4VUserPhysicsList * GetUserPhysicsList() const
void InitializeGeometry()
G4ErrorRunManagerHelper()
virtual ~G4ErrorRunManagerHelper()
static G4ErrorRunManagerHelper * GetRunManagerKernel()
void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void SetUserAction(G4UserTrackingAction *userAction)
void SetUserAction(G4UserEventAction *userAction)
static G4EventManager * GetEventManager()
static G4RunManagerKernel * GetRunManagerKernel()
void SetPhysics(G4VUserPhysicsList *uPhys)
void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
G4bool RunInitialization(G4bool fakeRun=false)
void SetVerboseLevel(G4int vl)
static G4RunManager * GetRunManager()
static G4TransportationManager * GetTransportationManager()
virtual G4VPhysicalVolume * Construct()=0