Geant4  10.01.p03
G4MTRunManagerKernel Class Reference

#include <G4MTRunManagerKernel.hh>

+ Inheritance diagram for G4MTRunManagerKernel:
+ Collaboration diagram for G4MTRunManagerKernel:

Public Member Functions

 G4MTRunManagerKernel ()
 
virtual ~G4MTRunManagerKernel ()
 
void SetUpDecayChannels ()
 
void BroadcastAbortRun (G4bool softAbort)
 
- Public Member Functions inherited from G4RunManagerKernel
 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 void * StartThread (void *context)
 
static G4WorkerThreadGetWorkerThread ()
 
- Static Public Member Functions inherited from G4RunManagerKernel
static G4RunManagerKernelGetRunManagerKernel ()
 

Protected Member Functions

void SetupShadowProcess () const
 
- Protected Member Functions inherited from G4RunManagerKernel
 G4RunManagerKernel (RMKType rmkType)
 
void SetupDefaultRegion ()
 
void SetupPhysics ()
 
void ResetNavigator ()
 
void BuildPhysicsTables (G4bool fakeRun)
 
void CheckRegions ()
 
void PropagateGenericIonID ()
 

Static Private Attributes

static G4ThreadLocal
G4WorkerThread
wThreadContext = 0
 
static std::vector
< G4WorkerRunManager * > * 
workerRMvector = 0
 

Additional Inherited Members

- Public Types inherited from G4RunManagerKernel
enum  RMKType { sequentialRMK, masterRMK, workerRMK }
 
- Protected Attributes inherited from G4RunManagerKernel
RMKType runManagerKernelType
 
G4RegiondefaultRegion
 
G4RegiondefaultRegionForParallelWorld
 
G4bool geometryNeedsToBeClosed
 

Detailed Description

Definition at line 65 of file G4MTRunManagerKernel.hh.

Constructor & Destructor Documentation

G4MTRunManagerKernel::G4MTRunManagerKernel ( )

Definition at line 38 of file G4MTRunManagerKernel.cc.

References FatalException, G4Exception(), G4Threading::SetMultithreadedApplication(), and workerRMvector.

+ Here is the call graph for this function:

G4MTRunManagerKernel::~G4MTRunManagerKernel ( )
virtual

Definition at line 52 of file G4MTRunManagerKernel.cc.

References FatalException, G4Exception(), and workerRMvector.

+ Here is the call graph for this function:

Member Function Documentation

void G4MTRunManagerKernel::BroadcastAbortRun ( G4bool  softAbort)

Definition at line 389 of file G4MTRunManagerKernel.cc.

References workerRMvector.

Referenced by G4MTRunManager::AbortRun().

+ Here is the caller graph for this function:

G4WorkerThread * G4MTRunManagerKernel::GetWorkerThread ( )
static

Definition at line 99 of file G4MTRunManagerKernel.cc.

References wThreadContext.

void G4MTRunManagerKernel::SetUpDecayChannels ( )

Definition at line 372 of file G4MTRunManagerKernel.cc.

References G4DecayTable::entries(), G4VDecayChannel::GetDaughter(), G4DecayTable::GetDecayChannel(), G4ParticleTable::GetIterator(), G4ParticleTable::GetParticleTable(), G4ParticleTableIterator< K, V >::reset(), and G4ParticleTableIterator< K, V >::value().

Referenced by G4MTRunManager::InitializeEventLoop().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4MTRunManagerKernel::SetupShadowProcess ( ) const
protectedvirtual

Reimplemented from G4RunManagerKernel.

Definition at line 69 of file G4MTRunManagerKernel.cc.

References G4RunManagerKernel::SetupShadowProcess().

+ Here is the call graph for this function:

void * G4MTRunManagerKernel::StartThread ( void *  context)
static

!!!!!!!!!!!!!!!!!!!!!!!!! !!!!! IMPORTANT !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!

Definition at line 102 of file G4MTRunManagerKernel.cc.

References G4UImanager::ApplyCommand(), G4RunManager::BeamOn(), G4VUserActionInitialization::Build(), G4WorkerThread::BuildGeometryAndPhysicsVector(), G4UserWorkerThreadInitialization::CreateWorkerRunManager(), G4WorkerThread::DestroyGeometryAndPhysicsVector(), G4MTRunManager::ENDWORKER, FatalException, G4cout, G4endl, G4Exception(), G4Threading::G4GetNumberOfCores(), G4Threading::G4SetPinAffinity(), G4Threading::G4SetThreadId(), G4ThreadLocal, G4THREADSELF, G4MTRunManager::GetCommandStack(), G4MTRunManager::getMasterRandomEngine(), G4MTRunManager::GetMasterRunManager(), G4RunManager::GetNonConstUserActionInitialization(), G4RunManager::GetNumberOfEventsToBeProcessed(), G4RunManager::GetNumberOfSelectEvents(), G4MTRunManager::GetPinAffinity(), G4RunManager::GetSelectMacro(), G4WorkerThread::GetThreadId(), G4UImanager::GetUIpointer(), G4RunManager::GetUserActionInitialization(), G4RunManager::GetUserDetectorConstruction(), G4RunManager::GetUserPhysicsList(), G4RunManager::GetUserWorkerInitialization(), G4RunManager::GetUserWorkerThreadInitialization(), G4RunManager::Initialize(), G4VUserActionInitialization::InitializeSteppingVerbose(), JustWarning, G4TemplateAutoLock< M, L, U >::lock(), G4MTRunManager::NEXTITERATION, G4VSteppingVerbose::SetInstance(), G4UImanager::SetUpForAThread(), G4UserWorkerThreadInitialization::SetupRNGEngine(), G4WorkerRunManager::SetUserInitialization(), G4WorkerRunManager::SetWorkerThread(), G4MTRunManager::ThisWorkerWaitForNextAction(), G4TemplateAutoLock< M, L, U >::unlock(), G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster(), G4UserWorkerInitialization::WorkerInitialize(), workerRMvector, G4UserWorkerInitialization::WorkerStart(), G4UserWorkerInitialization::WorkerStop(), and wThreadContext.

+ Here is the call graph for this function:

Member Data Documentation

std::vector< G4WorkerRunManager * > * G4MTRunManagerKernel::workerRMvector = 0
staticprivate
G4ThreadLocal G4WorkerThread * G4MTRunManagerKernel::wThreadContext = 0
staticprivate

Definition at line 81 of file G4MTRunManagerKernel.hh.

Referenced by GetWorkerThread(), and StartThread().


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