68#define G4RunManager_h 1
114 virtual void BeamOn(
G4int n_event,
const char* macroFile=0,
G4int n_select=-1);
136 G4bool topologyIsChanged=
true);
357 if( dirStr(dirStr.length()-1) !=
'/' ) dirStr +=
"/";
361 std::replace(dirStr.begin(), dirStr.end(),
'/',
'\\');
362 G4String shellCmd =
"if not exist " + dirStr +
" mkdir ";
366 G4int sysret = system(shellCmd);
369 G4String errmsg =
"\"" + shellCmd +
"\" returns non-zero value. Directory creation failed.";
381 {
G4Exception(
"GrRunManager::SetRandomNumberStoreDir",
383 "Random number status is not available for this event."); }
405 G4cerr <<
"CutOffHasBeenModified becomes obsolete." <<
G4endl;
406 G4cerr <<
"It is safe to remove invoking this method." <<
G4endl;
G4DLLIMPORT std::ostream G4cerr
void SetUserAction(G4UserEventAction *userAction)
void SetNumberOfAdditionalWaitingStacks(G4int iAdd)
void StoreRandomNumberStatusToG4Event(G4int vl)
void GeometryHasBeenModified()
void SetPhysics(G4VUserPhysicsList *uPhys)
void PhysicsHasBeenModified()
void SetGeometryToBeOptimized(G4bool vl)
void SetPrimaryTransformer(G4PrimaryTransformer *pt)
const G4String & GetVersionString() const
void SetVerboseLevel(G4int vl)
const G4UserTrackingAction * GetUserTrackingAction() const
G4bool geometryInitialized
G4int storeRandomNumberStatusToG4Event
virtual void AbortRun(G4bool softAbort=false)
virtual void Initialize()
void SetUserAction(G4UserTrackingAction *userAction)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
void SetRunIDCounter(G4int i)
G4int numberOfEventProcessed
virtual void RestoreRandomNumberStatus(const G4String &fileN)
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const
const G4UserEventAction * GetUserEventAction() const
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
G4UserEventAction * userEventAction
void SetRandomNumberStoreDir(const G4String &dir)
virtual void DoEventLoop(G4int n_event, const char *macroFile=0, G4int n_select=-1)
void SetUserAction(G4UserEventAction *userAction)
virtual void rndmSaveThisEvent()
const G4Event * GetPreviousEvent(G4int i) const
G4RunManagerKernel * kernel
virtual G4bool ConfirmBeamOnCondition()
G4bool geometryToBeOptimized
void SetUserAction(G4UserStackingAction *userAction)
void SetUserAction(G4VUserPrimaryGeneratorAction *userAction)
static G4RunManager * GetRunManager()
virtual void AbortEvent()
virtual void rndmSaveThisRun()
virtual void InitializePhysics()
G4String randomNumberStatusForThisRun
G4UserRunAction * userRunAction
const G4String & GetRandomNumberStatusForThisEvent() const
virtual void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
const G4UserStackingAction * GetUserStackingAction() const
const G4String & GetVersionString() const
virtual void InitializeGeometry()
virtual void RunTermination()
void SetNumberOfAdditionalWaitingStacks(G4int iAdd)
const G4UserSteppingAction * GetUserSteppingAction() const
void SetUserInitialization(G4VUserPhysicsList *userInit)
void SetDCtable(G4DCtable *DCtbl)
void SetNumberOfEventsToBeStored(G4int val)
G4bool physicsInitialized
void PhysicsHasBeenModified()
G4VPhysicalVolume * currentWorld
const G4Event * GetCurrentEvent() const
void StackPreviousEvent(G4Event *anEvent)
void ReOptimize(G4LogicalVolume *)
void GeometryHasBeenModified()
const G4String & GetRandomNumberStatusForThisRun() const
void SetNumberOfEventsToBeProcessed(G4int val)
void SetVerboseLevel(G4int vl)
G4bool GetRandomNumberStore() const
const G4VUserPhysicsList * GetUserPhysicsList() const
G4VUserDetectorConstruction * userDetector
const G4String & GetRandomNumberStoreDir() const
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction
const G4Run * GetCurrentRun() const
G4int numberOfEventToBeProcessed
G4int GetNumberOfParallelWorld() const
G4String randomNumberStatusDir
virtual void TerminateEventLoop()
void SetUserAction(G4UserRunAction *userAction)
G4String randomNumberStatusForThisEvent
const G4UserRunAction * GetUserRunAction() const
void SetGeometryToBeOptimized(G4bool vl)
void SetUserAction(G4UserSteppingAction *userAction)
G4UserTrackingAction * userTrackingAction
G4int n_perviousEventsToBeStored
void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void ReOptimizeMotherOf(G4VPhysicalVolume *)
void StoreRandomNumberStatusToG4Event(G4int vl)
virtual void ProcessOneEvent(G4int i_event)
void CutOffHasBeenModified()
G4bool storeRandomNumberStatus
virtual G4Event * GenerateEvent(G4int i_event)
G4int GetFlagRandomNumberStatusToG4Event() const
void SetRandomNumberStore(G4bool flag)
G4bool initializedAtLeastOnce
G4EventManager * eventManager
virtual void TerminateOneEvent()
virtual void RunInitialization()
void DumpRegion(const G4String &rname) const
G4VUserPhysicsList * physicsList
virtual void AnalyzeEvent(G4Event *anEvent)
G4bool GetGeometryToBeOptimized()
G4UserStackingAction * userStackingAction
G4int GetVerboseLevel() const
std::vector< G4Event * > * previousEvents
void ConstructScoringWorlds()
void SetPrimaryTransformer(G4PrimaryTransformer *pt)
virtual void InitializeEventLoop(G4int n_event, const char *macroFile=0, G4int n_select=-1)
G4UserSteppingAction * userSteppingAction
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)