Geant4
10.02
|
#include <G4WorkerRunManager.hh>
Static Public Member Functions | |
static G4WorkerRunManager * | GetWorkerRunManager () |
static G4WorkerRunManagerKernel * | GetWorkerRunManagerKernel () |
Static Public Member Functions inherited from G4RunManager | |
static G4RunManager * | GetRunManager () |
static G4bool | IfGeometryHasBeenDestroyed () |
Protected Member Functions | |
virtual void | ConstructScoringWorlds () |
virtual void | StoreRNGStatus (const G4String &filenamePrefix) |
virtual void | MergePartialResults () |
Protected Member Functions inherited from G4RunManager | |
void | CleanUpPreviousEvents () |
void | CleanUpUnnecessaryEvents (G4int keepNEvents) |
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 } |
Static Protected Attributes inherited from G4RunManager | |
static G4bool | fGeometryHasBeenDestroyed = false |
Definition at line 47 of file G4WorkerRunManager.hh.
G4WorkerRunManager::G4WorkerRunManager | ( | ) |
Definition at line 58 of file G4WorkerRunManager.cc.
References currEvID, eventLoopOnGoing, FatalException, G4Exception(), G4VVisManager::GetConcreteInstance(), G4MTRunManager::GetMasterScoringManager(), G4ParticleTable::GetParticleTable(), G4ScoringManager::GetScoringManager(), G4UImanager::GetUIpointer(), nevModulo, readStatusFromFile, runIsSeeded, G4UImanager::SetIgnoreCmdNotFound(), workerContext, and G4ParticleTable::WorkerG4ParticleTable().
G4WorkerRunManager::~G4WorkerRunManager | ( | ) |
Definition at line 93 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 441 of file G4WorkerRunManager.cc.
References G4ProcessManager::AddProcess(), FatalException, G4RunManager::fGeometryHasBeenDestroyed, G4Exception(), G4VScoringMesh::GeometryHasBeenDestroyed(), G4ParticleTable::GetIterator(), G4MTRunManager::GetMasterScoringManager(), G4ScoringManager::GetMesh(), G4VScoringMesh::GetMeshElementLogical(), G4ScoringManager::GetNumberOfMesh(), G4VScoringMesh::GetParallelWorldProcess(), 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(), G4VScoringMesh::SetParallelWorldProcess(), 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 204 of file G4WorkerRunManager.cc.
References currEvID, eventLoopOnGoing, FatalException, G4Exception(), G4RunManager::InitializeEventLoop(), nevModulo, ProcessOneEvent(), G4RunManager::runAborted, runIsSeeded, seedsQueue, TerminateEventLoop(), G4RunManager::TerminateOneEvent(), and G4RunManager::userPrimaryGeneratorAction.
|
virtual |
Definition at line 586 of file G4WorkerRunManager.cc.
References G4UImanager::ApplyCommand(), G4RunManager::BeamOn(), G4MTRunManager::ENDWORKER, FatalException, G4Exception(), G4ThreadLocal, G4MTRunManager::GetCommandStack(), G4MTRunManager::GetMasterRunManager(), G4RunManager::GetNumberOfEventsToBeProcessed(), G4RunManager::GetNumberOfSelectEvents(), G4RunManager::GetSelectMacro(), G4UImanager::GetUIpointer(), G4MTRunManager::NEXTITERATION, G4MTRunManager::ThisWorkerWaitForNextAction(), G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster(), and workerContext.
Referenced by G4MTRunManagerKernel::StartThread().
Reimplemented from G4RunManager.
Definition at line 260 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, readStatusFromFile, G4RunManager::rngStatusEventsFlag, runIsSeeded, G4MTRunManager::SeedOncePerCommunication(), seedsQueue, G4Event::SetEventID(), G4Event::SetRandomNumberStatus(), G4MTRunManager::SetUpAnEvent(), G4MTRunManager::SetUpNEvents(), G4RunManager::storeRandomNumberStatus, G4RunManager::storeRandomNumberStatusToG4Event, StoreRNGStatus(), and G4RunManager::userPrimaryGeneratorAction.
Referenced by ProcessOneEvent().
|
static |
Definition at line 52 of file G4WorkerRunManager.cc.
References G4RunManager::GetRunManager().
Referenced by GetWorkerRunManagerKernel(), G4RTWorkerInitialization::WorkerRunEnd(), and G4RTWorkerInitialization::WorkerRunStart().
|
static |
Definition at line 55 of file G4WorkerRunManager.cc.
References GetWorkerRunManager(), and G4RunManager::kernel.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 109 of file G4WorkerRunManager.cc.
References G4TransportationManager::ClearParallelWorlds(), G4VUserDetectorConstruction::ConstructParallelSD(), G4VUserDetectorConstruction::ConstructSDandField(), FatalException, G4RunManager::fGeometryHasBeenDestroyed, G4Exception(), G4RunManager::geometryInitialized, G4RunManagerKernel::GetCurrentWorld(), G4MTRunManager::GetMasterRunManagerKernel(), G4RunManagerKernel::GetNumberOfParallelWorld(), G4TransportationManager::GetTransportationManager(), G4RunManager::kernel, G4RunManagerKernel::SetNumberOfParallelWorld(), G4RunManager::userDetector, and G4RunManagerKernel::WorkerDefineWorldVolume().
|
protectedvirtual |
Reimplemented in tbbWorkerRunManager.
Definition at line 380 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 248 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().
|
inlinevirtual |
Reimplemented from G4RunManager.
Definition at line 106 of file G4WorkerRunManager.hh.
|
virtual |
Reimplemented from G4RunManager.
Definition at line 133 of file G4WorkerRunManager.cc.
References G4UserRunAction::BeginOfRunAction(), G4RunManager::CleanUpPreviousEvents(), G4RunManager::currentRun, G4RunManager::DCtable, G4RunManager::fakeRun, G4RunManager::fGeometryHasBeenDestroyed, G4cout, G4endl, G4Threading::G4GetThreadId(), G4UserRunAction::GenerateRun(), G4VVisManager::GetConcreteInstance(), G4SDManager::GetHCtable(), G4ParallelWorldProcessStore::GetInstance(), 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(), G4ParallelWorldProcessStore::UpdateWorlds(), G4RunManager::userRunAction, G4RunManager::verboseLevel, and G4UserWorkerInitialization::WorkerRunStart().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 389 of file G4WorkerRunManager.cc.
References G4RunManager::fakeRun, G4MTRunManager::GetMasterRunManager(), G4RunManager::GetUserWorkerInitialization(), MergePartialResults(), G4RunManager::RunTermination(), G4MTRunManager::ThisWorkerEndEventLoop(), and G4UserWorkerInitialization::WorkerRunEnd().
|
private |
Definition at line 543 of file G4WorkerRunManager.cc.
References G4MTRunManager::getMasterRandomEngine(), G4MTRunManager::GetMasterRunManager(), G4RunManager::GetUserWorkerThreadInitialization(), and G4UserWorkerThreadInitialization::SetupRNGEngine().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 537 of file G4WorkerRunManager.cc.
References G4UserRunAction::SetMaster(), and G4RunManager::SetUserAction().
Referenced by G4RTWorkerInitialization::WorkerRunEnd(), and G4RTWorkerInitialization::WorkerRunStart().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 559 of file G4WorkerRunManager.cc.
References G4RunManager::SetUserAction().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 554 of file G4WorkerRunManager.cc.
References G4RunManager::SetUserAction().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 564 of file G4WorkerRunManager.cc.
References G4RunManager::SetUserAction().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 569 of file G4WorkerRunManager.cc.
References G4RunManager::SetUserAction().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 574 of file G4WorkerRunManager.cc.
References G4RunManager::SetUserAction().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 531 of file G4WorkerRunManager.cc.
References G4VUserPhysicsList::InitializeWorker(), and G4RunManager::SetUserInitialization().
Referenced by G4MTRunManagerKernel::StartThread().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 525 of file G4WorkerRunManager.cc.
References FatalException, and G4Exception().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 519 of file G4WorkerRunManager.cc.
References FatalException, and G4Exception().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 507 of file G4WorkerRunManager.cc.
References FatalException, and G4Exception().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 513 of file G4WorkerRunManager.cc.
References FatalException, and G4Exception().
|
inline |
Sets the worker context.
Definition at line 79 of file G4WorkerRunManager.hh.
References workerContext.
Referenced by G4MTRunManagerKernel::StartThread().
|
protectedvirtual |
Reimplemented from G4RunManager.
Definition at line 579 of file G4WorkerRunManager.cc.
References G4WorkerThread::GetThreadId(), G4RunManager::randomNumberStatusDir, and workerContext.
Referenced by GenerateEvent(), and RunInitialization().
|
virtual |
Reimplemented from G4RunManager.
Definition at line 410 of file G4WorkerRunManager.cc.
References G4RunManager::fakeRun, G4cout, G4endl, G4RunManager::numberOfEventProcessed, G4RunManager::runAborted, G4Timer::Stop(), G4RunManager::timer, and G4RunManager::verboseLevel.
Referenced by DoEventLoop().
|
protected |
Definition at line 101 of file G4WorkerRunManager.hh.
Referenced by DoEventLoop(), G4WorkerRunManager(), and GenerateEvent().
|
protected |
Definition at line 98 of file G4WorkerRunManager.hh.
Referenced by DoEventLoop(), G4WorkerRunManager(), GenerateEvent(), and ProcessOneEvent().
|
protected |
Definition at line 100 of file G4WorkerRunManager.hh.
Referenced by DoEventLoop(), G4WorkerRunManager(), and GenerateEvent().
|
protected |
Definition at line 103 of file G4WorkerRunManager.hh.
Referenced by G4WorkerRunManager(), and GenerateEvent().
|
protected |
Definition at line 99 of file G4WorkerRunManager.hh.
Referenced by DoEventLoop(), G4WorkerRunManager(), and GenerateEvent().
|
protected |
Definition at line 102 of file G4WorkerRunManager.hh.
Referenced by DoEventLoop(), and GenerateEvent().
|
private |
Definition at line 81 of file G4WorkerRunManager.hh.
Referenced by DoWork(), G4WorkerRunManager(), SetWorkerThread(), and StoreRNGStatus().