Geant4-11
|
#include <G4RunManagerKernel.hh>
Public Types | |
enum | RMKType { sequentialRMK , masterRMK , workerRMK } |
Static Public Member Functions | |
static G4RunManagerKernel * | GetRunManagerKernel () |
Protected Member Functions | |
void | BuildPhysicsTables (G4bool fakeRun) |
void | CheckRegions () |
G4RunManagerKernel (RMKType rmkType) | |
void | PropagateGenericIonID () |
void | ResetNavigator () |
void | SetupDefaultRegion () |
void | SetupPhysics () |
virtual void | SetupShadowProcess () const |
Protected Attributes | |
G4Region * | defaultRegion = nullptr |
G4Region * | defaultRegionForParallelWorld = nullptr |
G4bool | geometryNeedsToBeClosed = true |
RMKType | runManagerKernelType |
Private Member Functions | |
void | CheckRegularGeometry () |
G4bool | ConfirmCoupledTransportation () |
void | SetScoreSplitter () |
Private Attributes | |
G4VPhysicalVolume * | currentWorld = nullptr |
G4ExceptionHandler * | defaultExceptionHandler = nullptr |
G4EventManager * | eventManager = nullptr |
G4bool | geometryInitialized = false |
G4bool | geometryToBeOptimized = true |
G4int | numberOfParallelWorld = 0 |
G4int | numberOfStaticAllocators = 0 |
G4bool | physicsInitialized = false |
G4VUserPhysicsList * | physicsList = nullptr |
G4bool | physicsNeedsToBeReBuilt = true |
G4int | verboseLevel = 0 |
G4String | versionString = "" |
Static Private Attributes | |
static G4ThreadLocal G4RunManagerKernel * | fRunManagerKernel = nullptr |
Definition at line 64 of file G4RunManagerKernel.hh.
Enumerator | |
---|---|
sequentialRMK | |
masterRMK | |
workerRMK |
Definition at line 176 of file G4RunManagerKernel.hh.
G4RunManagerKernel::G4RunManagerKernel | ( | ) |
Definition at line 104 of file G4RunManagerKernel.cc.
References defaultExceptionHandler, defaultRegion, defaultRegionForParallelWorld, G4Backtrace::Enable(), G4ParticleTable::entries(), eventManager, FatalException, fRunManagerKernel, G4cout, G4Date, G4endl, G4Exception(), G4State_PreInit, G4Version, G4AllocatorList::GetAllocatorListIfExist(), G4ParticleTable::GetParticle(), G4ParticleDefinition::GetParticleName(), G4ParticleTable::GetParticleTable(), G4ProductionCutsTable::GetProductionCutsTable(), G4StateManager::GetStateManager(), InvalidOperationDetection(), numberOfStaticAllocators, runManagerKernelType, sequentialRMK, G4StateManager::SetNewState(), G4Region::SetProductionCuts(), G4AllocatorList::Size(), and versionString.
|
virtual |
Definition at line 353 of file G4RunManagerKernel.cc.
References G4UnitDefinition::ClearUnitsTable(), defaultExceptionHandler, G4AllocatorList::Destroy(), eventManager, fRunManagerKernel, G4cout, G4endl, G4State_Quit, G4AllocatorList::GetAllocatorListIfExist(), G4StateManager::GetCurrentState(), G4GeometryManager::GetInstance(), G4NavigationHistoryPool::GetInstance(), G4FieldManagerStore::GetInstanceIfExist(), G4GeometryManager::GetInstanceIfExist(), G4PathFinder::GetInstanceIfExist(), G4TransportationManager::GetInstanceIfExist(), G4ParallelWorldProcessStore::GetInstanceIfExist(), G4TemplateRNGHelper< T >::GetInstanceIfExist(), G4SDManager::GetSDMpointerIfExist(), G4StateManager::GetStateManager(), G4UImanager::GetUIpointer(), numberOfStaticAllocators, G4GeometryManager::OpenGeometry(), G4NavigationHistoryPool::Print(), runManagerKernelType, G4StateManager::SetNewState(), verboseLevel, and workerRMK.
|
protected |
Definition at line 197 of file G4RunManagerKernel.cc.
References defaultExceptionHandler, defaultRegion, defaultRegionForParallelWorld, G4Backtrace::Enable(), eventManager, FatalException, fRunManagerKernel, G4cout, G4Date, G4endl, G4Exception(), G4State_PreInit, G4Version, G4RegionStore::GetInstance(), G4ProductionCutsTable::GetProductionCutsTable(), G4RegionStore::GetRegion(), G4StateManager::GetStateManager(), G4UnitDefinition::GetUnitsTable(), InvalidOperationDetection(), G4Threading::IsMasterThread(), masterRMK, runManagerKernelType, G4StateManager::SetNewState(), G4Region::SetProductionCuts(), verboseLevel, versionString, and workerRMK.
|
protected |
Definition at line 895 of file G4RunManagerKernel.cc.
References G4UImanager::ApplyCommand(), G4VUserPhysicsList::BuildPhysicsTable(), G4VUserPhysicsList::DumpCutValuesTable(), G4VUserPhysicsList::DumpCutValuesTableIfRequested(), DumpRegion(), G4ProductionCutsTable::GetProductionCutsTable(), G4UImanager::GetUIpointer(), masterRMK, physicsList, physicsNeedsToBeReBuilt, runManagerKernelType, and verboseLevel.
Referenced by RunInitialization().
|
protected |
Definition at line 922 of file G4RunManagerKernel.cc.
References G4Region::AddRootLogicalVolume(), G4Region::BelongsTo(), currentWorld, defaultRegionForParallelWorld, G4cout, G4endl, G4ProductionCutsTable::GetDefaultProductionCuts(), G4RegionStore::GetInstance(), G4Region::GetName(), G4TransportationManager::GetNoWorlds(), G4Region::GetProductionCuts(), G4ProductionCutsTable::GetProductionCutsTable(), G4LogicalVolume::GetRegion(), G4TransportationManager::GetTransportationManager(), G4TransportationManager::GetWorldsIterator(), G4Region::IsInMassGeometry(), G4Region::IsInParallelGeometry(), G4Region::SetProductionCuts(), G4LogicalVolume::SetRegion(), G4Region::SetWorld(), G4Region::UsedInMassGeometry(), G4Region::UsedInParallelGeometry(), and verboseLevel.
Referenced by InitializePhysics(), and UpdateRegion().
|
private |
Definition at line 1090 of file G4RunManagerKernel.cc.
References G4LogicalVolumeStore::GetInstance(), pos, and SetScoreSplitter().
Referenced by RunInitialization().
|
private |
Definition at line 1107 of file G4RunManagerKernel.cc.
References G4ProcessManager::GetAlongStepProcessVector(), G4ParticleTable::GetIterator(), G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetProcessManager(), G4VProcess::GetProcessName(), theParticleIterator, and typeDoIt.
void G4RunManagerKernel::DefineWorldVolume | ( | G4VPhysicalVolume * | worldVol, |
G4bool | topologyIsChanged = true |
||
) |
Definition at line 520 of file G4RunManagerKernel.cc.
References G4Region::AddRootLogicalVolume(), currentWorld, defaultRegion, FatalException, G4cout, G4endl, G4Exception(), G4State_Idle, G4State_Init, G4State_PreInit, G4VVisManager::GeometryHasChanged(), geometryInitialized, geometryNeedsToBeClosed, G4VVisManager::GetConcreteInstance(), G4StateManager::GetCurrentState(), G4VPhysicalVolume::GetLogicalVolume(), G4LogicalVolume::GetName(), G4Region::GetName(), G4LogicalVolume::GetRegion(), G4StateManager::GetStateManager(), G4StateManager::GetStateString(), G4TransportationManager::GetTransportationManager(), G4Threading::IsMasterThread(), physicsInitialized, G4StateManager::SetNewState(), G4LogicalVolume::SetRegion(), SetupDefaultRegion(), G4TransportationManager::SetWorldForTracking(), and verboseLevel.
Referenced by G4RunManager::DefineWorldVolume(), G4ErrorRunManagerHelper::InitializeGeometry(), and G4RunManager::InitializeGeometry().
void G4RunManagerKernel::DumpRegion | ( | const G4String & | rname | ) | const |
Definition at line 999 of file G4RunManagerKernel.cc.
References DumpRegion(), G4RegionStore::GetInstance(), and G4RegionStore::GetRegion().
Referenced by BuildPhysicsTables(), G4RunManager::DumpRegion(), and DumpRegion().
void G4RunManagerKernel::DumpRegion | ( | G4Region * | region = nullptr | ) | const |
Definition at line 1007 of file G4RunManagerKernel.cc.
References DumpRegion(), G4BestUnit, G4cerr, G4cout, G4endl, G4Region::GetFastSimulationManager(), G4RegionStore::GetInstance(), G4Region::GetMaterialIterator(), G4Region::GetName(), G4VPhysicalVolume::GetName(), G4Region::GetNumberOfMaterials(), G4Region::GetNumberOfRootVolumes(), G4ProductionCuts::GetProductionCut(), G4Region::GetProductionCuts(), G4ProductionCutsTable::GetProductionCutsTable(), G4Region::GetRegionalSteppingAction(), G4Region::GetRootLogicalVolumeIterator(), G4Region::GetUserInformation(), G4Region::GetUserLimits(), G4Region::GetWorldPhysical(), G4Region::IsInMassGeometry(), G4Region::IsInParallelGeometry(), G4Threading::IsWorkerThread(), and G4Region::SetProductionCuts().
|
inline |
Definition at line 119 of file G4RunManagerKernel.hh.
References geometryNeedsToBeClosed.
Referenced by G4RunManager::GeometryHasBeenModified(), G4RunManager::ReinitializeGeometry(), and G4RunManager::SetGeometryToBeOptimized().
|
inline |
Definition at line 169 of file G4RunManagerKernel.hh.
References currentWorld.
Referenced by G4WorkerRunManager::InitializeGeometry().
|
inline |
Definition at line 130 of file G4RunManagerKernel.hh.
References eventManager.
Referenced by G4RunManager::G4RunManager().
|
inline |
Definition at line 161 of file G4RunManagerKernel.hh.
References numberOfParallelWorld.
Referenced by G4PhysicsListHelper::AddTransportation(), and G4WorkerRunManager::InitializeGeometry().
|
inline |
Definition at line 171 of file G4RunManagerKernel.hh.
References numberOfStaticAllocators.
Referenced by G4MTRunManager::G4MTRunManager(), and G4TaskRunManager::G4TaskRunManager().
|
inline |
|
inline |
Definition at line 143 of file G4RunManagerKernel.hh.
References eventManager, and G4EventManager::GetPrimaryTransformer().
Referenced by RunInitialization().
|
static |
Definition at line 98 of file G4RunManagerKernel.cc.
References fRunManagerKernel.
Referenced by G4PhysicsListHelper::AddTransportation(), G4VisManager::Disable(), G4MaterialScanner::DoScan(), G4ExceptionHandler::DumpTrackInfo(), export_G4RunManagerKernel(), and G4ErrorRunManagerHelper::G4ErrorRunManagerHelper().
|
inline |
Definition at line 131 of file G4RunManagerKernel.hh.
References eventManager, and G4EventManager::GetStackManager().
|
inline |
Definition at line 135 of file G4RunManagerKernel.hh.
References eventManager, and G4EventManager::GetTrackingManager().
Referenced by G4VisManager::Disable(), and G4ExceptionHandler::DumpTrackInfo().
|
inline |
Definition at line 148 of file G4RunManagerKernel.hh.
References versionString.
Referenced by G4RunManager::GetVersionString().
void G4RunManagerKernel::InitializePhysics | ( | ) |
Definition at line 673 of file G4RunManagerKernel.cc.
References G4VUserPhysicsList::CheckParticleList(), CheckRegions(), G4VUserPhysicsList::Construct(), FatalException, G4cout, G4endl, G4Exception(), G4State_Idle, G4State_Init, G4State_PreInit, geometryInitialized, G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), G4StateManager::GetStateString(), G4UnitDefinition::GetUnitsTable(), anonymous_namespace{G4RunManagerKernel.cc}::initphysicsmutex, G4Threading::IsMasterThread(), numberOfParallelWorld, physicsInitialized, physicsList, G4VUserPhysicsList::SetCuts(), G4StateManager::SetNewState(), G4TemplateAutoLock< _Mutex_t >::unlock(), G4VUserPhysicsList::UseCoupledTransportation(), and verboseLevel.
Referenced by G4ErrorRunManagerHelper::InitializePhysics(), and G4RunManager::InitializePhysics().
|
inline |
Definition at line 124 of file G4RunManagerKernel.hh.
References physicsNeedsToBeReBuilt.
Referenced by G4RunManager::PhysicsHasBeenModified().
|
protected |
Definition at line 820 of file G4RunManagerKernel.cc.
References G4ParticleTable::GetGenericIon(), G4ParticleTable::GetIterator(), G4ParticleDefinition::GetParticleDefinitionID(), G4ParticleTable::GetParticleTable(), G4ParticleDefinition::IsGeneralIon(), G4ParticleTableIterator< K, V >::reset(), and G4ParticleDefinition::SetParticleDefinitionID().
Referenced by RunInitialization().
|
protected |
Definition at line 848 of file G4RunManagerKernel.cc.
References G4GeometryManager::CloseGeometry(), G4cout, G4endl, geometryNeedsToBeClosed, geometryToBeOptimized, G4GeometryManager::GetInstance(), G4GeometryManager::OpenGeometry(), runManagerKernelType, verboseLevel, and workerRMK.
Referenced by RunInitialization().
Definition at line 761 of file G4RunManagerKernel.cc.
References BuildPhysicsTables(), CheckRegularGeometry(), G4PrimaryTransformer::CheckUnknown(), G4Exception(), G4State_GeomClosed, G4State_Idle, G4State_Init, G4VVisManager::GeometryHasChanged(), geometryInitialized, geometryNeedsToBeClosed, G4VVisManager::GetConcreteInstance(), G4StateManager::GetCurrentState(), GetPrimaryTransformer(), G4StateManager::GetStateManager(), G4UnitDefinition::GetUnitsTable(), G4Threading::IsMasterThread(), JustWarning, physicsInitialized, PropagateGenericIonID(), ResetNavigator(), G4StateManager::SetNewState(), SetupShadowProcess(), and UpdateRegion().
Referenced by export_G4RunManagerKernel(), G4ErrorRunManagerHelper::RunInitialization(), G4RunManager::RunInitialization(), G4WorkerRunManager::RunInitialization(), and G4WorkerTaskRunManager::RunInitialization().
void G4RunManagerKernel::RunTermination | ( | ) |
Definition at line 840 of file G4RunManagerKernel.cc.
References G4State_Idle, G4ProductionCutsTable::GetProductionCutsTable(), G4StateManager::GetStateManager(), G4ProductionCutsTable::PhysicsTableUpdated(), runManagerKernelType, G4StateManager::SetNewState(), and workerRMK.
Referenced by G4ErrorRunManagerHelper::RunTermination(), and G4RunManager::RunTermination().
|
inline |
Definition at line 152 of file G4RunManagerKernel.hh.
References geometryNeedsToBeClosed, and geometryToBeOptimized.
Referenced by G4RunManager::SetGeometryToBeOptimized().
|
inline |
Definition at line 165 of file G4RunManagerKernel.hh.
References numberOfParallelWorld.
Referenced by G4RunManager::InitializeGeometry(), and G4WorkerRunManager::InitializeGeometry().
void G4RunManagerKernel::SetPhysics | ( | G4VUserPhysicsList * | uPhys | ) |
Definition at line 596 of file G4RunManagerKernel.cc.
References G4ParticleTable::DumpTable(), G4ParticleTable::entries(), G4cout, G4endl, G4ParticleTable::GetParticle(), G4ParticleDefinition::GetParticleName(), G4ParticleTable::GetParticleTable(), physicsList, runManagerKernelType, SetupPhysics(), verboseLevel, and workerRMK.
Referenced by G4ErrorRunManagerHelper::InitializePhysics(), and G4RunManager::SetUserInitialization().
|
inline |
Definition at line 139 of file G4RunManagerKernel.hh.
References eventManager, and G4EventManager::SetPrimaryTransformer().
Referenced by G4RunManager::SetPrimaryTransformer().
|
private |
Definition at line 1127 of file G4RunManagerKernel.cc.
References G4ProcessManager::AddDiscreteProcess(), G4cout, G4endl, G4ThreadLocal, G4ParticleTable::GetIterator(), G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetProcessManager(), theParticleIterator, and verboseLevel.
Referenced by CheckRegularGeometry().
|
protected |
Definition at line 330 of file G4RunManagerKernel.cc.
References defaultRegion, FatalException, G4cout, G4endl, G4Exception(), G4Region::GetNumberOfRootVolumes(), G4Region::GetRootLogicalVolumeIterator(), G4Region::RemoveRootLogicalVolume(), runManagerKernelType, verboseLevel, and workerRMK.
Referenced by DefineWorldVolume().
|
protected |
Definition at line 625 of file G4RunManagerKernel.cc.
References G4IonConstructor::ConstructParticle(), G4VUserPhysicsList::ConstructParticle(), G4Geantino::GeantinoDefinition(), G4ParticleTable::GetGenericIon(), G4ParticleTable::GetIonTable(), G4ParticleTable::GetIterator(), G4ParticleDefinition::GetParticleDefinitionID(), G4ParticleTable::GetParticleTable(), G4UnitDefinition::GetUnitsTable(), G4IonTable::InitializeLightIons(), G4ParticleDefinition::IsGeneralIon(), physicsList, G4ParticleTableIterator< K, V >::reset(), G4ParticleDefinition::SetParticleDefinitionID(), and G4ParticleTable::SetReadiness().
Referenced by SetPhysics().
|
protectedvirtual |
Reimplemented in G4MTRunManagerKernel, G4WorkerRunManagerKernel, G4TaskRunManagerKernel, and G4WorkerTaskRunManagerKernel.
Definition at line 1161 of file G4RunManagerKernel.cc.
References G4ParticleTable::GetIterator(), G4ParticleTable::GetParticleTable(), G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), G4ProcessVector::size(), and theParticleIterator.
Referenced by RunInitialization(), G4MTRunManagerKernel::SetupShadowProcess(), and G4TaskRunManagerKernel::SetupShadowProcess().
|
inline |
Definition at line 150 of file G4RunManagerKernel.hh.
References verboseLevel.
Referenced by G4ErrorRunManagerHelper::G4ErrorRunManagerHelper(), and G4RunManager::SetVerboseLevel().
void G4RunManagerKernel::UpdateRegion | ( | ) |
Definition at line 872 of file G4RunManagerKernel.cc.
References CheckRegions(), currentWorld, G4Exception(), G4State_Init, G4StateManager::GetCurrentState(), G4RegionStore::GetInstance(), G4ProductionCutsTable::GetProductionCutsTable(), G4StateManager::GetStateManager(), JustWarning, runManagerKernelType, G4ProductionCutsTable::UpdateCoupleTable(), G4RegionStore::UpdateMaterialList(), and workerRMK.
Referenced by G4MaterialScanner::DoScan(), and RunInitialization().
void G4RunManagerKernel::WorkerDefineWorldVolume | ( | G4VPhysicalVolume * | worldVol, |
G4bool | topologyIsChanged = true |
||
) |
Definition at line 455 of file G4RunManagerKernel.cc.
References currentWorld, FatalException, G4cout, G4endl, G4Exception(), G4State_Idle, G4State_Init, G4State_PreInit, G4VVisManager::GeometryHasChanged(), geometryInitialized, geometryNeedsToBeClosed, G4VVisManager::GetConcreteInstance(), G4StateManager::GetCurrentState(), G4MTRunManager::GetMasterRunManager(), G4MTRunManager::GetMasterWorlds(), G4StateManager::GetStateManager(), G4StateManager::GetStateString(), G4TransportationManager::GetTransportationManager(), G4Threading::IsMasterThread(), physicsInitialized, G4TransportationManager::RegisterWorld(), G4StateManager::SetNewState(), and G4TransportationManager::SetWorldForTracking().
Referenced by G4WorkerRunManager::InitializeGeometry().
void G4RunManagerKernel::WorkerUpdateWorldVolume | ( | ) |
Definition at line 434 of file G4RunManagerKernel.cc.
References G4MTRunManager::GetMasterRunManager(), G4MTRunManager::GetMasterWorlds(), G4VPhysicalVolume::GetName(), G4TransportationManager::GetTransportationManager(), G4TransportationManager::IsWorldExisting(), and G4TransportationManager::RegisterWorld().
Referenced by G4WorkerRunManager::ConstructScoringWorlds().
|
private |
Definition at line 218 of file G4RunManagerKernel.hh.
Referenced by CheckRegions(), DefineWorldVolume(), GetCurrentWorld(), UpdateRegion(), and WorkerDefineWorldVolume().
|
private |
Definition at line 227 of file G4RunManagerKernel.hh.
Referenced by G4RunManagerKernel(), and ~G4RunManagerKernel().
|
protected |
Definition at line 211 of file G4RunManagerKernel.hh.
Referenced by DefineWorldVolume(), G4RunManagerKernel(), and SetupDefaultRegion().
|
protected |
Definition at line 212 of file G4RunManagerKernel.hh.
Referenced by CheckRegions(), and G4RunManagerKernel().
|
private |
Definition at line 226 of file G4RunManagerKernel.hh.
Referenced by G4RunManagerKernel(), GetEventManager(), GetPrimaryTransformer(), GetStackManager(), GetTrackingManager(), SetPrimaryTransformer(), and ~G4RunManagerKernel().
|
staticprivate |
Definition at line 230 of file G4RunManagerKernel.hh.
Referenced by G4RunManagerKernel(), GetRunManagerKernel(), and ~G4RunManagerKernel().
|
private |
Definition at line 219 of file G4RunManagerKernel.hh.
Referenced by DefineWorldVolume(), InitializePhysics(), RunInitialization(), and WorkerDefineWorldVolume().
|
protected |
Definition at line 213 of file G4RunManagerKernel.hh.
Referenced by DefineWorldVolume(), GeometryHasBeenModified(), ResetNavigator(), RunInitialization(), SetGeometryToBeOptimized(), and WorkerDefineWorldVolume().
|
private |
Definition at line 221 of file G4RunManagerKernel.hh.
Referenced by ResetNavigator(), and SetGeometryToBeOptimized().
|
private |
Definition at line 224 of file G4RunManagerKernel.hh.
Referenced by GetNumberOfParallelWorld(), InitializePhysics(), and SetNumberOfParallelWorld().
|
private |
Definition at line 232 of file G4RunManagerKernel.hh.
Referenced by G4RunManagerKernel(), GetNumberOfStaticAllocators(), and ~G4RunManagerKernel().
|
private |
Definition at line 220 of file G4RunManagerKernel.hh.
Referenced by DefineWorldVolume(), InitializePhysics(), RunInitialization(), and WorkerDefineWorldVolume().
|
private |
Definition at line 217 of file G4RunManagerKernel.hh.
Referenced by BuildPhysicsTables(), GetPhysicsList(), InitializePhysics(), SetPhysics(), and SetupPhysics().
|
private |
Definition at line 222 of file G4RunManagerKernel.hh.
Referenced by BuildPhysicsTables(), and PhysicsHasBeenModified().
|
protected |
Definition at line 210 of file G4RunManagerKernel.hh.
Referenced by BuildPhysicsTables(), G4RunManagerKernel(), ResetNavigator(), RunTermination(), SetPhysics(), SetupDefaultRegion(), UpdateRegion(), and ~G4RunManagerKernel().
|
private |
Definition at line 223 of file G4RunManagerKernel.hh.
Referenced by BuildPhysicsTables(), CheckRegions(), DefineWorldVolume(), G4RunManagerKernel(), InitializePhysics(), ResetNavigator(), SetPhysics(), SetScoreSplitter(), SetupDefaultRegion(), SetVerboseLevel(), and ~G4RunManagerKernel().
|
private |
Definition at line 228 of file G4RunManagerKernel.hh.
Referenced by G4RunManagerKernel(), and GetVersionString().