Geant4  10.00.p01
G4RunManagerKernel Class Reference

#include <G4RunManagerKernel.hh>

+ Inheritance diagram for G4RunManagerKernel:
+ Collaboration diagram for G4RunManagerKernel:

Public Types

enum  RMKType { sequentialRMK, masterRMK, workerRMK }
 

Public Member Functions

 G4RunManagerKernel ()
 
virtual ~G4RunManagerKernel ()
 
void DefineWorldVolume (G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
 
void WorkerDefineWorldVolume (G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
 
void SetPhysics (G4VUserPhysicsList *uPhys)
 
void InitializePhysics ()
 
G4bool RunInitialization (G4bool fakeRun=false)
 
void RunTermination ()
 
void WorkerUpdateWorldVolume ()
 
void UpdateRegion ()
 
void DumpRegion (const G4String &rname) const
 
void DumpRegion (G4Region *region=0) const
 
void GeometryHasBeenModified ()
 
void PhysicsHasBeenModified ()
 
G4EventManagerGetEventManager () const
 
G4StackManagerGetStackManager () const
 
G4TrackingManagerGetTrackingManager () const
 
void SetPrimaryTransformer (G4PrimaryTransformer *pt)
 
G4PrimaryTransformerGetPrimaryTransformer () const
 
const G4StringGetVersionString () const
 
void SetVerboseLevel (G4int vl)
 
void SetGeometryToBeOptimized (G4bool vl)
 
G4int GetNumberOfParallelWorld () const
 
void SetNumberOfParallelWorld (G4int i)
 
G4VUserPhysicsListGetPhysicsList () const
 
G4VPhysicalVolumeGetCurrentWorld () const
 
G4int GetNumberOfStaticAllocators () const
 

Static Public Member Functions

static G4RunManagerKernelGetRunManagerKernel ()
 

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
 
G4RegiondefaultRegion
 
G4RegiondefaultRegionForParallelWorld
 
G4bool geometryNeedsToBeClosed
 

Private Member Functions

void CheckRegularGeometry ()
 
G4bool ConfirmCoupledTransportation ()
 
void SetScoreSplitter ()
 

Private Attributes

G4VUserPhysicsListphysicsList
 
G4VPhysicalVolumecurrentWorld
 
G4bool geometryInitialized
 
G4bool physicsInitialized
 
G4bool geometryToBeOptimized
 
G4bool physicsNeedsToBeReBuilt
 
G4int verboseLevel
 
G4int numberOfParallelWorld
 
G4EventManagereventManager
 
G4ExceptionHandlerdefaultExceptionHandler
 
G4String versionString
 
G4int numberOfStaticAllocators
 

Static Private Attributes

static G4ThreadLocal
G4RunManagerKernel
fRunManagerKernel = 0
 

Detailed Description

Definition at line 68 of file G4RunManagerKernel.hh.

Member Enumeration Documentation

Enumerator
sequentialRMK 
masterRMK 
workerRMK 

Definition at line 86 of file G4RunManagerKernel.hh.

Constructor & Destructor Documentation

Member Function Documentation

void G4RunManagerKernel::BuildPhysicsTables ( G4bool  fakeRun)
protected

Definition at line 662 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RunManagerKernel::CheckRegions ( )
protected
void G4RunManagerKernel::CheckRegularGeometry ( )
private

Definition at line 836 of file G4RunManagerKernel.cc.

References G4LogicalVolumeStore::GetInstance(), pos, and SetScoreSplitter().

Referenced by RunInitialization().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RunManagerKernel::ConfirmCoupledTransportation ( )
private
void G4RunManagerKernel::DumpRegion ( const G4String rname) const

Definition at line 758 of file G4RunManagerKernel.cc.

References G4RegionStore::GetInstance(), and G4RegionStore::GetRegion().

Referenced by BuildPhysicsTables(), DumpRegion(), and G4RunManager::DumpRegion().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RunManagerKernel::GeometryHasBeenModified ( )
inline

Definition at line 164 of file G4RunManagerKernel.hh.

Referenced by G4RunManager::GeometryHasBeenModified(), G4RunManager::ReinitializeGeometry(), and G4RunManager::SetGeometryToBeOptimized().

+ Here is the caller graph for this function:

G4VPhysicalVolume* G4RunManagerKernel::GetCurrentWorld ( ) const
inline

Definition at line 212 of file G4RunManagerKernel.hh.

References currentWorld.

Referenced by G4WorkerRunManager::InitializeGeometry().

+ Here is the caller graph for this function:

G4EventManager* G4RunManagerKernel::GetEventManager ( ) const
inline

Definition at line 178 of file G4RunManagerKernel.hh.

References eventManager.

Referenced by G4RunManager::G4RunManager().

+ Here is the caller graph for this function:

G4int G4RunManagerKernel::GetNumberOfParallelWorld ( ) const
inline

Definition at line 204 of file G4RunManagerKernel.hh.

References numberOfParallelWorld.

Referenced by G4PhysicsListHelper::AddTransportation(), and G4WorkerRunManager::InitializeGeometry().

+ Here is the caller graph for this function:

G4int G4RunManagerKernel::GetNumberOfStaticAllocators ( ) const
inline

Definition at line 222 of file G4RunManagerKernel.hh.

References numberOfStaticAllocators.

Referenced by G4MTRunManager::G4MTRunManager().

+ Here is the caller graph for this function:

G4VUserPhysicsList* G4RunManagerKernel::GetPhysicsList ( ) const
inline

Definition at line 209 of file G4RunManagerKernel.hh.

References physicsList.

G4PrimaryTransformer* G4RunManagerKernel::GetPrimaryTransformer ( ) const
inline

Definition at line 186 of file G4RunManagerKernel.hh.

References G4EventManager::GetPrimaryTransformer().

Referenced by RunInitialization().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4RunManagerKernel * G4RunManagerKernel::GetRunManagerKernel ( )
static

Definition at line 73 of file G4RunManagerKernel.cc.

References fRunManagerKernel.

Referenced by G4PhysicsListHelper::AddTransportation(), G4MaterialScanner::DoScan(), export_G4RunManagerKernel(), G4ErrorRunManagerHelper::G4ErrorRunManagerHelper(), and RE06SteppingVerbose::InitializeTimers().

+ Here is the caller graph for this function:

G4StackManager* G4RunManagerKernel::GetStackManager ( ) const
inline

Definition at line 180 of file G4RunManagerKernel.hh.

References G4EventManager::GetStackManager().

+ Here is the call graph for this function:

G4TrackingManager* G4RunManagerKernel::GetTrackingManager ( ) const
inline

Definition at line 182 of file G4RunManagerKernel.hh.

References G4EventManager::GetTrackingManager().

Referenced by RE06SteppingVerbose::InitializeTimers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const G4String& G4RunManagerKernel::GetVersionString ( ) const
inline

Definition at line 189 of file G4RunManagerKernel.hh.

References versionString.

Referenced by G4RunManager::GetVersionString().

+ Here is the caller graph for this function:

void G4RunManagerKernel::PhysicsHasBeenModified ( )
inline

Definition at line 170 of file G4RunManagerKernel.hh.

Referenced by G4RunManager::PhysicsHasBeenModified().

+ Here is the caller graph for this function:

void G4RunManagerKernel::ResetNavigator ( )
protected

Definition at line 621 of file G4RunManagerKernel.cc.

References G4GeometryManager::CloseGeometry(), G4cout, G4endl, geometryNeedsToBeClosed, geometryToBeOptimized, G4GeometryManager::GetInstance(), G4GeometryManager::OpenGeometry(), runManagerKernelType, verboseLevel, and workerRMK.

Referenced by RunInitialization().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RunManagerKernel::RunInitialization ( G4bool  fakeRun = false)
void G4RunManagerKernel::RunTermination ( )

Definition at line 615 of file G4RunManagerKernel.cc.

References G4State_Idle, G4ProductionCutsTable::GetProductionCutsTable(), G4StateManager::GetStateManager(), G4ProductionCutsTable::PhysicsTableUpdated(), and G4StateManager::SetNewState().

Referenced by G4ErrorRunManagerHelper::RunTermination(), and G4RunManager::RunTermination().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RunManagerKernel::SetGeometryToBeOptimized ( G4bool  vl)
inline

Definition at line 195 of file G4RunManagerKernel.hh.

Referenced by G4RunManager::SetGeometryToBeOptimized().

+ Here is the caller graph for this function:

void G4RunManagerKernel::SetNumberOfParallelWorld ( G4int  i)
inline

Definition at line 206 of file G4RunManagerKernel.hh.

Referenced by G4WorkerRunManager::InitializeGeometry(), and G4RunManager::InitializeGeometry().

+ Here is the caller graph for this function:

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, SetupPhysics(), and verboseLevel.

Referenced by G4ErrorRunManagerHelper::InitializePhysics(), and G4RunManager::SetUserInitialization().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RunManagerKernel::SetPrimaryTransformer ( G4PrimaryTransformer pt)
inline

Definition at line 184 of file G4RunManagerKernel.hh.

References G4EventManager::SetPrimaryTransformer().

Referenced by G4RunManager::SetPrimaryTransformer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RunManagerKernel::SetScoreSplitter ( )
private

Definition at line 877 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RunManagerKernel::SetupDefaultRegion ( )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RunManagerKernel::SetupPhysics ( )
protected
void G4RunManagerKernel::SetupShadowProcess ( ) const
protectedvirtual

Reimplemented in G4MTRunManagerKernel, and G4WorkerRunManagerKernel.

Definition at line 904 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RunManagerKernel::SetVerboseLevel ( G4int  vl)
inline

Definition at line 192 of file G4RunManagerKernel.hh.

Referenced by G4ErrorRunManagerHelper::G4ErrorRunManagerHelper(), and G4RunManager::SetVerboseLevel().

+ Here is the caller graph for this function:

void G4RunManagerKernel::UpdateRegion ( )

Definition at line 640 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4RunManagerKernel::WorkerDefineWorldVolume ( G4VPhysicalVolume worldVol,
G4bool  topologyIsChanged = true 
)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4VPhysicalVolume* G4RunManagerKernel::currentWorld
private
G4ExceptionHandler* G4RunManagerKernel::defaultExceptionHandler
private

Definition at line 157 of file G4RunManagerKernel.hh.

Referenced by G4RunManagerKernel(), and ~G4RunManagerKernel().

G4Region* G4RunManagerKernel::defaultRegion
protected
G4Region* G4RunManagerKernel::defaultRegionForParallelWorld
protected

Definition at line 161 of file G4RunManagerKernel.hh.

Referenced by CheckRegions(), and G4RunManagerKernel().

G4EventManager* G4RunManagerKernel::eventManager
private

Definition at line 156 of file G4RunManagerKernel.hh.

Referenced by G4RunManagerKernel(), GetEventManager(), and ~G4RunManagerKernel().

G4ThreadLocal G4RunManagerKernel * G4RunManagerKernel::fRunManagerKernel = 0
staticprivate
G4bool G4RunManagerKernel::geometryInitialized
private
G4bool G4RunManagerKernel::geometryNeedsToBeClosed
protected
G4bool G4RunManagerKernel::geometryToBeOptimized
private

Definition at line 151 of file G4RunManagerKernel.hh.

Referenced by ResetNavigator().

G4int G4RunManagerKernel::numberOfParallelWorld
private

Definition at line 154 of file G4RunManagerKernel.hh.

Referenced by GetNumberOfParallelWorld(), and InitializePhysics().

G4int G4RunManagerKernel::numberOfStaticAllocators
private
G4bool G4RunManagerKernel::physicsInitialized
private
G4VUserPhysicsList* G4RunManagerKernel::physicsList
private
G4bool G4RunManagerKernel::physicsNeedsToBeReBuilt
private

Definition at line 152 of file G4RunManagerKernel.hh.

Referenced by BuildPhysicsTables().

RMKType G4RunManagerKernel::runManagerKernelType
protected
G4String G4RunManagerKernel::versionString
private

Definition at line 158 of file G4RunManagerKernel.hh.

Referenced by G4RunManagerKernel(), and GetVersionString().


The documentation for this class was generated from the following files: