48 G4ErrorRunManagerHelper::fRunManagerKernel = 0;
52 {
return fRunManagerKernel; }
58 if(fRunManagerKernel) {
59 G4Exception(
"G4ErrorRunManagerHelper::G4ErrorRunManagerHelper()",
61 "G4eRunManageKernel constructed twice.");
63 fRunManagerKernel =
this;
67 if( theG4RunManagerKernel == 0 ) {
70 G4cout <<
" creating G4RunManagerKernel " << theG4RunManagerKernel <<
G4endl;
74 theUserPhysicsList = 0;
96 theUserWorld = userInit;
103 theUserPhysicsList = userInit;
112 if( theUserWorld != 0 ) {
122 ->GetNavigatorForTracking()->GetWorldVolume() == 0 ) {
123 G4Exception(
"G4ErrorRunManagerHelper::InitializeGeometry()",
125 "No world defined in your geometry!" );
136 G4cout <<
" G4ErrorRunManagerHelper::InitializePhysics " <<
G4endl;
139 if( theUserPhysicsList != 0 ) {
140 theG4RunManagerKernel->
SetPhysics(theUserPhysicsList);
147 G4cerr <<
" WARNING G4ErrorRunManagerHelper::InitializePhysics() physics list is not G4ErrorPhysicsList. Are you sure? " <<
G4endl;
virtual G4VPhysicalVolume * Construct()=0
void SetPhysics(G4VUserPhysicsList *uPhys)
G4VUserPhysicsList * GetUserPhysicsList() const
virtual ~G4ErrorRunManagerHelper()
static G4RunManagerKernel * GetRunManagerKernel()
G4bool RunInitialization(G4bool fakeRun=false)
G4ErrorRunManagerHelper()
G4GLOB_DLL std::ostream G4cout
void SetUserAction(G4UserTrackingAction *userAction)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4TransportationManager * GetTransportationManager()
static G4RunManager * GetRunManager()
void InitializeGeometry()
void SetUserAction(G4UserEventAction *userAction)
static G4EventManager * GetEventManager()
static G4ErrorRunManagerHelper * GetRunManagerKernel()
void SetVerboseLevel(G4int vl)
G4GLOB_DLL std::ostream G4cerr
void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
void SetUserInitialization(G4VUserDetectorConstruction *userInit)