Geant4
10.00.p01
|
#include <G4WorkerRunManager.hh>
Static Public Member Functions | |
static G4WorkerRunManager * | GetWorkerRunManager () |
static G4WorkerRunManagerKernel * | GetWorkerRunManagerKernel () |
Static Public Member Functions inherited from G4RunManager | |
static G4RunManager * | GetRunManager () |
Protected Member Functions | |
virtual void | ConstructScoringWorlds () |
virtual void | StoreRNGStatus (const G4String &filenamePrefix) |
virtual void | MergePartialResults () |
Protected Member Functions inherited from G4RunManager | |
void | StackPreviousEvent (G4Event *anEvent) |
G4RunManager (RMType rmType) | |
void | UpdateScoring () |
virtual void | DeleteUserInitializations () |
Private Member Functions | |
void | SetupDefaultRNGEngine () |
Private Attributes | |
G4WorkerThread * | workerContext |
Additional Inherited Members | |
Public Types inherited from G4RunManager | |
enum | RMType { sequentialRM, masterRM, workerRM } |
Definition at line 47 of file G4WorkerRunManager.hh.
G4WorkerRunManager::G4WorkerRunManager | ( | ) |
Definition at line 56 of file G4WorkerRunManager.cc.
References currEvID, eventLoopOnGoing, FatalException, G4Exception(), G4VVisManager::GetConcreteInstance(), G4MTRunManager::GetMasterScoringManager(), G4ParticleTable::GetParticleTable(), G4ScoringManager::GetScoringManager(), G4UImanager::GetUIpointer(), nevModulo, G4UImanager::SetIgnoreCmdNotFound(), and G4ParticleTable::WorkerG4ParticleTable().
G4WorkerRunManager::~G4WorkerRunManager | ( | ) |
Definition at line 88 of file G4WorkerRunManager.cc.
References G4cout, G4endl, G4RunManager::physicsList, G4VUserPhysicsList::RemoveProcessManager(), G4RunManager::userActionInitialization, G4RunManager::userDetector, G4RunManager::userWorkerInitialization, G4RunManager::userWorkerThreadInitialization, and G4RunManager::verboseLevel.
|
protectedvirtual |
Reimplemented from G4RunManager.
Reimplemented in tbbWorkerRunManager.
Definition at line 377 of file G4WorkerRunManager.cc.
References G4ProcessManager::AddProcess(), assert, FatalException, G4Exception(), G4ParticleTable::GetIterator(), G4MTRunManager::GetMasterScoringManager(), G4ScoringManager::GetMesh(), G4VScoringMesh::GetMeshElementLogical(), G4ScoringManager::GetNumberOfMesh(), G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetProcessManager(), G4ScoringManager::GetScoringManagerIfExist(), G4TransportationManager::GetTransportationManager(), G4ScoringManager::GetWorldName(), idxAlongStep, idxAtRest, idxPostStep, G4ParallelWorldProcess::IsAtRestRequired(), G4TransportationManager::IsWorldExisting(), G4RunManager::kernel, G4ParticleTableIterator< K, V >::reset(), G4VScoringMesh::SetMeshElementLogical(), G4ParallelWorldProcess::SetParallelWorld(), G4ProcessManager::SetProcessOrdering(), G4ProcessManager::SetProcessOrderingToSecond(), G4TemplateAutoLock< M, L, U >::unlock(), G4ParticleTableIterator< K, V >::value(), G4VScoringMesh::WorkerConstruct(), and G4RunManagerKernel::WorkerUpdateWorldVolume().
Referenced by tbbWorkerRunManager::ConstructScoringWorlds().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 193 of file G4WorkerRunManager.cc.
References currEvID, eventLoopOnGoing, FatalException, G4Exception(), G4RunManager::InitializeEventLoop(), nevModulo, ProcessOneEvent(), G4RunManager::runAborted, seedsQueue, G4RunManager::TerminateEventLoop(), G4RunManager::TerminateOneEvent(), and G4RunManager::userPrimaryGeneratorAction.
Reimplemented from G4RunManager.
Definition at line 247 of file G4WorkerRunManager.cc.
References G4RunManager::currentRun, currEvID, eventLoopOnGoing, G4cout, G4endl, G4VUserPrimaryGeneratorAction::GeneratePrimaries(), G4Event::GetEventID(), G4MTRunManager::GetEventModulo(), G4TemplateRNGHelper< T >::GetInstance(), G4MTRunManager::GetMasterRunManager(), G4Run::GetRunID(), G4TemplateRNGHelper< T >::GetSeed(), nevModulo, G4RunManager::printModulo, G4RunManager::randomNumberStatusForThisEvent, G4RunManager::rngStatusEventsFlag, seedsQueue, G4Event::SetEventID(), G4Event::SetRandomNumberStatus(), G4MTRunManager::SetUpAnEvent(), G4MTRunManager::SetUpNEvents(), G4RunManager::storeRandomNumberStatus, G4RunManager::storeRandomNumberStatusToG4Event, StoreRNGStatus(), and G4RunManager::userPrimaryGeneratorAction.
Referenced by ProcessOneEvent().
|
static |
Definition at line 50 of file G4WorkerRunManager.cc.
References G4RunManager::GetRunManager().
Referenced by GetWorkerRunManagerKernel(), G4RTWorkerInitialization::WorkerRunEnd(), and G4RTWorkerInitialization::WorkerRunStart().
|
static |
Definition at line 53 of file G4WorkerRunManager.cc.
References GetWorkerRunManager(), and G4RunManager::kernel.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 104 of file G4WorkerRunManager.cc.
References G4VUserDetectorConstruction::ConstructParallelSD(), G4VUserDetectorConstruction::ConstructSDandField(), FatalException, G4Exception(), G4RunManager::geometryInitialized, G4RunManagerKernel::GetCurrentWorld(), G4MTRunManager::GetMasterRunManagerKernel(), G4RunManagerKernel::GetNumberOfParallelWorld(), G4RunManager::kernel, G4RunManagerKernel::SetNumberOfParallelWorld(), G4RunManager::userDetector, and G4RunManagerKernel::WorkerDefineWorldVolume().
|
protectedvirtual |
Reimplemented in tbbWorkerRunManager.
Definition at line 331 of file G4WorkerRunManager.cc.
References G4RunManager::currentRun, G4MTRunManager::GetMasterRunManager(), G4ScoringManager::GetScoringManagerIfExist(), G4MTRunManager::MergeRun(), and G4MTRunManager::MergeScores().
Referenced by RunTermination().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 235 of file G4WorkerRunManager.cc.
References G4RunManager::AnalyzeEvent(), G4UImanager::ApplyCommand(), G4RunManager::currentEvent, eventLoopOnGoing, G4RunManager::eventManager, GenerateEvent(), G4Event::GetEventID(), G4UImanager::GetUIpointer(), G4RunManager::msgText, G4RunManager::n_select_msg, G4EventManager::ProcessOneEvent(), and G4RunManager::UpdateScoring().
Referenced by DoEventLoop().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 123 of file G4WorkerRunManager.cc.
References G4UserRunAction::BeginOfRunAction(), G4RunManager::currentRun, G4RunManager::DCtable, G4RunManager::fakeRun, G4cout, G4endl, G4Threading::G4GetThreadId(), G4UserRunAction::GenerateRun(), G4VVisManager::GetConcreteInstance(), G4SDManager::GetHCtable(), G4MTRunManager::GetMasterRunManager(), G4Run::GetRunID(), G4SDManager::GetSDMpointerIfExist(), G4RunManager::GetUserWorkerInitialization(), G4RunManager::kernel, G4RunManager::n_perviousEventsToBeStored, G4RunManager::numberOfEventProcessed, G4RunManager::numberOfEventToBeProcessed, G4RunManager::previousEvents, G4RunManager::printModulo, G4RunManager::randomNumberStatusForThisRun, G4RunManager::rngStatusEventsFlag, G4RunManager::runAborted, G4RunManager::runIDCounter, G4RunManagerKernel::RunInitialization(), G4Run::SetDCtable(), G4Run::SetHCtable(), G4Run::SetNumberOfEventToBeProcessed(), G4Run::SetRandomNumberStatus(), G4Run::SetRunID(), G4RunManager::storeRandomNumberStatus, StoreRNGStatus(), G4MTRunManager::ThisWorkerReady(), G4RunManager::userRunAction, G4RunManager::verboseLevel, and G4UserWorkerInitialization::WorkerRunStart().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 340 of file G4WorkerRunManager.cc.
References G4RunManager::fakeRun, G4MTRunManager::GetMasterRunManager(), G4RunManager::GetUserWorkerInitialization(), MergePartialResults(), G4RunManager::RunTermination(), G4MTRunManager::ThisWorkerEndEventLoop(), and G4UserWorkerInitialization::WorkerRunEnd().
|
private |
Definition at line 472 of file G4WorkerRunManager.cc.
References assert, G4MTRunManager::getMasterRandomEngine(), G4MTRunManager::GetMasterRunManager(), G4RunManager::GetUserWorkerThreadInitialization(), and G4UserWorkerThreadInitialization::SetupRNGEngine().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 466 of file G4WorkerRunManager.cc.
References G4UserRunAction::SetMaster(), and G4RunManager::SetUserAction().
Referenced by G4RTWorkerInitialization::WorkerRunEnd(), and G4RTWorkerInitialization::WorkerRunStart().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 488 of file G4WorkerRunManager.cc.
References G4RunManager::SetUserAction().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 483 of file G4WorkerRunManager.cc.
References G4RunManager::SetUserAction().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 493 of file G4WorkerRunManager.cc.
References G4RunManager::SetUserAction().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 498 of file G4WorkerRunManager.cc.
References G4RunManager::SetUserAction().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 503 of file G4WorkerRunManager.cc.
References G4RunManager::SetUserAction().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 460 of file G4WorkerRunManager.cc.
References G4VUserPhysicsList::InitializeWorker(), and G4RunManager::SetUserInitialization().
Referenced by G4MTRunManagerKernel::StartThread().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 454 of file G4WorkerRunManager.cc.
References FatalException, and G4Exception().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 448 of file G4WorkerRunManager.cc.
References FatalException, and G4Exception().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 436 of file G4WorkerRunManager.cc.
References FatalException, and G4Exception().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 442 of file G4WorkerRunManager.cc.
References FatalException, and G4Exception().
|
inline |
Sets the worker context.
Definition at line 74 of file G4WorkerRunManager.hh.
References workerContext.
Referenced by G4MTRunManagerKernel::StartThread().
|
protectedvirtual |
Reimplemented from G4RunManager.
Definition at line 508 of file G4WorkerRunManager.cc.
References G4WorkerThread::GetThreadId(), G4RunManager::randomNumberStatusDir, and workerContext.
Referenced by GenerateEvent(), and RunInitialization().
|
protected |
Definition at line 95 of file G4WorkerRunManager.hh.
Referenced by DoEventLoop(), G4WorkerRunManager(), and GenerateEvent().
|
protected |
Definition at line 93 of file G4WorkerRunManager.hh.
Referenced by DoEventLoop(), G4WorkerRunManager(), GenerateEvent(), and ProcessOneEvent().
|
protected |
Definition at line 94 of file G4WorkerRunManager.hh.
Referenced by DoEventLoop(), G4WorkerRunManager(), and GenerateEvent().
|
protected |
Definition at line 96 of file G4WorkerRunManager.hh.
Referenced by DoEventLoop(), and GenerateEvent().
|
private |
Definition at line 76 of file G4WorkerRunManager.hh.
Referenced by SetWorkerThread(), and StoreRNGStatus().