106 #ifndef G4RunManager_h
107 #define G4RunManager_h 1
160 virtual void BeamOn(
G4int n_event,
const char* macroFile=0,
G4int n_select=-1);
182 G4bool topologyIsChanged=
true);
418 if( dirStr(dirStr.length()-1) !=
'/' ) dirStr +=
"/";
422 std::replace(dirStr.begin(), dirStr.end(),
'/',
'\\');
423 G4String shellCmd =
"if not exist " + dirStr +
" mkdir ";
430 G4String errmsg =
"\"" + shellCmd +
"\" returns non-zero value. Directory creation failed.";
442 {
G4Exception(
"GrRunManager::SetRandomNumberStoreDir",
444 "Random number status is not available for this event."); }
481 G4cerr <<
"CutOffHasBeenModified becomes obsolete." <<
G4endl;
482 G4cerr <<
"It is safe to remove invoking this method." <<
G4endl;
541 for(
G4int j=1;j<i;j++) { itr++; }
virtual void AbortRun(G4bool softAbort=false)
G4VUserDetectorConstruction * userDetector
static G4RunManager * GetRunManager()
const G4Run * GetCurrentRun() const
G4RunManager(const G4RunManager &)
const G4UserRunAction * GetUserRunAction() const
const G4String & GetRandomNumberStoreDir() const
const G4UserEventAction * GetUserEventAction() const
void CutOffHasBeenModified()
const G4VUserPhysicsList * GetUserPhysicsList() const
void ReOptimize(G4LogicalVolume *)
system("rm -rf microbeam.root")
G4bool rngStatusEventsFlag
G4VUserActionInitialization * userActionInitialization
const G4UserStackingAction * GetUserStackingAction() const
void StackPreviousEvent(G4Event *anEvent)
G4bool geometryToBeOptimized
void SetRandomNumberStoreDir(const G4String &dir)
G4bool initializedAtLeastOnce
void CleanUpUnnecessaryEvents(G4int keepNEvents)
const G4UserTrackingAction * GetUserTrackingAction() const
void SetVerboseLevel(G4int vl)
virtual void SetUserAction(G4UserRunAction *userAction)
G4bool storeRandomNumberStatus
virtual void RunInitialization()
G4UserEventAction * userEventAction
void PhysicsHasBeenModified()
G4bool geometryInitialized
const G4Event * GetPreviousEvent(G4int i) const
virtual void TerminateOneEvent()
virtual void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
void SetDCtable(G4DCtable *DCtbl)
G4VUserPhysicsList * physicsList
G4UserRunAction * userRunAction
virtual void RunTermination()
G4int GetNumberOfEventsToBeProcessed() const
void SetPrimaryTransformer(G4PrimaryTransformer *pt)
void SetPrimaryTransformer(G4PrimaryTransformer *pt)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
virtual void TerminateEventLoop()
G4int numberOfEventProcessed
virtual void rndmSaveThisRun()
G4int GetNumberOfSelectEvents() const
void CleanUpPreviousEvents()
void SetGeometryToBeOptimized(G4bool vl)
G4bool GetRandomNumberStore() const
const G4UserSteppingAction * GetUserSteppingAction() const
G4bool physicsInitialized
const G4String & GetRandomNumberStatusForThisRun() const
virtual void ConstructScoringWorlds()
G4int storeRandomNumberStatusToG4Event
virtual G4Event * GenerateEvent(G4int i_event)
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction
virtual void AnalyzeEvent(G4Event *anEvent)
void GeometryHasBeenModified()
void StoreRandomNumberStatusToG4Event(G4int vl)
G4int GetFlagRandomNumberStatusToG4Event() const
G4VUserActionInitialization * GetNonConstUserActionInitialization() const
G4int numberOfEventToBeProcessed
virtual void ProcessOneEvent(G4int i_event)
G4UserWorkerInitialization * userWorkerInitialization
static G4bool fGeometryHasBeenDestroyed
void SetNumberOfEventsToBeStored(G4int val)
void SetNumberOfAdditionalWaitingStacks(G4int iAdd)
virtual void DoEventLoop(G4int n_event, const char *macroFile=0, G4int n_select=-1)
const G4UserWorkerInitialization * GetUserWorkerInitialization() const
G4UserStackingAction * userStackingAction
void SetVerboseLevel(G4int vl)
void GeometryHasBeenModified(G4bool prop=true)
G4Run * GetNonConstCurrentRun() const
G4GLOB_DLL std::ostream G4cerr
G4bool GetGeometryToBeOptimized()
const G4Event * GetCurrentEvent() const
G4String randomNumberStatusForThisRun
virtual void DeleteUserInitializations()
G4UserSteppingAction * userSteppingAction
void SetNumberOfAdditionalWaitingStacks(G4int iAdd)
void SetRandomNumberStorePerEvent(G4bool flag)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void StoreRandomNumberStatusToG4Event(G4int vl)
void SetRandomNumberStore(G4bool flag)
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
void SetGeometryToBeOptimized(G4bool vl)
void ReOptimizeMotherOf(G4VPhysicalVolume *)
G4int GetVerboseLevel() const
const G4VUserActionInitialization * GetUserActionInitialization() const
const G4String & GetVersionString() const
G4UserWorkerThreadInitialization * userWorkerThreadInitialization
G4RunManager & operator=(const G4RunManager &)
virtual G4bool ConfirmBeamOnCondition()
void DumpRegion(const G4String &rname) const
virtual void RestoreRandomNumberStatus(const G4String &fileN)
void PhysicsHasBeenModified()
std::list< G4Event * > * previousEvents
virtual void InitializeEventLoop(G4int n_event, const char *macroFile=0, G4int n_select=-1)
virtual void rndmSaveThisEvent()
virtual void AbortEvent()
static G4ThreadLocal G4RunManager * fRunManager
virtual void RestoreRndmEachEvent(G4bool)
G4String GetSelectMacro() const
virtual void StoreRNGStatus(const G4String &filenamePrefix)
const G4UserWorkerThreadInitialization * GetUserWorkerThreadInitialization() const
G4String randomNumberStatusForThisEvent
RMType GetRunManagerType() const
G4RunMessenger * runMessenger
G4UserTrackingAction * userTrackingAction
const G4String & GetRandomNumberStatusForThisEvent() const
G4String randomNumberStatusDir
virtual void Initialize()
void SetNumberOfEventsToBeProcessed(G4int val)
G4int GetNumberOfParallelWorld() const
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
const G4String & GetVersionString() const
static G4bool IfGeometryHasBeenDestroyed()
G4VPhysicalVolume * currentWorld
virtual void InitializeGeometry()
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const
virtual void InitializePhysics()
G4int n_perviousEventsToBeStored
void SetRunIDCounter(G4int i)
G4RunManagerKernel * kernel
G4EventManager * eventManager
G4bool GetRandomNumberStorePerEvent() const
void SetPrintProgress(G4int i)