51{
return fRunManagerKernel; }
57 if(fRunManagerKernel) {
58 G4Exception(
"G4ErrorRunManagerHelper::G4ErrorRunManagerHelper()",
60 "G4eRunManageKernel constructed twice.");
62 fRunManagerKernel =
this;
66 if( theG4RunManagerKernel == 0 ) {
69 G4cout <<
" creating G4RunManagerKernel " << theG4RunManagerKernel <<
G4endl;
73 theUserPhysicsList = 0;
95 theUserWorld = userInit;
102 theUserPhysicsList = userInit;
111 if( theUserWorld != 0 ) {
121 ->GetNavigatorForTracking()->GetWorldVolume() == 0 ) {
122 G4Exception(
"G4ErrorRunManagerHelper::InitializeGeometry()",
124 "No world defined in your geometry!" );
135 G4cout <<
" G4ErrorRunManagerHelper::InitializePhysics " <<
G4endl;
138 if( theUserPhysicsList != 0 ) {
139 theG4RunManagerKernel->
SetPhysics(theUserPhysicsList);
146 G4cerr <<
" WARNING G4ErrorRunManagerHelper::InitializePhysics() physics list is not G4ErrorPhysicsList. Are you sure? " <<
G4endl;
G4DLLIMPORT std::ostream G4cerr
G4DLLIMPORT 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()
void SetVerboseLevel(G4int vl)
static G4RunManager * GetRunManager()
static G4TransportationManager * GetTransportationManager()
virtual G4VPhysicalVolume * Construct()=0
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)