Geant4 11.2.2
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> |
using | masterWorlds_t = std::map<G4int, G4VPhysicalVolume*> |
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 Public Member Functions inherited from G4RunManager | |
static G4RunManager * | GetRunManager () |
static G4bool | IfGeometryHasBeenDestroyed () |
Protected Member Functions | |
virtual G4bool | InitializeSeeds (G4int) |
virtual void | PrepareCommandsStack () |
void | StoreRNGStatus (const G4String &filenamePrefix) override |
void | rndmSaveThisRun () override |
void | rndmSaveThisEvent () override |
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 | |
G4RunManager (RMType rmType) | |
void | CleanUpPreviousEvents () |
void | CleanUpUnnecessaryEvents (G4int keepNEvents) |
void | StackPreviousEvent (G4Event *anEvent) |
void | UpdateScoring () |
virtual void | DeleteUserInitializations () |
Static Protected Attributes | |
static G4MTRUN_DLL G4ScoringManager * | masterScM = nullptr |
static G4MTRUN_DLL masterWorlds_t | masterWorlds = G4MTRunManager::masterWorlds_t() |
static G4MTRUN_DLL G4MTRunManager * | fMasterRM = nullptr |
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 58 of file G4MTRunManager.hh.
using G4MTRunManager::masterWorlds_t = std::map<G4int, G4VPhysicalVolume*> |
Definition at line 68 of file G4MTRunManager.hh.
Definition at line 65 of file G4MTRunManager.hh.
|
strong |
Enumerator | |
---|---|
UNDEFINED | |
NEXTITERATION | |
PROCESSUI | |
ENDWORKER |
Definition at line 164 of file G4MTRunManager.hh.
G4MTRunManager::G4MTRunManager | ( | ) |
Definition at line 121 of file G4MTRunManager.cc.
|
override |
Definition at line 191 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 657 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 643 of file G4MTRunManager.cc.
|
static |
Definition at line 97 of file G4MTRunManager.cc.
Referenced by ConstructScoringWorlds(), and G4TaskRunManager::ConstructScoringWorlds().
|
overridevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 463 of file G4MTRunManager.cc.
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 304 of file G4MTRunManager.cc.
Referenced by InitializeEventLoop().
std::vector< G4String > G4MTRunManager::GetCommandStack | ( | ) |
Definition at line 297 of file G4MTRunManager.cc.
Referenced by G4TaskRunManager::CreateAndStartWorkers(), G4WorkerRunManager::DoWork(), G4WorkerTaskRunManager::ProcessUI(), and G4TaskRunManager::RequestWorkersProcessCommandsStack().
|
inline |
Definition at line 187 of file G4MTRunManager.hh.
Referenced by G4WorkerRunManager::GenerateEvent(), and G4WorkerTaskRunManager::GenerateEvent().
|
inline |
Definition at line 136 of file G4MTRunManager.hh.
Referenced by G4TaskRunManagerKernel::InitializeWorker(), and G4MTRunManagerKernel::StartThread().
|
static |
Definition at line 67 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 73 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::InitializeGeometry().
|
static |
Definition at line 85 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::ConstructScoringWorlds(), and G4WorkerRunManager::G4WorkerRunManager().
|
static |
Definition at line 103 of file G4MTRunManager.cc.
Referenced by G4TaskRunManagerKernel::ExecuteWorkerInit(), G4TaskRunManagerKernel::ExecuteWorkerTask(), G4TaskRunManager::GetMasterThreadId(), and G4TaskRunManagerKernel::InitializeWorker().
|
static |
Definition at line 91 of file G4MTRunManager.cc.
Referenced by G4RunManagerKernel::WorkerDefineWorldVolume(), and G4RunManagerKernel::WorkerUpdateWorldVolume().
|
static |
Definition at line 79 of file G4MTRunManager.cc.
|
inlinevirtual |
Reimplemented in G4TaskRunManager.
Definition at line 119 of file G4MTRunManager.hh.
Referenced by NewActionRequest(), RequestWorkersProcessCommandsStack(), WaitForEndEventLoopWorkers(), and WaitForReadyWorkers().
|
inlineoverridevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 75 of file G4MTRunManager.hh.
|
inline |
Definition at line 77 of file G4MTRunManager.hh.
Referenced by G4TaskRunManagerKernel::InitializeWorker(), and G4MTRunManagerKernel::StartThread().
|
overridevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 263 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 337 of file G4MTRunManager.cc.
Reimplemented in G4TaskRunManager.
Definition at line 200 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop().
|
inlinevirtual |
void G4MTRunManager::MergeRun | ( | const G4Run * | localRun | ) |
Definition at line 565 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::MergePartialResults().
void G4MTRunManager::MergeScores | ( | const G4ScoringManager * | localScoringManager | ) |
Definition at line 558 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::MergePartialResults().
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 691 of file G4MTRunManager.cc.
Referenced by CreateAndStartWorkers(), RequestWorkersProcessCommandsStack(), and TerminateWorkers().
|
protectedvirtual |
Definition at line 285 of file G4MTRunManager.cc.
Referenced by InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RequestWorkersProcessCommandsStack(), and G4TaskRunManager::RequestWorkersProcessCommandsStack().
|
overridevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 273 of file G4MTRunManager.cc.
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 426 of file G4MTRunManager.cc.
Referenced by SetUpAnEvent(), and SetUpNEvents().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 708 of file G4MTRunManager.cc.
Referenced by TerminateWorkers().
|
overrideprotectedvirtual |
Reimplemented from G4RunManager.
Definition at line 235 of file G4MTRunManager.cc.
|
overrideprotectedvirtual |
Reimplemented from G4RunManager.
Definition at line 210 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 449 of file G4MTRunManager.cc.
|
static |
Definition at line 109 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::GenerateEvent(), G4WorkerTaskRunManager::GenerateEvent(), G4RunMessenger::GetCurrentValue(), G4TaskRunManager::InitializeEventLoop(), G4TaskRunManager::RefillSeeds(), and G4TaskRunManager::SetUpNEvents().
|
inline |
Definition at line 186 of file G4MTRunManager.hh.
|
overridevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 242 of file G4MTRunManager.cc.
Referenced by G4RunManagerFactory::CreateRunManager().
void G4MTRunManager::SetPinAffinity | ( | G4int | n = 1 | ) |
Definition at line 723 of file G4MTRunManager.cc.
|
static |
Definition at line 115 of file G4MTRunManager.cc.
Referenced by G4TaskRunManager::InitializeEventLoop(), and G4RunMessenger::SetNewValue().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 572 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::GenerateEvent(), and G4WorkerTaskRunManager::GenerateEvent().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 594 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::GenerateEvent(), and G4WorkerTaskRunManager::GenerateEvent().
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 526 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 511 of file G4MTRunManager.cc.
Referenced by G4TheMTRayTracer::RestoreUserActions(), and G4TheMTRayTracer::StoreUserActions().
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 534 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 550 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 542 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 518 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 479 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 485 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 491 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 505 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Definition at line 498 of file G4MTRunManager.cc.
Referenced by G4TheMTRayTracer::RestoreUserActions(), and G4TheMTRayTracer::StoreUserActions().
|
overrideprotectedvirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 202 of file G4MTRunManager.cc.
|
overridevirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 279 of file G4MTRunManager.cc.
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 622 of file G4MTRunManager.cc.
Referenced by ~G4MTRunManager().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 685 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::RunTermination(), and G4WorkerTaskRunManager::RunTermination().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 717 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::DoWork(), and G4TaskRunManager::RequestWorkersProcessCommandsStack().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 671 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::RunInitialization(), and G4WorkerTaskRunManager::RunInitialization().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 701 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::DoWork().
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 677 of file G4MTRunManager.cc.
Referenced by RunTermination().
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 663 of file G4MTRunManager.cc.
Referenced by InitializeEventLoop().
|
friend |
Definition at line 60 of file G4MTRunManager.hh.
|
protected |
Definition at line 272 of file G4MTRunManager.hh.
Referenced by ThisWorkerReady(), WaitForEndEventLoopWorkers(), and WaitForReadyWorkers().
|
protected |
Definition at line 273 of file G4MTRunManager.hh.
Referenced by ThisWorkerEndEventLoop(), WaitForEndEventLoopWorkers(), and WaitForReadyWorkers().
|
protected |
Definition at line 246 of file G4MTRunManager.hh.
Referenced by G4TaskRunManager::ComputeNumberOfTasks(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 245 of file G4MTRunManager.hh.
Referenced by G4TaskRunManager::ComputeNumberOfTasks(), GetEventModulo(), InitializeEventLoop(), and SetEventModulo().
|
staticprotected |
Definition at line 241 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), GetMasterRunManager(), GetMasterRunManagerKernel(), and GetMTMasterRunManagerKernel().
|
protected |
Definition at line 233 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), SetNumberOfThreads(), and G4TaskRunManager::SetNumberOfThreads().
|
staticprotected |
Definition at line 238 of file G4MTRunManager.hh.
Referenced by ConstructScoringWorlds(), G4TaskRunManager::ConstructScoringWorlds(), G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), GetMasterScoringManager(), MergeScores(), and G4TaskRunManager::MergeScores().
|
staticprotected |
Definition at line 253 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), and GetMasterThreadId().
|
staticprotected |
Definition at line 239 of file G4MTRunManager.hh.
Referenced by addWorld(), ConstructScoringWorlds(), G4TaskRunManager::ConstructScoringWorlds(), and GetMasterWorlds().
|
protected |
Definition at line 243 of file G4MTRunManager.hh.
Referenced by NewActionRequest(), and ThisWorkerWaitForNextAction().
|
protected |
Definition at line 274 of file G4MTRunManager.hh.
Referenced by NewActionRequest(), and ThisWorkerWaitForNextAction().
|
protected |
Definition at line 248 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), SetUpAnEvent(), G4TaskRunManager::SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 249 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), and G4TaskRunManager::RefillSeeds().
|
protected |
Definition at line 250 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), SetUpAnEvent(), G4TaskRunManager::SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 247 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), SetUpAnEvent(), G4TaskRunManager::SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 235 of file G4MTRunManager.hh.
Referenced by G4TaskRunManager::ComputeNumberOfTasks(), G4TaskRunManager::CreateAndStartWorkers(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), SetUpAnEvent(), G4TaskRunManager::SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 230 of file G4MTRunManager.hh.
Referenced by CreateAndStartWorkers(), G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), GetNumberOfThreads(), G4TaskRunManager::GetNumberOfThreads(), InitializeEventLoop(), G4TaskRunManager::InitializeThreadPool(), RefillSeeds(), SetNumberOfThreads(), and G4TaskRunManager::SetNumberOfThreads().
|
protected |
Definition at line 275 of file G4MTRunManager.hh.
Referenced by RequestWorkersProcessCommandsStack(), and ThisWorkerProcessCommandsStackDone().
|
protected |
Definition at line 251 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), and ~G4MTRunManager().
|
staticprotected |
Definition at line 269 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop(), RefillSeeds(), SeedOncePerCommunication(), SetSeedOncePerCommunication(), and SetUpNEvents().