Geant4_10
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
G4MTRunManager Class Reference

#include <G4MTRunManager.hh>

Inheritance diagram for G4MTRunManager:
Inheritance graph
[legend]
Collaboration diagram for G4MTRunManager:
Collaboration graph
[legend]

Public Types

enum  WorkerActionRequest { UNDEFINED, NEXTITERATION, ENDWORKER }
 
typedef std::map< G4int,
G4VPhysicalVolume * > 
masterWorlds_t
 
- Public Types inherited from G4RunManager
enum  RMType { sequentialRM, masterRM, workerRM }
 

Public Member Functions

 G4MTRunManager ()
 
virtual ~G4MTRunManager ()
 
void SetNumberOfThreads (G4int n)
 
G4int GetNumberOfThreads () const
 
virtual void Initialize ()
 
virtual void InitializeEventLoop (G4int n_event, const char *macroFile=0, G4int n_select=-1)
 
virtual void TerminateOneEvent ()
 
virtual void ProcessOneEvent (G4int i_event)
 
virtual void TerminateEventLoop ()
 
virtual void ConstructScoringWorlds ()
 
virtual void InitializePhysics ()
 
virtual void RunTermination ()
 
virtual G4bool SetUpAnEvent (G4Event *, long &s1, long &s2, long &s3)
 
virtual G4int SetUpNEvents (G4Event *, G4SeedsQueue *seedsQueue)
 
std::vector< G4String > GetCommandStack ()
 
virtual void ThisWorkerReady ()
 
virtual void ThisWorkerEndEventLoop ()
 
const CLHEP::HepRandomEngine * getMasterRandomEngine () const
 
virtual void SetUserInitialization (G4VUserPhysicsList *userPL)
 
virtual void SetUserInitialization (G4VUserDetectorConstruction *userDC)
 
virtual void SetUserInitialization (G4UserWorkerInitialization *userInit)
 
virtual void SetUserInitialization (G4UserWorkerThreadInitialization *userInit)
 
virtual void SetUserInitialization (G4VUserActionInitialization *userInit)
 
virtual void SetUserAction (G4UserRunAction *userAction)
 
virtual void SetUserAction (G4VUserPrimaryGeneratorAction *userAction)
 
virtual void SetUserAction (G4UserEventAction *userAction)
 
virtual void SetUserAction (G4UserStackingAction *userAction)
 
virtual void SetUserAction (G4UserTrackingAction *userAction)
 
virtual void SetUserAction (G4UserSteppingAction *userAction)
 
void MergeScores (const G4ScoringManager *localScoringManager)
 
void MergeRun (const G4Run *localRun)
 
virtual WorkerActionRequest ThisWorkerWaitForNextAction ()
 
void SetEventModulo (G4int i=1)
 
G4int GetEventModulo () const
 
virtual void AbortRun (G4bool softAbort=false)
 
virtual void AbortEvent ()
 
- Public Member Functions inherited from G4RunManager
 G4RunManager ()
 
virtual ~G4RunManager ()
 
virtual void BeamOn (G4int n_event, const char *macroFile=0, G4int n_select=-1)
 
virtual void DefineWorldVolume (G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
 
virtual void InitializeGeometry ()
 
virtual G4bool ConfirmBeamOnCondition ()
 
virtual void RunInitialization ()
 
virtual void DoEventLoop (G4int n_event, const char *macroFile=0, G4int n_select=-1)
 
virtual G4Event * GenerateEvent (G4int i_event)
 
virtual void AnalyzeEvent (G4Event *anEvent)
 
void DumpRegion (const G4String &rname) const
 
void DumpRegion (G4Region *region=0) const
 
virtual void rndmSaveThisRun ()
 
virtual void rndmSaveThisEvent ()
 
virtual void RestoreRandomNumberStatus (const G4String &fileN)
 
const G4VUserDetectorConstruction * GetUserDetectorConstruction () const
 
const G4VUserPhysicsList * GetUserPhysicsList () const
 
const G4VUserActionInitialization * GetUserActionInitialization () const
 
G4VUserActionInitialization * GetNonConstUserActionInitialization () const
 
const G4UserWorkerInitialization * GetUserWorkerInitialization () const
 
const
G4UserWorkerThreadInitialization * 
GetUserWorkerThreadInitialization () const
 
const G4UserRunAction * GetUserRunAction () const
 
const
G4VUserPrimaryGeneratorAction * 
GetUserPrimaryGeneratorAction () const
 
const G4UserEventAction * GetUserEventAction () const
 
const G4UserStackingAction * GetUserStackingAction () const
 
const G4UserTrackingAction * GetUserTrackingAction () const
 
const G4UserSteppingAction * GetUserSteppingAction () const
 
void SetNumberOfAdditionalWaitingStacks (G4int iAdd)
 
const G4String & GetVersionString () const
 
void SetPrimaryTransformer (G4PrimaryTransformer *pt)
 
void StoreRandomNumberStatusToG4Event (G4int vl)
 
G4int GetFlagRandomNumberStatusToG4Event () const
 
void SetRandomNumberStore (G4bool flag)
 
G4bool GetRandomNumberStore () const
 
void SetRandomNumberStoreDir (const G4String &dir)
 
const G4String & GetRandomNumberStoreDir () const
 
const G4String & GetRandomNumberStatusForThisRun () const
 
const G4String & GetRandomNumberStatusForThisEvent () const
 
void SetRandomNumberStorePerEvent (G4bool flag)
 
G4bool GetRandomNumberStorePerEvent () const
 
void GeometryHasBeenModified (G4bool prop=true)
 
void ReinitializeGeometry (G4bool destroyFirst=false, G4bool prop=true)
 
void PhysicsHasBeenModified ()
 
void CutOffHasBeenModified ()
 
void ReOptimizeMotherOf (G4VPhysicalVolume *)
 
void ReOptimize (G4LogicalVolume *)
 
void SetVerboseLevel (G4int vl)
 
G4int GetVerboseLevel () const
 
G4int GetPrintProgress ()
 
void SetPrintProgress (G4int i)
 
void SetGeometryToBeOptimized (G4bool vl)
 
G4bool GetGeometryToBeOptimized ()
 
void SetNumberOfEventsToBeStored (G4int val)
 
const G4Run * GetCurrentRun () const
 
G4Run * GetNonConstCurrentRun () const
 
const G4Event * GetCurrentEvent () const
 
const G4Event * GetPreviousEvent (G4int i) const
 
void SetRunIDCounter (G4int i)
 
G4int GetNumberOfParallelWorld () const
 
void SetNumberOfEventsToBeProcessed (G4int val)
 
G4int GetNumberOfEventsToBeProcessed () const
 
G4int GetNumberOfSelectEvents () const
 
G4String GetSelectMacro () const
 
void SetDCtable (G4DCtable *DCtbl)
 
RMType GetRunManagerType () const
 

Static Public Member Functions

static G4ScoringManager * GetMasterScoringManager ()
 
static masterWorlds_t & GetMasterWorlds ()
 
static void addWorld (G4int counter, G4VPhysicalVolume *w)
 
static G4MTRunManager * GetMasterRunManager ()
 
static G4RunManagerKernel * GetMasterRunManagerKernel ()
 
static G4MTRunManagerKernel * GetMTMasterRunManagerKernel ()
 
- Static Public Member Functions inherited from G4RunManager
static G4RunManager * GetRunManager ()
 

Protected Member Functions

virtual G4bool InitializeSeeds (G4int)
 
virtual void PrepareCommandsStack ()
 
virtual void StoreRNGStatus (const G4String &filenamePrefix)
 
virtual void CreateAndStartWorkers ()
 
virtual void WaitForReadyWorkers ()
 
virtual void WaitForEndEventLoopWorkers ()
 
virtual void TerminateWorkers ()
 
virtual void NewActionRequest (WorkerActionRequest newRequest)
 
void RefillSeeds ()
 
- Protected Member Functions inherited from G4RunManager
void StackPreviousEvent (G4Event *anEvent)
 
 G4RunManager (RMType rmType)
 
void UpdateScoring ()
 
virtual void DeleteUserInitializations ()
 

Protected Attributes

G4int numberOfEventToBeProcessed
 
WorkerActionRequest nextActionRequest
 
G4int eventModuloDef
 
G4int eventModulo
 
G4int nSeedsUsed
 
G4int nSeedsFilled
 
G4int nSeedsMax
 
G4int nSeedsPerEvent
 
double * randDbl
 
- Protected Attributes inherited from G4RunManager
G4RunManagerKernel * kernel
 
G4EventManager * eventManager
 
G4VUserDetectorConstruction * userDetector
 
G4VUserPhysicsList * physicsList
 
G4VUserActionInitialization * userActionInitialization
 
G4UserWorkerInitialization * userWorkerInitialization
 
G4UserWorkerThreadInitialization * userWorkerThreadInitialization
 
G4UserRunAction * userRunAction
 
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction
 
G4UserEventAction * userEventAction
 
G4UserStackingAction * userStackingAction
 
G4UserTrackingAction * userTrackingAction
 
G4UserSteppingAction * userSteppingAction
 
G4bool geometryInitialized
 
G4bool physicsInitialized
 
G4bool runAborted
 
G4bool initializedAtLeastOnce
 
G4bool geometryToBeOptimized
 
G4int runIDCounter
 
G4int verboseLevel
 
G4int printModulo
 
G4Timer * timer
 
G4DCtable * DCtable
 
G4Run * currentRun
 
G4Event * currentEvent
 
std::vector< G4Event * > * previousEvents
 
G4int n_perviousEventsToBeStored
 
G4int numberOfEventToBeProcessed
 
G4bool storeRandomNumberStatus
 
G4int storeRandomNumberStatusToG4Event
 
G4String randomNumberStatusDir
 
G4String randomNumberStatusForThisRun
 
G4String randomNumberStatusForThisEvent
 
G4bool rngStatusEventsFlag
 
G4VPhysicalVolume * currentWorld
 
G4int nParallelWorlds
 
G4String msgText
 
G4int n_select_msg
 
G4int numberOfEventProcessed
 
G4String selectMacro
 
G4bool fakeRun
 
RMType runManagerType
 

Detailed Description

Definition at line 50 of file G4MTRunManager.hh.

Member Typedef Documentation

Definition at line 149 of file G4MTRunManager.hh.

Member Enumeration Documentation

Enumerator
UNDEFINED 
NEXTITERATION 
ENDWORKER 

Definition at line 188 of file G4MTRunManager.hh.

Constructor & Destructor Documentation

G4MTRunManager::G4MTRunManager ( )

Definition at line 83 of file G4MTRunManager.cc.

Here is the call graph for this function:

G4MTRunManager::~G4MTRunManager ( )
virtual

Definition at line 162 of file G4MTRunManager.cc.

Here is the call graph for this function:

Member Function Documentation

void G4MTRunManager::AbortEvent ( )
virtual

Reimplemented from G4RunManager.

Definition at line 546 of file G4MTRunManager.cc.

void G4MTRunManager::AbortRun ( G4bool  softAbort = false)
virtual

Reimplemented from G4RunManager.

Definition at line 530 of file G4MTRunManager.cc.

Here is the call graph for this function:

static void G4MTRunManager::addWorld ( G4int  counter,
G4VPhysicalVolume *  w 
)
inlinestatic

Definition at line 152 of file G4MTRunManager.hh.

Here is the caller graph for this function:

void G4MTRunManager::ConstructScoringWorlds ( )
virtual

Reimplemented from G4RunManager.

Definition at line 366 of file G4MTRunManager.cc.

Here is the call graph for this function:

void G4MTRunManager::CreateAndStartWorkers ( )
protectedvirtual

Reimplemented in tbbMasterRunManager.

Definition at line 244 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< G4String > G4MTRunManager::GetCommandStack ( )

Definition at line 238 of file G4MTRunManager.cc.

Here is the caller graph for this function:

G4int G4MTRunManager::GetEventModulo ( ) const
inline

Definition at line 217 of file G4MTRunManager.hh.

Here is the caller graph for this function:

const CLHEP::HepRandomEngine* G4MTRunManager::getMasterRandomEngine ( ) const
inline

Definition at line 153 of file G4MTRunManager.hh.

Here is the caller graph for this function:

G4MTRunManager * G4MTRunManager::GetMasterRunManager ( )
static

Definition at line 64 of file G4MTRunManager.cc.

Here is the caller graph for this function:

G4RunManagerKernel * G4MTRunManager::GetMasterRunManagerKernel ( )
static

Definition at line 73 of file G4MTRunManager.cc.

Here is the caller graph for this function:

static G4ScoringManager* G4MTRunManager::GetMasterScoringManager ( )
inlinestatic

Definition at line 150 of file G4MTRunManager.hh.

Here is the caller graph for this function:

static masterWorlds_t& G4MTRunManager::GetMasterWorlds ( )
inlinestatic

Definition at line 151 of file G4MTRunManager.hh.

Here is the caller graph for this function:

G4MTRunManagerKernel * G4MTRunManager::GetMTMasterRunManagerKernel ( )
static

Definition at line 78 of file G4MTRunManager.cc.

G4int G4MTRunManager::GetNumberOfThreads ( ) const
inline

Definition at line 56 of file G4MTRunManager.hh.

Here is the caller graph for this function:

void G4MTRunManager::Initialize ( void  )
virtual

G4UImanager::GetUIpointer()->SetIgnoreCmdNotFound(true);

Reimplemented from G4RunManager.

Definition at line 204 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::InitializeEventLoop ( G4int  n_event,
const char *  macroFile = 0,
G4int  n_select = -1 
)
virtual

Reimplemented from G4RunManager.

Definition at line 265 of file G4MTRunManager.cc.

Here is the call graph for this function:

void G4MTRunManager::InitializePhysics ( )
virtual

Reimplemented from G4RunManager.

Definition at line 523 of file G4MTRunManager.cc.

Here is the call graph for this function:

virtual G4bool G4MTRunManager::InitializeSeeds ( G4int  )
inlineprotectedvirtual

Definition at line 90 of file G4MTRunManager.hh.

Here is the caller graph for this function:

void G4MTRunManager::MergeRun ( const G4Run *  localRun)

Definition at line 452 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::MergeScores ( const G4ScoringManager *  localScoringManager)

Definition at line 446 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::NewActionRequest ( G4MTRunManager::WorkerActionRequest  newRequest)
protectedvirtual

Reimplemented in tbbMasterRunManager.

Definition at line 800 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::PrepareCommandsStack ( )
protectedvirtual

Definition at line 227 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::ProcessOneEvent ( G4int  i_event)
virtual

Reimplemented from G4RunManager.

Definition at line 218 of file G4MTRunManager.cc.

void G4MTRunManager::RefillSeeds ( )
protected

Definition at line 341 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::RunTermination ( )
virtual

Reimplemented from G4RunManager.

Reimplemented in tbbMasterRunManager.

Definition at line 353 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::SetEventModulo ( G4int  i = 1)
inline

Definition at line 216 of file G4MTRunManager.hh.

void G4MTRunManager::SetNumberOfThreads ( G4int  n)

Definition at line 179 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

G4bool G4MTRunManager::SetUpAnEvent ( G4Event *  evt,
long &  s1,
long &  s2,
long &  s3 
)
virtual

Definition at line 458 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

G4int G4MTRunManager::SetUpNEvents ( G4Event *  evt,
G4SeedsQueue *  seedsQueue 
)
virtual

Definition at line 477 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::SetUserAction ( G4UserRunAction *  userAction)
virtual

Reimplemented from G4RunManager.

Definition at line 410 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::SetUserAction ( G4VUserPrimaryGeneratorAction *  userAction)
virtual

Reimplemented from G4RunManager.

Definition at line 416 of file G4MTRunManager.cc.

Here is the call graph for this function:

void G4MTRunManager::SetUserAction ( G4UserEventAction *  userAction)
virtual

Reimplemented from G4RunManager.

Definition at line 422 of file G4MTRunManager.cc.

Here is the call graph for this function:

void G4MTRunManager::SetUserAction ( G4UserStackingAction *  userAction)
virtual

Reimplemented from G4RunManager.

Definition at line 428 of file G4MTRunManager.cc.

Here is the call graph for this function:

void G4MTRunManager::SetUserAction ( G4UserTrackingAction *  userAction)
virtual

Reimplemented from G4RunManager.

Definition at line 434 of file G4MTRunManager.cc.

Here is the call graph for this function:

void G4MTRunManager::SetUserAction ( G4UserSteppingAction *  userAction)
virtual

Reimplemented from G4RunManager.

Definition at line 440 of file G4MTRunManager.cc.

Here is the call graph for this function:

void G4MTRunManager::SetUserInitialization ( G4VUserPhysicsList *  userPL)
virtual

Reimplemented from G4RunManager.

Definition at line 399 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::SetUserInitialization ( G4VUserDetectorConstruction *  userDC)
virtual

Reimplemented from G4RunManager.

Definition at line 405 of file G4MTRunManager.cc.

Here is the call graph for this function:

void G4MTRunManager::SetUserInitialization ( G4UserWorkerInitialization *  userInit)
virtual

Reimplemented from G4RunManager.

Definition at line 383 of file G4MTRunManager.cc.

void G4MTRunManager::SetUserInitialization ( G4UserWorkerThreadInitialization *  userInit)
virtual

Reimplemented from G4RunManager.

Definition at line 388 of file G4MTRunManager.cc.

void G4MTRunManager::SetUserInitialization ( G4VUserActionInitialization *  userInit)
virtual

Reimplemented from G4RunManager.

Definition at line 393 of file G4MTRunManager.cc.

Here is the call graph for this function:

void G4MTRunManager::StoreRNGStatus ( const G4String &  filenamePrefix)
protectedvirtual

Reimplemented from G4RunManager.

Definition at line 172 of file G4MTRunManager.cc.

void G4MTRunManager::TerminateEventLoop ( )
virtual

Reimplemented from G4RunManager.

Definition at line 214 of file G4MTRunManager.cc.

void G4MTRunManager::TerminateOneEvent ( )
virtual

Reimplemented from G4RunManager.

Definition at line 222 of file G4MTRunManager.cc.

void G4MTRunManager::TerminateWorkers ( )
protectedvirtual

Reimplemented in tbbMasterRunManager.

Definition at line 502 of file G4MTRunManager.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MTRunManager::ThisWorkerEndEventLoop ( )
virtual

Reimplemented in tbbMasterRunManager.

Definition at line 780 of file G4MTRunManager.cc.

Here is the caller graph for this function:

void G4MTRunManager::ThisWorkerReady ( )
virtual

Reimplemented in tbbMasterRunManager.

Definition at line 718 of file G4MTRunManager.cc.

Here is the caller graph for this function:

G4MTRunManager::WorkerActionRequest G4MTRunManager::ThisWorkerWaitForNextAction ( )
virtual

Reimplemented in tbbMasterRunManager.

Definition at line 841 of file G4MTRunManager.cc.

Here is the caller graph for this function:

void G4MTRunManager::WaitForEndEventLoopWorkers ( )
protectedvirtual

Reimplemented in tbbMasterRunManager.

Definition at line 748 of file G4MTRunManager.cc.

Here is the caller graph for this function:

void G4MTRunManager::WaitForReadyWorkers ( )
protectedvirtual

Reimplemented in tbbMasterRunManager.

Definition at line 662 of file G4MTRunManager.cc.

Here is the caller graph for this function:

Member Data Documentation

G4int G4MTRunManager::eventModulo
protected

Definition at line 206 of file G4MTRunManager.hh.

G4int G4MTRunManager::eventModuloDef
protected

Definition at line 205 of file G4MTRunManager.hh.

WorkerActionRequest G4MTRunManager::nextActionRequest
protected

Definition at line 201 of file G4MTRunManager.hh.

G4int G4MTRunManager::nSeedsFilled
protected

Definition at line 208 of file G4MTRunManager.hh.

G4int G4MTRunManager::nSeedsMax
protected

Definition at line 209 of file G4MTRunManager.hh.

G4int G4MTRunManager::nSeedsPerEvent
protected

Definition at line 210 of file G4MTRunManager.hh.

G4int G4MTRunManager::nSeedsUsed
protected

Definition at line 207 of file G4MTRunManager.hh.

G4int G4MTRunManager::numberOfEventToBeProcessed
protected

Definition at line 130 of file G4MTRunManager.hh.

double* G4MTRunManager::randDbl
protected

Definition at line 211 of file G4MTRunManager.hh.


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