Geant4
10.00.p03
|
#include <G4RunManagerKernel.hh>
Public Types | |
enum | RMKType { sequentialRMK, masterRMK, workerRMK } |
Static Public Member Functions | |
static G4RunManagerKernel * | GetRunManagerKernel () |
Protected Member Functions | |
G4RunManagerKernel (RMKType rmkType) | |
void | SetupDefaultRegion () |
void | SetupPhysics () |
void | ResetNavigator () |
void | BuildPhysicsTables (G4bool fakeRun) |
void | CheckRegions () |
virtual void | SetupShadowProcess () const |
Protected Attributes | |
RMKType | runManagerKernelType |
G4Region * | defaultRegion |
G4Region * | defaultRegionForParallelWorld |
G4bool | geometryNeedsToBeClosed |
Private Member Functions | |
void | CheckRegularGeometry () |
G4bool | ConfirmCoupledTransportation () |
void | SetScoreSplitter () |
Static Private Attributes | |
static G4ThreadLocal G4RunManagerKernel * | fRunManagerKernel = 0 |
Definition at line 68 of file G4RunManagerKernel.hh.
Enumerator | |
---|---|
sequentialRMK | |
masterRMK | |
workerRMK |
Definition at line 86 of file G4RunManagerKernel.hh.
G4RunManagerKernel::G4RunManagerKernel | ( | ) |
Definition at line 76 of file G4RunManagerKernel.cc.
References defaultExceptionHandler, defaultRegion, defaultRegionForParallelWorld, 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 255 of file G4RunManagerKernel.cc.
References G4UnitDefinition::ClearUnitsTable(), defaultExceptionHandler, G4AllocatorList::Destroy(), eventManager, fRunManagerKernel, G4cout, G4endl, G4State_Quit, G4AllocatorList::GetAllocatorListIfExist(), G4StateManager::GetCurrentState(), G4GeometryManager::GetInstance(), G4SDManager::GetSDMpointerIfExist(), G4StateManager::GetStateManager(), G4UImanager::GetUIpointer(), numberOfStaticAllocators, G4GeometryManager::OpenGeometry(), runManagerKernelType, G4StateManager::SetNewState(), verboseLevel, and workerRMK.
|
protected |
Definition at line 144 of file G4RunManagerKernel.cc.
References defaultExceptionHandler, defaultRegion, defaultRegionForParallelWorld, eventManager, FatalException, fRunManagerKernel, G4cout, G4Date, G4endl, G4Exception(), G4State_PreInit, G4Version, G4RegionStore::GetInstance(), G4ProductionCutsTable::GetProductionCutsTable(), G4RegionStore::GetRegion(), G4StateManager::GetStateManager(), InvalidOperationDetection(), masterRMK, runManagerKernelType, G4StateManager::SetNewState(), G4Region::SetProductionCuts(), versionString, and workerRMK.
|
protected |
Definition at line 663 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 686 of file G4RunManagerKernel.cc.
References G4Region::AddRootLogicalVolume(), G4Region::BelongsTo(), currentWorld, defaultRegionForParallelWorld, G4cerr, G4endl, 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(), and G4Region::UsedInParallelGeometry().
Referenced by InitializePhysics(), and UpdateRegion().
|
private |
Definition at line 837 of file G4RunManagerKernel.cc.
References G4LogicalVolumeStore::GetInstance(), pos, and SetScoreSplitter().
Referenced by RunInitialization().
|
private |
Definition at line 858 of file G4RunManagerKernel.cc.
References G4ProcessManager::GetAlongStepProcessVector(), G4ParticleTable::GetIterator(), G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetProcessManager(), G4VProcess::GetProcessName(), G4ParticleTableIterator< K, V >::reset(), theParticleIterator, typeDoIt, and G4ParticleTableIterator< K, V >::value().
void G4RunManagerKernel::DefineWorldVolume | ( | G4VPhysicalVolume * | worldVol, |
G4bool | topologyIsChanged = true |
||
) |
Definition at line 375 of file G4RunManagerKernel.cc.
References G4Region::AddRootLogicalVolume(), currentWorld, defaultRegion, FatalException, G4cout, G4endl, G4Exception(), G4State_Idle, G4State_PreInit, G4VVisManager::GeometryHasChanged(), geometryInitialized, geometryNeedsToBeClosed, G4VVisManager::GetConcreteInstance(), G4StateManager::GetCurrentState(), G4VPhysicalVolume::GetLogicalVolume(), G4Region::GetName(), G4LogicalVolume::GetName(), G4LogicalVolume::GetRegion(), G4StateManager::GetStateManager(), G4TransportationManager::GetTransportationManager(), G4Threading::IsWorkerThread(), JustWarning, 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 759 of file G4RunManagerKernel.cc.
References G4RegionStore::GetInstance(), and G4RegionStore::GetRegion().
Referenced by BuildPhysicsTables(), DumpRegion(), and G4RunManager::DumpRegion().
void G4RunManagerKernel::DumpRegion | ( | G4Region * | region = 0 | ) | const |
Definition at line 765 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 164 of file G4RunManagerKernel.hh.
Referenced by G4RunManager::GeometryHasBeenModified(), G4RunManager::ReinitializeGeometry(), and G4RunManager::SetGeometryToBeOptimized().
|
inline |
Definition at line 212 of file G4RunManagerKernel.hh.
References currentWorld.
Referenced by G4WorkerRunManager::InitializeGeometry().
|
inline |
Definition at line 178 of file G4RunManagerKernel.hh.
References eventManager.
Referenced by G4RunManager::G4RunManager().
|
inline |
Definition at line 204 of file G4RunManagerKernel.hh.
References numberOfParallelWorld.
Referenced by G4PhysicsListHelper::AddTransportation(), and G4WorkerRunManager::InitializeGeometry().
|
inline |
Definition at line 222 of file G4RunManagerKernel.hh.
References numberOfStaticAllocators.
Referenced by G4MTRunManager::G4MTRunManager().
|
inline |
Definition at line 209 of file G4RunManagerKernel.hh.
References physicsList.
|
inline |
Definition at line 186 of file G4RunManagerKernel.hh.
References G4EventManager::GetPrimaryTransformer().
Referenced by RunInitialization().
|
static |
Definition at line 73 of file G4RunManagerKernel.cc.
References fRunManagerKernel.
Referenced by G4PhysicsListHelper::AddTransportation(), G4MaterialScanner::DoScan(), export_G4RunManagerKernel(), G4ErrorRunManagerHelper::G4ErrorRunManagerHelper(), and RE06SteppingVerbose::InitializeTimers().
|
inline |
Definition at line 180 of file G4RunManagerKernel.hh.
References G4EventManager::GetStackManager().
|
inline |
Definition at line 182 of file G4RunManagerKernel.hh.
References G4EventManager::GetTrackingManager().
Referenced by RE06SteppingVerbose::InitializeTimers().
|
inline |
Definition at line 189 of file G4RunManagerKernel.hh.
References versionString.
Referenced by G4RunManager::GetVersionString().
void G4RunManagerKernel::InitializePhysics | ( | ) |
Definition at line 499 of file G4RunManagerKernel.cc.
References G4VUserPhysicsList::CheckParticleList(), CheckRegions(), G4VUserPhysicsList::Construct(), G4IonTable::CreateAllIsomer(), FatalException, G4cout, G4endl, G4Exception(), G4State_Idle, G4State_PreInit, geometryInitialized, G4StateManager::GetCurrentState(), G4ParticleTable::GetGenericIon(), G4ParticleTable::GetIonTable(), G4ParticleTable::GetIterator(), G4ParticleDefinition::GetParticleDefinitionID(), G4ParticleTable::GetParticleTable(), G4StateManager::GetStateManager(), G4ParticleDefinition::IsGeneralIon(), G4Threading::IsWorkerThread(), JustWarning, numberOfParallelWorld, physicsInitialized, physicsList, G4ParticleTableIterator< K, V >::reset(), G4VUserPhysicsList::SetCuts(), G4StateManager::SetNewState(), G4ParticleDefinition::SetParticleDefinitionID(), G4TemplateAutoLock< M, L, U >::unlock(), G4VUserPhysicsList::UseCoupledTransportation(), G4ParticleTableIterator< K, V >::value(), and verboseLevel.
Referenced by G4ErrorRunManagerHelper::InitializePhysics(), and G4RunManager::InitializePhysics().
|
inline |
Definition at line 170 of file G4RunManagerKernel.hh.
Referenced by G4RunManager::PhysicsHasBeenModified().
|
protected |
Definition at line 622 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 560 of file G4RunManagerKernel.cc.
References BuildPhysicsTables(), CheckRegularGeometry(), G4PrimaryTransformer::CheckUnknown(), G4Exception(), G4State_GeomClosed, G4State_Idle, G4VVisManager::GeometryHasChanged(), geometryInitialized, geometryNeedsToBeClosed, G4VVisManager::GetConcreteInstance(), G4StateManager::GetCurrentState(), GetPrimaryTransformer(), G4StateManager::GetStateManager(), G4Threading::IsWorkerThread(), JustWarning, physicsInitialized, ResetNavigator(), G4StateManager::SetNewState(), SetupShadowProcess(), and UpdateRegion().
Referenced by export_G4RunManagerKernel(), G4WorkerRunManager::RunInitialization(), G4ErrorRunManagerHelper::RunInitialization(), and G4RunManager::RunInitialization().
void G4RunManagerKernel::RunTermination | ( | ) |
Definition at line 616 of file G4RunManagerKernel.cc.
References G4State_Idle, G4ProductionCutsTable::GetProductionCutsTable(), G4StateManager::GetStateManager(), G4ProductionCutsTable::PhysicsTableUpdated(), and G4StateManager::SetNewState().
Referenced by G4ErrorRunManagerHelper::RunTermination(), and G4RunManager::RunTermination().
|
inline |
Definition at line 195 of file G4RunManagerKernel.hh.
Referenced by G4RunManager::SetGeometryToBeOptimized().
|
inline |
Definition at line 206 of file G4RunManagerKernel.hh.
Referenced by G4WorkerRunManager::InitializeGeometry(), and G4RunManager::InitializeGeometry().
void G4RunManagerKernel::SetPhysics | ( | G4VUserPhysicsList * | uPhys | ) |
Definition at line 435 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 184 of file G4RunManagerKernel.hh.
References G4EventManager::SetPrimaryTransformer().
Referenced by G4RunManager::SetPrimaryTransformer().
|
private |
Definition at line 878 of file G4RunManagerKernel.cc.
References G4ProcessManager::AddDiscreteProcess(), G4cout, G4endl, G4ThreadLocal, G4ParticleTable::GetIterator(), G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetProcessManager(), G4ParticleTableIterator< K, V >::reset(), theParticleIterator, G4ParticleTableIterator< K, V >::value(), and verboseLevel.
Referenced by CheckRegularGeometry().
|
protected |
Definition at line 232 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 462 of file G4RunManagerKernel.cc.
References G4IonConstructor::ConstructParticle(), G4VUserPhysicsList::ConstructParticle(), G4Geantino::GeantinoDefinition(), G4ParticleTable::GetGenericIon(), G4ParticleTable::GetIonTable(), G4ParticleTable::GetIterator(), G4ParticleDefinition::GetParticleDefinitionID(), G4ParticleTable::GetParticleTable(), G4IonTable::InitializeLightIons(), G4ParticleDefinition::IsGeneralIon(), physicsList, G4ParticleTableIterator< K, V >::reset(), G4ParticleDefinition::SetParticleDefinitionID(), G4ParticleTable::SetReadiness(), and G4ParticleTableIterator< K, V >::value().
Referenced by SetPhysics().
|
protectedvirtual |
Reimplemented in G4MTRunManagerKernel, and G4WorkerRunManagerKernel.
Definition at line 905 of file G4RunManagerKernel.cc.
References G4ParticleTable::GetIterator(), G4ParticleTable::GetParticleTable(), G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), G4ParticleTableIterator< K, V >::reset(), G4ProcessVector::size(), theParticleIterator, and G4ParticleTableIterator< K, V >::value().
Referenced by RunInitialization(), and G4MTRunManagerKernel::SetupShadowProcess().
|
inline |
Definition at line 192 of file G4RunManagerKernel.hh.
Referenced by G4ErrorRunManagerHelper::G4ErrorRunManagerHelper(), and G4RunManager::SetVerboseLevel().
void G4RunManagerKernel::UpdateRegion | ( | ) |
Definition at line 641 of file G4RunManagerKernel.cc.
References CheckRegions(), currentWorld, G4Exception(), G4State_Idle, 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 323 of file G4RunManagerKernel.cc.
References currentWorld, FatalException, G4cerr, G4endl, G4Exception(), G4State_Idle, G4State_PreInit, G4VVisManager::GeometryHasChanged(), geometryInitialized, geometryNeedsToBeClosed, G4VVisManager::GetConcreteInstance(), G4StateManager::GetCurrentState(), G4MTRunManager::GetMasterRunManager(), G4MTRunManager::GetMasterWorlds(), G4StateManager::GetStateManager(), G4StateManager::GetStateString(), G4TransportationManager::GetTransportationManager(), G4Threading::IsWorkerThread(), JustWarning, physicsInitialized, G4TransportationManager::RegisterWorld(), G4StateManager::SetNewState(), G4TransportationManager::SetWorldForTracking(), and verboseLevel.
Referenced by G4WorkerRunManager::InitializeGeometry().
void G4RunManagerKernel::WorkerUpdateWorldVolume | ( | ) |
Definition at line 306 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 148 of file G4RunManagerKernel.hh.
Referenced by CheckRegions(), DefineWorldVolume(), GetCurrentWorld(), UpdateRegion(), and WorkerDefineWorldVolume().
|
private |
Definition at line 157 of file G4RunManagerKernel.hh.
Referenced by G4RunManagerKernel(), and ~G4RunManagerKernel().
|
protected |
Definition at line 160 of file G4RunManagerKernel.hh.
Referenced by DefineWorldVolume(), G4RunManagerKernel(), and SetupDefaultRegion().
|
protected |
Definition at line 161 of file G4RunManagerKernel.hh.
Referenced by CheckRegions(), and G4RunManagerKernel().
|
private |
Definition at line 156 of file G4RunManagerKernel.hh.
Referenced by G4RunManagerKernel(), GetEventManager(), and ~G4RunManagerKernel().
|
staticprivate |
Definition at line 76 of file G4RunManagerKernel.hh.
Referenced by G4RunManagerKernel(), GetRunManagerKernel(), and ~G4RunManagerKernel().
|
private |
Definition at line 149 of file G4RunManagerKernel.hh.
Referenced by DefineWorldVolume(), InitializePhysics(), RunInitialization(), and WorkerDefineWorldVolume().
|
protected |
Definition at line 162 of file G4RunManagerKernel.hh.
Referenced by DefineWorldVolume(), ResetNavigator(), RunInitialization(), and WorkerDefineWorldVolume().
|
private |
Definition at line 151 of file G4RunManagerKernel.hh.
Referenced by ResetNavigator().
|
private |
Definition at line 154 of file G4RunManagerKernel.hh.
Referenced by GetNumberOfParallelWorld(), and InitializePhysics().
|
private |
Definition at line 219 of file G4RunManagerKernel.hh.
Referenced by G4RunManagerKernel(), GetNumberOfStaticAllocators(), and ~G4RunManagerKernel().
|
private |
Definition at line 150 of file G4RunManagerKernel.hh.
Referenced by DefineWorldVolume(), InitializePhysics(), RunInitialization(), and WorkerDefineWorldVolume().
|
private |
Definition at line 147 of file G4RunManagerKernel.hh.
Referenced by BuildPhysicsTables(), GetPhysicsList(), InitializePhysics(), SetPhysics(), and SetupPhysics().
|
private |
Definition at line 152 of file G4RunManagerKernel.hh.
Referenced by BuildPhysicsTables().
|
protected |
Definition at line 90 of file G4RunManagerKernel.hh.
Referenced by BuildPhysicsTables(), G4RunManagerKernel(), ResetNavigator(), SetPhysics(), SetupDefaultRegion(), UpdateRegion(), and ~G4RunManagerKernel().
|
private |
Definition at line 153 of file G4RunManagerKernel.hh.
Referenced by BuildPhysicsTables(), DefineWorldVolume(), InitializePhysics(), ResetNavigator(), SetPhysics(), SetScoreSplitter(), SetupDefaultRegion(), WorkerDefineWorldVolume(), and ~G4RunManagerKernel().
|
private |
Definition at line 158 of file G4RunManagerKernel.hh.
Referenced by G4RunManagerKernel(), and GetVersionString().