Geant4 11.1.1
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 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 | |
G4RunManager (RMType rmType) | |
void | CleanUpPreviousEvents () |
void | CleanUpUnnecessaryEvents (G4int keepNEvents) |
void | StackPreviousEvent (G4Event *anEvent) |
virtual void | StoreRNGStatus (const G4String &filenamePrefix) |
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 64 of file G4MTRunManager.hh.
|
strong |
Enumerator | |
---|---|
UNDEFINED | |
NEXTITERATION | |
PROCESSUI | |
ENDWORKER |
Definition at line 167 of file G4MTRunManager.hh.
G4MTRunManager::G4MTRunManager | ( | ) |
Definition at line 120 of file G4MTRunManager.cc.
|
virtual |
Definition at line 202 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 739 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 722 of file G4MTRunManager.cc.
|
static |
Definition at line 96 of file G4MTRunManager.cc.
Referenced by ConstructScoringWorlds(), and G4TaskRunManager::ConstructScoringWorlds().
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 518 of file G4MTRunManager.cc.
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 330 of file G4MTRunManager.cc.
Referenced by InitializeEventLoop().
std::vector< G4String > G4MTRunManager::GetCommandStack | ( | ) |
Definition at line 323 of file G4MTRunManager.cc.
Referenced by G4TaskRunManager::CreateAndStartWorkers(), G4WorkerRunManager::DoWork(), G4WorkerTaskRunManager::ProcessUI(), and G4TaskRunManager::RequestWorkersProcessCommandsStack().
|
inline |
Definition at line 188 of file G4MTRunManager.hh.
Referenced by G4WorkerRunManager::GenerateEvent(), and G4WorkerTaskRunManager::GenerateEvent().
|
inline |
Definition at line 137 of file G4MTRunManager.hh.
Referenced by G4TaskRunManagerKernel::InitializeWorker(), and G4MTRunManagerKernel::StartThread().
|
static |
Definition at line 66 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 72 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::InitializeGeometry().
|
static |
Definition at line 84 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::ConstructScoringWorlds(), and G4WorkerRunManager::G4WorkerRunManager().
|
static |
|
static |
Definition at line 102 of file G4MTRunManager.cc.
Referenced by G4TaskRunManagerKernel::ExecuteWorkerInit(), G4TaskRunManagerKernel::ExecuteWorkerTask(), G4TaskRunManager::GetMasterThreadId(), and G4TaskRunManagerKernel::InitializeWorker().
|
static |
Definition at line 90 of file G4MTRunManager.cc.
Referenced by G4RunManagerKernel::WorkerDefineWorldVolume(), and G4RunManagerKernel::WorkerUpdateWorldVolume().
|
static |
Definition at line 78 of file G4MTRunManager.cc.
|
inlinevirtual |
Reimplemented in G4TaskRunManager.
Definition at line 116 of file G4MTRunManager.hh.
Referenced by NewActionRequest(), RequestWorkersProcessCommandsStack(), WaitForEndEventLoopWorkers(), and WaitForReadyWorkers().
|
inlinevirtual |
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().
|
virtual |
G4UImanager::GetUIpointer()->SetIgnoreCmdNotFound(true);
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 287 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 371 of file G4MTRunManager.cc.
Reimplemented in G4TaskRunManager.
Definition at line 199 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop().
|
inlinevirtual |
void G4MTRunManager::MergeRun | ( | const G4Run * | localRun | ) |
Definition at line 629 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::MergePartialResults().
void G4MTRunManager::MergeScores | ( | const G4ScoringManager * | localScoringManager | ) |
Definition at line 621 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::MergePartialResults().
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 773 of file G4MTRunManager.cc.
Referenced by CreateAndStartWorkers(), RequestWorkersProcessCommandsStack(), and TerminateWorkers().
|
protectedvirtual |
Definition at line 310 of file G4MTRunManager.cc.
Referenced by InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RequestWorkersProcessCommandsStack(), and G4TaskRunManager::RequestWorkersProcessCommandsStack().
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 298 of file G4MTRunManager.cc.
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 478 of file G4MTRunManager.cc.
Referenced by SetUpAnEvent(), and SetUpNEvents().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 792 of file G4MTRunManager.cc.
Referenced by G4RunMessenger::SetNewValue(), and TerminateWorkers().
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from G4RunManager.
Definition at line 221 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 504 of file G4MTRunManager.cc.
|
static |
Definition at line 108 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::GenerateEvent(), G4WorkerTaskRunManager::GenerateEvent(), G4RunMessenger::GetCurrentValue(), G4TaskRunManager::InitializeEventLoop(), G4TaskRunManager::RefillSeeds(), and G4TaskRunManager::SetUpNEvents().
|
inline |
Definition at line 187 of file G4MTRunManager.hh.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 261 of file G4MTRunManager.cc.
Referenced by G4RunManagerFactory::CreateRunManager().
void G4MTRunManager::SetPinAffinity | ( | G4int | n = 1 | ) |
Definition at line 807 of file G4MTRunManager.cc.
|
static |
Definition at line 114 of file G4MTRunManager.cc.
Referenced by G4TaskRunManager::InitializeEventLoop(), and G4RunMessenger::SetNewValue().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 637 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::GenerateEvent(), and G4WorkerTaskRunManager::GenerateEvent().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 663 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::GenerateEvent(), and G4WorkerTaskRunManager::GenerateEvent().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 589 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 571 of file G4MTRunManager.cc.
Referenced by G4TheMTRayTracer::RestoreUserActions(), and G4TheMTRayTracer::StoreUserActions().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 597 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 613 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 605 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 579 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 537 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 543 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 550 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 565 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 558 of file G4MTRunManager.cc.
Referenced by G4TheMTRayTracer::RestoreUserActions(), and G4TheMTRayTracer::StoreUserActions().
|
protectedvirtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 213 of file G4MTRunManager.cc.
|
virtual |
Reimplemented from G4RunManager.
Reimplemented in G4TaskRunManager.
Definition at line 304 of file G4MTRunManager.cc.
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 699 of file G4MTRunManager.cc.
Referenced by ~G4MTRunManager().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 767 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::RunTermination(), and G4WorkerTaskRunManager::RunTermination().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 801 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::DoWork(), and G4TaskRunManager::RequestWorkersProcessCommandsStack().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 753 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::RunInitialization(), and G4WorkerTaskRunManager::RunInitialization().
|
virtual |
Reimplemented in G4TaskRunManager.
Definition at line 785 of file G4MTRunManager.cc.
Referenced by G4WorkerRunManager::DoWork().
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 759 of file G4MTRunManager.cc.
Referenced by RunTermination().
|
protectedvirtual |
Reimplemented in G4TaskRunManager.
Definition at line 745 of file G4MTRunManager.cc.
Referenced by InitializeEventLoop().
|
friend |
Definition at line 60 of file G4MTRunManager.hh.
|
protected |
Definition at line 274 of file G4MTRunManager.hh.
Referenced by ThisWorkerReady(), WaitForEndEventLoopWorkers(), and WaitForReadyWorkers().
|
protected |
Definition at line 275 of file G4MTRunManager.hh.
Referenced by ThisWorkerEndEventLoop(), WaitForEndEventLoopWorkers(), and WaitForReadyWorkers().
|
protected |
Definition at line 249 of file G4MTRunManager.hh.
Referenced by G4TaskRunManager::ComputeNumberOfTasks(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 248 of file G4MTRunManager.hh.
Referenced by G4TaskRunManager::ComputeNumberOfTasks(), GetEventModulo(), InitializeEventLoop(), and SetEventModulo().
|
staticprotected |
Definition at line 243 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), GetMasterRunManager(), GetMasterRunManagerKernel(), and GetMTMasterRunManagerKernel().
|
protected |
Definition at line 235 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), SetNumberOfThreads(), and G4TaskRunManager::SetNumberOfThreads().
|
staticprotected |
Definition at line 240 of file G4MTRunManager.hh.
Referenced by ConstructScoringWorlds(), G4TaskRunManager::ConstructScoringWorlds(), G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), GetMasterScoringManager(), MergeScores(), and G4TaskRunManager::MergeScores().
|
staticprotected |
Definition at line 256 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), and GetMasterThreadId().
|
staticprotected |
Definition at line 242 of file G4MTRunManager.hh.
Referenced by addWorld(), ConstructScoringWorlds(), G4TaskRunManager::ConstructScoringWorlds(), and GetMasterWorlds().
|
protected |
Definition at line 246 of file G4MTRunManager.hh.
Referenced by NewActionRequest(), and ThisWorkerWaitForNextAction().
|
protected |
Definition at line 276 of file G4MTRunManager.hh.
Referenced by NewActionRequest(), and ThisWorkerWaitForNextAction().
|
protected |
Definition at line 251 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), G4TaskRunManager::SetUpAnEvent(), SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 252 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), and G4TaskRunManager::RefillSeeds().
|
protected |
Definition at line 253 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 250 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), G4TaskRunManager::SetUpAnEvent(), SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 238 of file G4MTRunManager.hh.
Referenced by G4TaskRunManager::ComputeNumberOfTasks(), G4TaskRunManager::CreateAndStartWorkers(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), G4TaskRunManager::SetUpAnEvent(), SetUpAnEvent(), SetUpNEvents(), and G4TaskRunManager::SetUpNEvents().
|
protected |
Definition at line 232 of file G4MTRunManager.hh.
Referenced by CreateAndStartWorkers(), G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), GetNumberOfThreads(), InitializeEventLoop(), G4TaskRunManager::InitializeThreadPool(), RefillSeeds(), SetNumberOfThreads(), and G4TaskRunManager::SetNumberOfThreads().
|
protected |
Definition at line 277 of file G4MTRunManager.hh.
Referenced by RequestWorkersProcessCommandsStack(), and ThisWorkerProcessCommandsStackDone().
|
protected |
Definition at line 254 of file G4MTRunManager.hh.
Referenced by G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), InitializeEventLoop(), G4TaskRunManager::InitializeEventLoop(), RefillSeeds(), G4TaskRunManager::RefillSeeds(), and ~G4MTRunManager().
|
staticprotected |
Definition at line 257 of file G4MTRunManager.hh.
Referenced by InitializeEventLoop(), RefillSeeds(), SeedOncePerCommunication(), SetSeedOncePerCommunication(), and SetUpNEvents().