34 #ifndef G4MTRunManager_h
35 #define G4MTRunManager_h 1
266 #endif //G4MTRunManager_h
static G4MTRunManager * GetMasterRunManager()
virtual G4bool InitializeSeeds(G4int)
void SetNumberOfThreads(G4int n)
static G4MTRunManager * fMasterRM
G4MTBarrier endOfEventLoopBarrier
virtual void PrepareCommandsStack()
virtual void ProcessOneEvent(G4int i_event)
std::vector< G4String > GetCommandStack()
G4MTRunManagerKernel * MTkernel
virtual void CreateAndStartWorkers()
virtual void ConstructScoringWorlds()
std::map< G4int, G4VPhysicalVolume * > masterWorlds_t
const CLHEP::HepRandomEngine * getMasterRandomEngine() const
G4int GetNumberOfThreads() const
virtual void ThisWorkerEndEventLoop()
G4MTBarrier processUIBarrier
static G4ScoringManager * GetMasterScoringManager()
static void SetSeedOncePerCommunication(G4int val)
virtual ~G4MTRunManager()
virtual void NewActionRequest(WorkerActionRequest newRequest)
virtual void InitializeEventLoop(G4int n_event, const char *macroFile=0, G4int n_select=-1)
virtual void AbortRun(G4bool softAbort=false)
G4int GetEventModulo() const
G4MTBarrier nextActionRequestBarrier
virtual void WaitForReadyWorkers()
virtual void SetUserInitialization(G4VUserPhysicsList *userPL)
void MergeRun(const G4Run *localRun)
static G4int seedOncePerCommunication
virtual G4bool SetUpAnEvent(G4Event *, long &s1, long &s2, long &s3, G4bool reseedRequired=true)
WorkerActionRequest nextActionRequest
void SetPinAffinity(G4int n=1)
virtual void ThisWorkerReady()
virtual void TerminateOneEvent()
static G4ScoringManager * masterScM
virtual void SetUserAction(G4UserRunAction *userAction)
static masterWorlds_t masterWorlds
void SetEventModulo(G4int i=1)
static masterWorlds_t & GetMasterWorlds()
G4int numberOfEventToBeProcessed
virtual void TerminateWorkers()
static G4int SeedOncePerCommunication()
void MergeScores(const G4ScoringManager *localScoringManager)
G4int GetPinAffinity() const
std::queue< G4long > G4SeedsQueue
std::list< G4Thread * > G4ThreadsList
static G4RunManagerKernel * GetMasterRunManagerKernel()
virtual void StoreRNGStatus(const G4String &filenamePrefix)
virtual void Initialize()
size_t GetNumberActiveThreads() const
virtual void AbortEvent()
virtual void WaitForEndEventLoopWorkers()
virtual G4int SetUpNEvents(G4Event *, G4SeedsQueue *seedsQueue, G4bool reseedRequired=true)
CLHEP::HepRandomEngine * masterRNGEngine
virtual WorkerActionRequest ThisWorkerWaitForNextAction()
virtual void RequestWorkersProcessCommandsStack()
virtual void ThisWorkerProcessCommandsStackDone()
std::vector< G4String > uiCmdsForWorkers
virtual void RunTermination()
static void addWorld(G4int counter, G4VPhysicalVolume *w)
static G4MTRunManagerKernel * GetMTMasterRunManagerKernel()
G4MTBarrier beginOfEventLoopBarrier