Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4MTRunManager.hh>
Public Types | |
enum class | WorkerActionRequest { UNDEFINED , NEXTITERATION , PROCESSUI , ENDWORKER } |
using | ProfilerConfig = G4ProfilerConfig< G4ProfileType::Run > |
typedef std::map< G4int, G4VPhysicalVolume * > | masterWorlds_t |
Public Types inherited from G4RunManager | |
enum | RMType { sequentialRM , masterRM , workerRM } |
using | ProfilerConfig = G4ProfilerConfig< G4ProfileType::Run > |
Static Public Member Functions | |
static G4ThreadId | GetMasterThreadId () |
static G4ScoringManager * | GetMasterScoringManager () |
static masterWorlds_t & | GetMasterWorlds () |
static void | addWorld (G4int counter, G4VPhysicalVolume *w) |
static G4MTRunManager * | GetMasterRunManager () |
static G4RunManagerKernel * | GetMasterRunManagerKernel () |
static G4MTRunManagerKernel * | GetMTMasterRunManagerKernel () |
static G4int | SeedOncePerCommunication () |
static void | SetSeedOncePerCommunication (G4int val) |
static G4ThreadId | GetMasterTheadId () |
Static Public Member Functions inherited from G4RunManager | |
static G4RunManager * | GetRunManager () |
static G4bool | IfGeometryHasBeenDestroyed () |
Protected Member Functions | |
virtual G4bool | InitializeSeeds (G4int) |
virtual void | PrepareCommandsStack () |
virtual void | StoreRNGStatus (const G4String &filenamePrefix) |
virtual void | rndmSaveThisRun () |
virtual void | rndmSaveThisEvent () |
virtual void | CreateAndStartWorkers () |
virtual void | WaitForReadyWorkers () |
virtual void | WaitForEndEventLoopWorkers () |
virtual void | TerminateWorkers () |
virtual void | NewActionRequest (WorkerActionRequest newRequest) |
virtual void | RefillSeeds () |
Protected Member Functions inherited from G4RunManager | |
void | CleanUpPreviousEvents () |
void | CleanUpUnnecessaryEvents (G4int keepNEvents) |
void | StackPreviousEvent (G4Event *anEvent) |
G4RunManager (RMType rmType) | |
virtual void | StoreRNGStatus (const G4String &filenamePrefix) |
void | UpdateScoring () |
virtual void | DeleteUserInitializations () |
Static Protected Attributes | |
static G4MTRUN_DLL G4ScoringManager * | masterScM = 0 |
static G4MTRUN_DLL masterWorlds_t | masterWorlds |
static G4MTRUN_DLL G4MTRunManager * | fMasterRM = 0 |
static G4ThreadId | masterThreadId = G4ThisThread::get_id() |
static G4int | seedOncePerCommunication = 0 |
Static Protected Attributes inherited from G4RunManager | |
static G4RUN_DLL G4bool | fGeometryHasBeenDestroyed = false |
Friends | |
class | G4RunManagerFactory |
Definition at line 53 of file G4MTRunManager.hh.
typedef std::map<G4int, G4VPhysicalVolume*> G4MTRunManager::masterWorlds_t |
Definition at line 178 of file G4MTRunManager.hh.
Definition at line 59 of file G4MTRunManager.hh.
|
strong |
Enumerator | |
---|---|
UNDEFINED | |
NEXTITERATION | |
PROCESSUI | |
ENDWORKER |
Definition at line 227 of file G4MTRunManager.hh.
G4MTRunManager::G4MTRunManager | ( | ) |
Definition at line 104 of file G4MTRunManager.cc.
|
virtual |
Definition at line 195 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 702 of file G4MTRunManager.cc.
|
virtual |
virtual void ResetNavigator() const;
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 686 of file G4MTRunManager.cc.
|
static |
Definition at line 88 of file G4MTRunManager.cc.
Referenced by ConstructScoringWorlds(), and G4TaskRunManager::ConstructScoringWorlds().
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 499 of file G4MTRunManager.cc.
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 314 of file G4MTRunManager.cc.
Referenced by InitializeEventLoop().
std::vector< G4String > G4MTRunManager::GetCommandStack | ( | ) |
Definition at line 308 of file G4MTRunManager.cc.
Referenced by G4TaskRunManager::CreateAndStartWorkers(), G4WorkerRunManager::DoWork(), G4WorkerTaskRunManager::ProcessUI(), and G4TaskRunManager::RequestWorkersProcessCommandsStack().
|
inline |
Definition at line 263 of file G4MTRunManager.hh.
Referenced by G4WorkerRunManager::GenerateEvent(), and G4WorkerTaskRunManager::GenerateEvent().
|
inline |
Definition at line 183 of file G4MTRunManager.hh.
Referenced by G4TaskRunManagerKernel::InitializeWorker(), and G4MTRunManagerKernel::StartThread().
|
static |
Definition at line 61 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::DoWork(), G4WorkerRunManager::GenerateEvent(), G4WorkerTaskRunManager::GenerateEvent(), G4TaskRunManager::GetMasterRunManager(), G4RunManagerFactory::GetMTMasterRunManager(), G4WorkerRunManager::MergePartialResults(), G4TaskRunManager::RequestWorkersProcessCommandsStack(), G4WorkerRunManager::RunInitialization(), G4WorkerTaskRunManager::RunInitialization(), G4WorkerRunManager::RunTermination(), G4WorkerTaskRunManager::RunTermination(), G4MTRunManagerKernel::StartThread(), G4RunManagerKernel::WorkerDefineWorldVolume(), and G4RunManagerKernel::WorkerUpdateWorldVolume().
|
static |
Definition at line 70 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::InitializeGeometry().
|
static |
Definition at line 79 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::ConstructScoringWorlds(), and G4WorkerRunManager::G4WorkerRunManager().
|
static |
|
static |
Definition at line 92 of file G4MTRunManager.cc.
Referenced by G4TaskRunManagerKernel::ExecuteWorkerInit(), G4TaskRunManagerKernel::ExecuteWorkerTask(), G4TaskRunManager::GetMasterThreadId(), and G4TaskRunManagerKernel::InitializeWorker().
|
static |
Definition at line 84 of file G4MTRunManager.cc.
Referenced by G4RunManagerKernel::WorkerDefineWorldVolume(), and G4RunManagerKernel::WorkerUpdateWorldVolume().
|
static |
Definition at line 75 of file G4MTRunManager.cc.
|
inlinevirtual |
Reimplemented in G4TaskRunManager.
Definition at line 120 of file G4MTRunManager.hh.
Referenced by NewActionRequest(), RequestWorkersProcessCommandsStack(), WaitForEndEventLoopWorkers(), and WaitForReadyWorkers().
|
inlinevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 66 of file G4MTRunManager.hh.
|
inline |
Definition at line 68 of file G4MTRunManager.hh.
Referenced by G4TaskRunManagerKernel::InitializeWorker(), and G4MTRunManagerKernel::StartThread().
|
virtual |
G4UImanager::GetUIpointer()->SetIgnoreCmdNotFound(true);
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 272 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 353 of file G4MTRunManager.cc.
Reimplemented in G4TaskRunManager.
Definition at line 107 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop().
|
inlinevirtual |
void G4MTRunManager::MergeRun | ( | const G4Run * | localRun | ) |
Definition at line 597 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::MergePartialResults().
void G4MTRunManager::MergeScores | ( | const G4ScoringManager * | localScoringManager | ) |
Definition at line 590 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::MergePartialResults().
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 731 of file G4MTRunManager.cc.
Referenced by CreateAndStartWorkers(), RequestWorkersProcessCommandsStack(), and TerminateWorkers().
|
protectedvirtual |
Definition at line 295 of file G4MTRunManager.cc.
Referenced by InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RequestWorkersProcessCommandsStack(), and G4TaskRunManager::RequestWorkersProcessCommandsStack().
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 286 of file G4MTRunManager.cc.
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 459 of file G4MTRunManager.cc.
Referenced by SetUpAnEvent(), and SetUpNEvents().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 748 of file G4MTRunManager.cc.
Referenced by G4RunMessenger::SetNewValue(), and TerminateWorkers().
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from G4RunManager.
Definition at line 212 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 486 of file G4MTRunManager.cc.
|
static |
Definition at line 95 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::GenerateEvent(), G4WorkerTaskRunManager::GenerateEvent(), G4RunMessenger::GetCurrentValue(), G4TaskRunManager::InitializeEventLoop(), G4TaskRunManager::RefillSeeds(), and G4TaskRunManager::SetUpNEvents().
|
inline |
Definition at line 262 of file G4MTRunManager.hh.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 247 of file G4MTRunManager.cc.
Referenced by G4RunManagerFactory::CreateRunManager().
void G4MTRunManager::SetPinAffinity | ( | G4int | n = 1 | ) |
Definition at line 760 of file G4MTRunManager.cc.
|
static |
Definition at line 99 of file G4MTRunManager.cc.
Referenced by G4TaskRunManager::InitializeEventLoop(), and G4RunMessenger::SetNewValue().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 604 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::GenerateEvent(), and G4WorkerTaskRunManager::GenerateEvent().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 629 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::GenerateEvent(), and G4WorkerTaskRunManager::GenerateEvent().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 562 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 546 of file G4MTRunManager.cc.
Referenced by G4TheMTRayTracer::RestoreUserActions(), and G4TheMTRayTracer::StoreUserActions().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 569 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 583 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 576 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 553 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 517 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 522 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 528 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 541 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 535 of file G4MTRunManager.cc.
Referenced by G4TheMTRayTracer::RestoreUserActions(), and G4TheMTRayTracer::StoreUserActions().
|
protectedvirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 205 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 290 of file G4MTRunManager.cc.
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 664 of file G4MTRunManager.cc.
Referenced by ~G4MTRunManager().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 726 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::RunTermination(), and G4WorkerTaskRunManager::RunTermination().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 756 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::DoWork(), and G4TaskRunManager::RequestWorkersProcessCommandsStack().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 714 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::RunInitialization(), and G4WorkerTaskRunManager::RunInitialization().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 742 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::DoWork().
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 719 of file G4MTRunManager.cc.
Referenced by RunTermination().
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 707 of file G4MTRunManager.cc.
Referenced by InitializeEventLoop().
|
friend |
Definition at line 55 of file G4MTRunManager.hh.
|
protected |
Definition at line 293 of file G4MTRunManager.hh.
Referenced by ThisWorkerReady(), WaitForEndEventLoopWorkers(), and WaitForReadyWorkers().
|
protected |
Definition at line 294 of file G4MTRunManager.hh.
Referenced by ThisWorkerEndEventLoop(), WaitForEndEventLoopWorkers(), and WaitForReadyWorkers().
|
protected |
Definition at line 252 of file G4MTRunManager.hh.
Referenced by G4TaskRunManager::ComputeNumberOfTasks(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 251 of file G4MTRunManager.hh.
Referenced by GetEventModulo(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), and SetEventModulo().
|
staticprotected |
Definition at line 193 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), GetMasterRunManager(), GetMasterRunManagerKernel(), and GetMTMasterRunManagerKernel().
|
protected |
Definition at line 131 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), SetNumberOfThreads(), and G4TaskRunManager::SetNumberOfThreads().
|
staticprotected |
Definition at line 190 of file G4MTRunManager.hh.
Referenced by ConstructScoringWorlds(), G4TaskRunManager::ConstructScoringWorlds(), G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), GetMasterScoringManager(), MergeScores(), and G4TaskRunManager::MergeScores().
|
staticprotected |
Definition at line 270 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), and GetMasterThreadId().
|
staticprotected |
Definition at line 191 of file G4MTRunManager.hh.
Referenced by addWorld(), ConstructScoringWorlds(), G4TaskRunManager::ConstructScoringWorlds(), and GetMasterWorlds().
|
protected |
Definition at line 247 of file G4MTRunManager.hh.
Referenced by NewActionRequest(), and ThisWorkerWaitForNextAction().
|
protected |
Definition at line 295 of file G4MTRunManager.hh.
Referenced by NewActionRequest(), and ThisWorkerWaitForNextAction().
|
protected |
Definition at line 254 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), G4TaskRunManager::SetUpAnEvent(), SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 255 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), and G4TaskRunManager::RefillSeeds().
|
protected |
Definition at line 256 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), G4TaskRunManager::SetUpAnEvent(), SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 253 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), G4TaskRunManager::SetUpAnEvent(), SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 159 of file G4MTRunManager.hh.
Referenced by G4TaskRunManager::ComputeNumberOfTasks(), G4TaskRunManager::CreateAndStartWorkers(), G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), G4TaskRunManager::SetUpAnEvent(), SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 129 of file G4MTRunManager.hh.
Referenced by CreateAndStartWorkers(), G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), GetNumberOfThreads(), InitializeEventLoop(), G4TaskRunManager::InitializeThreadPool(), RefillSeeds(), SetNumberOfThreads(), and G4TaskRunManager::SetNumberOfThreads().
|
protected |
Definition at line 296 of file G4MTRunManager.hh.
Referenced by RequestWorkersProcessCommandsStack(), and ThisWorkerProcessCommandsStackDone().
|
protected |
Definition at line 257 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), and ~G4MTRunManager().
|
staticprotected |
Definition at line 271 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop(), RefillSeeds(), SeedOncePerCommunication(), SetSeedOncePerCommunication(), and SetUpNEvents().