Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4RunManager Class Reference

#include <G4RunManager.hh>

Inheritance diagram for G4RunManager:
Collaboration diagram for G4RunManager:

Public Types

enum  RMType { sequentialRM, masterRM, workerRM }
 

Public Member Functions

 G4RunManager ()
 
virtual ~G4RunManager ()
 
virtual void BeamOn (G4int n_event, const char *macroFile=0, G4int n_select=-1)
 
virtual void Initialize ()
 
virtual void DefineWorldVolume (G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
 
virtual void AbortRun (G4bool softAbort=false)
 
virtual void AbortEvent ()
 
virtual void InitializeGeometry ()
 
virtual void InitializePhysics ()
 
virtual G4bool ConfirmBeamOnCondition ()
 
virtual void RunInitialization ()
 
virtual void DoEventLoop (G4int n_event, const char *macroFile=0, G4int n_select=-1)
 
virtual void RunTermination ()
 
virtual void InitializeEventLoop (G4int n_event, const char *macroFile=0, G4int n_select=-1)
 
virtual void ProcessOneEvent (G4int i_event)
 
virtual void TerminateOneEvent ()
 
virtual void TerminateEventLoop ()
 
virtual G4EventGenerateEvent (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)
 
virtual void SetUserInitialization (G4VUserDetectorConstruction *userInit)
 
virtual void SetUserInitialization (G4VUserPhysicsList *userInit)
 
virtual void SetUserInitialization (G4VUserActionInitialization *userInit)
 
virtual void SetUserInitialization (G4UserWorkerInitialization *userInit)
 
virtual void SetUserInitialization (G4UserWorkerThreadInitialization *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)
 
const G4VUserDetectorConstructionGetUserDetectorConstruction () const
 
const G4VUserPhysicsListGetUserPhysicsList () const
 
const G4VUserActionInitializationGetUserActionInitialization () const
 
G4VUserActionInitializationGetNonConstUserActionInitialization () const
 
const G4UserWorkerInitializationGetUserWorkerInitialization () const
 
const
G4UserWorkerThreadInitialization
GetUserWorkerThreadInitialization () const
 
const G4UserRunActionGetUserRunAction () const
 
const
G4VUserPrimaryGeneratorAction
GetUserPrimaryGeneratorAction () const
 
const G4UserEventActionGetUserEventAction () const
 
const G4UserStackingActionGetUserStackingAction () const
 
const G4UserTrackingActionGetUserTrackingAction () const
 
const G4UserSteppingActionGetUserSteppingAction () const
 
void SetNumberOfAdditionalWaitingStacks (G4int iAdd)
 
const G4StringGetVersionString () 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 G4StringGetRandomNumberStoreDir () const
 
const G4StringGetRandomNumberStatusForThisRun () const
 
const G4StringGetRandomNumberStatusForThisEvent () 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 G4RunGetCurrentRun () const
 
G4RunGetNonConstCurrentRun () const
 
const G4EventGetCurrentEvent () const
 
const G4EventGetPreviousEvent (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
 
virtual void ConstructScoringWorlds ()
 
virtual void RestoreRndmEachEvent (G4bool)
 

Static Public Member Functions

static G4RunManagerGetRunManager ()
 
static G4bool IfGeometryHasBeenDestroyed ()
 

Protected Member Functions

void CleanUpPreviousEvents ()
 
void CleanUpUnnecessaryEvents (G4int keepNEvents)
 
void StackPreviousEvent (G4Event *anEvent)
 
 G4RunManager (RMType rmType)
 
virtual void StoreRNGStatus (const G4String &filenamePrefix)
 
void UpdateScoring ()
 
virtual void DeleteUserInitializations ()
 

Protected Attributes

G4RunManagerKernelkernel
 
G4EventManagereventManager
 
G4VUserDetectorConstructionuserDetector
 
G4VUserPhysicsListphysicsList
 
G4VUserActionInitializationuserActionInitialization
 
G4UserWorkerInitializationuserWorkerInitialization
 
G4UserWorkerThreadInitializationuserWorkerThreadInitialization
 
G4UserRunActionuserRunAction
 
G4VUserPrimaryGeneratorActionuserPrimaryGeneratorAction
 
G4UserEventActionuserEventAction
 
G4UserStackingActionuserStackingAction
 
G4UserTrackingActionuserTrackingAction
 
G4UserSteppingActionuserSteppingAction
 
G4bool geometryInitialized
 
G4bool physicsInitialized
 
G4bool runAborted
 
G4bool initializedAtLeastOnce
 
G4bool geometryToBeOptimized
 
G4int runIDCounter
 
G4int verboseLevel
 
G4int printModulo
 
G4Timertimer
 
G4DCtableDCtable
 
G4RuncurrentRun
 
G4EventcurrentEvent
 
std::list< G4Event * > * previousEvents
 
G4int n_perviousEventsToBeStored
 
G4int numberOfEventToBeProcessed
 
G4bool storeRandomNumberStatus
 
G4int storeRandomNumberStatusToG4Event
 
G4String randomNumberStatusDir
 
G4String randomNumberStatusForThisRun
 
G4String randomNumberStatusForThisEvent
 
G4bool rngStatusEventsFlag
 
G4VPhysicalVolumecurrentWorld
 
G4int nParallelWorlds
 
G4String msgText
 
G4int n_select_msg
 
G4int numberOfEventProcessed
 
G4String selectMacro
 
G4bool fakeRun
 
RMType runManagerType
 

Static Protected Attributes

static G4bool fGeometryHasBeenDestroyed = false
 

Detailed Description

Definition at line 138 of file G4RunManager.hh.

Member Enumeration Documentation

Enumerator
sequentialRM 
masterRM 
workerRM 

Definition at line 268 of file G4RunManager.hh.

Constructor & Destructor Documentation

G4RunManager::G4RunManager ( )

Definition at line 82 of file G4RunManager.cc.

89  runAborted(false),initializedAtLeastOnce(false),
97 {
98  if(fRunManager)
99  {
100  G4Exception("G4RunManager::G4RunManager()", "Run0031",
101  FatalException, "G4RunManager constructed twice.");
102  }
103  fRunManager = this;
104 
105  kernel = new G4RunManagerKernel();
107 
108  timer = new G4Timer();
109  runMessenger = new G4RunMessenger(this);
110  previousEvents = new std::list<G4Event*>;
113  randomNumberStatusDir = "./";
114  std::ostringstream oss;
115  G4Random::saveFullState(oss);
116  randomNumberStatusForThisRun = oss.str();
117  randomNumberStatusForThisEvent = oss.str();
119 }
G4Timer * timer
G4int numberOfEventToBeProcessed
G4int n_select_msg
G4int numberOfEventProcessed
G4UserTrackingAction * userTrackingAction
G4String randomNumberStatusForThisRun
G4VUserPhysicsList * physicsList
G4String randomNumberStatusForThisEvent
G4EventManager * GetEventManager() const
G4UImessenger * CreateMessenger()
G4VUserActionInitialization * userActionInitialization
G4bool storeRandomNumberStatus
G4UImessenger * CreateMessenger()
G4UserWorkerThreadInitialization * userWorkerThreadInitialization
G4bool physicsInitialized
G4VPhysicalVolume * currentWorld
RMType runManagerType
G4String msgText
G4bool runAborted
G4Event * currentEvent
G4bool geometryInitialized
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction
G4bool initializedAtLeastOnce
G4bool geometryToBeOptimized
G4UserWorkerInitialization * userWorkerInitialization
G4String randomNumberStatusDir
G4bool rngStatusEventsFlag
G4int storeRandomNumberStatusToG4Event
G4UserEventAction * userEventAction
std::list< G4Event * > * previousEvents
G4UserRunAction * userRunAction
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4int runIDCounter
G4String selectMacro
static G4ParticleTable * GetParticleTable()
G4int nParallelWorlds
G4Run * currentRun
G4RunManagerKernel * kernel
G4EventManager * eventManager
G4VUserDetectorConstruction * userDetector
G4UserSteppingAction * userSteppingAction
static G4ProcessTable * GetProcessTable()
G4DCtable * DCtable
G4int n_perviousEventsToBeStored
G4int verboseLevel
G4UserStackingAction * userStackingAction

Here is the call graph for this function:

G4RunManager::~G4RunManager ( )
virtual

Definition at line 183 of file G4RunManager.cc.

184 {
186  // set the application state to the quite state
187  if(pStateManager->GetCurrentState()!=G4State_Quit)
188  {
189  if(verboseLevel>0) G4cout << "G4 kernel has come to Quit state." << G4endl;
190  pStateManager->SetNewState(G4State_Quit);
191  }
192 
194  if(currentRun) delete currentRun;
195  delete timer;
196  delete runMessenger;
199  delete previousEvents;
200 
201  //The following will work for all RunManager types
202  //if derived class does the correct thing in derived
203  //destructor that is set to zero pointers of
204  //user initialization objects for which does not have
205  //ownership
207  if(userRunAction)
208  {
209  delete userRunAction;
210  userRunAction = 0;
211  if(verboseLevel>1) G4cout << "UserRunAction deleted." << G4endl;
212  }
214  {
217  if(verboseLevel>1) G4cout << "UserPrimaryGenerator deleted." << G4endl;
218  }
219 
220  if(verboseLevel>1) G4cout << "RunManager is deleting RunManagerKernel." << G4endl;
221 
222  delete kernel;
223 
224  fRunManager = 0;
225 }
G4Timer * timer
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction
static G4StateManager * GetStateManager()
G4GLOB_DLL std::ostream G4cout
G4bool SetNewState(G4ApplicationState requestedState)
virtual void DeleteUserInitializations()
G4ApplicationState GetCurrentState() const
std::list< G4Event * > * previousEvents
G4UserRunAction * userRunAction
static G4ParticleTable * GetParticleTable()
void CleanUpPreviousEvents()
G4Run * currentRun
#define G4endl
Definition: G4ios.hh:61
G4RunManagerKernel * kernel
static G4ProcessTable * GetProcessTable()
G4int verboseLevel

Here is the call graph for this function:

G4RunManager::G4RunManager ( RMType  rmType)
protected

Definition at line 121 of file G4RunManager.cc.

128  runAborted(false),initializedAtLeastOnce(false),
130  verboseLevel(0),printModulo(-1),DCtable(0),
136 {
137  //This version of the constructor should never be called in sequential mode!
138 #ifndef G4MULTITHREADED
140  msg<<"Geant4 code is compiled without multi-threading support (-DG4MULTITHREADED is set to off).";
141  msg<<" This type of RunManager can only be used in mult-threaded applications.";
142  G4Exception("G4RunManager::G4RunManager(G4bool)","Run0107",FatalException,msg);
143 #endif
144 
145  if(fRunManager)
146  {
147  G4Exception("G4RunManager::G4RunManager()", "Run0031",
148  FatalException, "G4RunManager constructed twice.");
149  return;
150  }
151  fRunManager = this;
152 
153  switch(rmType)
154  {
155  case masterRM:
157  break;
158  case workerRM:
160  break;
161  default:
163  msgx<<" This type of RunManager can only be used in mult-threaded applications.";
164  G4Exception("G4RunManager::G4RunManager(G4bool)","Run0108",FatalException,msgx);
165  return;
166  }
167  runManagerType = rmType;
168 
170 
171  timer = new G4Timer();
172  runMessenger = new G4RunMessenger(this);
173  previousEvents = new std::list<G4Event*>;
176  randomNumberStatusDir = "./";
177  std::ostringstream oss;
178  G4Random::saveFullState(oss);
179  randomNumberStatusForThisRun = oss.str();
180  randomNumberStatusForThisEvent = oss.str();
181 }
G4Timer * timer
G4int numberOfEventToBeProcessed
G4int n_select_msg
G4int numberOfEventProcessed
G4UserTrackingAction * userTrackingAction
G4String randomNumberStatusForThisRun
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
G4VUserPhysicsList * physicsList
G4String randomNumberStatusForThisEvent
G4EventManager * GetEventManager() const
G4UImessenger * CreateMessenger()
G4VUserActionInitialization * userActionInitialization
G4bool storeRandomNumberStatus
G4UImessenger * CreateMessenger()
G4UserWorkerThreadInitialization * userWorkerThreadInitialization
G4bool physicsInitialized
G4VPhysicalVolume * currentWorld
RMType runManagerType
G4String msgText
G4bool runAborted
G4Event * currentEvent
G4bool geometryInitialized
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction
G4bool initializedAtLeastOnce
G4bool geometryToBeOptimized
G4UserWorkerInitialization * userWorkerInitialization
G4String randomNumberStatusDir
G4bool rngStatusEventsFlag
G4int storeRandomNumberStatusToG4Event
G4UserEventAction * userEventAction
std::list< G4Event * > * previousEvents
G4UserRunAction * userRunAction
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4int runIDCounter
G4String selectMacro
static G4ParticleTable * GetParticleTable()
G4int nParallelWorlds
G4Run * currentRun
G4RunManagerKernel * kernel
G4EventManager * eventManager
G4VUserDetectorConstruction * userDetector
G4UserSteppingAction * userSteppingAction
static G4ProcessTable * GetProcessTable()
G4DCtable * DCtable
G4int n_perviousEventsToBeStored
G4int verboseLevel
G4UserStackingAction * userStackingAction

Here is the call graph for this function:

Member Function Documentation

void G4RunManager::AbortEvent ( )
virtual

Reimplemented in G4MTRunManager.

Definition at line 637 of file G4RunManager.cc.

638 {
639  // This method is valid only for EventProc state
640  G4ApplicationState currentState =
642  if(currentState==G4State_EventProc)
643  {
646  }
647  else
648  {
649  G4cerr << "Event is not in progress. AbortEevnt() ignored." << G4endl;
650  }
651 }
G4Event * currentEvent
static G4StateManager * GetStateManager()
G4ApplicationState GetCurrentState() const
void SetEventAborted()
Definition: G4Event.hh:123
void AbortCurrentEvent()
#define G4endl
Definition: G4ios.hh:61
G4EventManager * eventManager
G4ApplicationState
G4GLOB_DLL std::ostream G4cerr

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented in G4MTRunManager.

Definition at line 617 of file G4RunManager.cc.

618 {
619  // This method is valid only for GeomClosed or EventProc state
620  G4ApplicationState currentState =
622  if(currentState==G4State_GeomClosed || currentState==G4State_EventProc)
623  {
624  runAborted = true;
625  if(currentState==G4State_EventProc && !softAbort)
626  {
629  }
630  }
631  else
632  {
633  G4cerr << "Run is not in progress. AbortRun() ignored." << G4endl;
634  }
635 }
G4bool runAborted
G4Event * currentEvent
static G4StateManager * GetStateManager()
G4ApplicationState GetCurrentState() const
void SetEventAborted()
Definition: G4Event.hh:123
void AbortCurrentEvent()
#define G4endl
Definition: G4ios.hh:61
G4EventManager * eventManager
G4ApplicationState
G4GLOB_DLL std::ostream G4cerr

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::AnalyzeEvent ( G4Event anEvent)
virtual

Definition at line 470 of file G4RunManager.cc.

471 {
473  if(fPersM) fPersM->Store(anEvent);
474  currentRun->RecordEvent(anEvent);
475 }
virtual G4bool Store(const G4Event *anEvent)=0
virtual void RecordEvent(const G4Event *)
Definition: G4Run.cc:51
G4Run * currentRun
static G4VPersistencyManager * GetPersistencyManager()

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 262 of file G4RunManager.cc.

263 {
264  if(n_event<=0) { fakeRun = true; }
265  else { fakeRun = false; }
267  if(cond)
268  {
269  numberOfEventToBeProcessed = n_event;
273  DoEventLoop(n_event,macroFile,n_select);
274  RunTermination();
275  }
276  fakeRun = false;
277 }
G4int numberOfEventToBeProcessed
G4int numberOfEventProcessed
virtual void RunTermination()
virtual void RunInitialization()
virtual G4bool ConfirmBeamOnCondition()
bool G4bool
Definition: G4Types.hh:79
virtual void ConstructScoringWorlds()
virtual void DoEventLoop(G4int n_event, const char *macroFile=0, G4int n_select=-1)

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::CleanUpPreviousEvents ( )
protected

Definition at line 491 of file G4RunManager.cc.

492 {
493  // Delete all events carried over from previous run.
494  // This method is invoked at the beginning of the next run
495  // or from the destructor of G4RunManager at the very end of
496  // the program.
497  // N.B. If ToBeKept() is true, the pointer of this event is
498  // kept in G4Run of the previous run, and deleted along with
499  // the deletion of G4Run.
500 
501  std::list<G4Event*>::iterator evItr = previousEvents->begin();
502  while(evItr!=previousEvents->end())
503  {
504  G4Event* evt = *evItr;
505  if(evt && !(evt->ToBeKept())) delete evt;
506  evItr = previousEvents->erase(evItr);
507  }
508 }
G4bool ToBeKept() const
Definition: G4Event.hh:137
std::list< G4Event * > * previousEvents

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::CleanUpUnnecessaryEvents ( G4int  keepNEvents)
protected

Definition at line 510 of file G4RunManager.cc.

511 {
512  // Delete events that are no longer necessary for post
513  // processing such as visualization.
514  // N.B. If ToBeKept() is true, the pointer of this event is
515  // kept in G4Run of the previous run, and deleted along with
516  // the deletion of G4Run.
517 
518  std::list<G4Event*>::iterator evItr = previousEvents->begin();
519  while(evItr!=previousEvents->end())
520  {
521  if(G4int(previousEvents->size()) <= keepNEvents) return;
522 
523  G4Event* evt = *evItr;
524  if(evt)
525  {
526  if(evt->GetNumberOfGrips()==0)
527  {
528  if(!(evt->ToBeKept())) delete evt;
529  evItr = previousEvents->erase(evItr);
530  }
531  else
532  { evItr++; }
533  }
534  else
535  { evItr = previousEvents->erase(evItr); }
536  }
537 }
G4int GetNumberOfGrips() const
Definition: G4Event.hh:147
int G4int
Definition: G4Types.hh:78
G4bool ToBeKept() const
Definition: G4Event.hh:137
std::list< G4Event * > * previousEvents

Here is the call graph for this function:

Here is the caller graph for this function:

G4bool G4RunManager::ConfirmBeamOnCondition ( )
virtual

Definition at line 279 of file G4RunManager.cc.

280 {
282 
283  G4ApplicationState currentState = stateManager->GetCurrentState();
284  if(currentState!=G4State_PreInit && currentState!=G4State_Idle)
285  {
286  G4cerr << "Illegal application state - BeamOn() ignored." << G4endl;
287  return false;
288  }
289 
291  {
292  G4cerr << " Geant4 kernel should be initialized" << G4endl;
293  G4cerr << "before the first BeamOn(). - BeamOn ignored." << G4endl;
294  return false;
295  }
296 
298  {
299  if(verboseLevel>0)
300  {
301  G4cout << "Start re-initialization because " << G4endl;
302  if(!geometryInitialized) G4cout << " Geometry" << G4endl;
303  if(!physicsInitialized) G4cout << " Physics processes" << G4endl;
304  G4cout << "has been modified since last Run." << G4endl;
305  }
306  Initialize();
307  }
308  return true;
309 }
G4bool physicsInitialized
G4bool geometryInitialized
G4bool initializedAtLeastOnce
static G4StateManager * GetStateManager()
G4GLOB_DLL std::ostream G4cout
G4ApplicationState GetCurrentState() const
virtual void Initialize()
#define G4endl
Definition: G4ios.hh:61
G4ApplicationState
G4int verboseLevel
G4GLOB_DLL std::ostream G4cerr

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::ConstructScoringWorlds ( )
virtual

Reimplemented in G4WorkerRunManager, and G4MTRunManager.

Definition at line 739 of file G4RunManager.cc.

740 {
742  if(!ScM) return;
743 
744  G4int nPar = ScM->GetNumberOfMesh();
745  if(nPar<1) return;
746 
749  for(G4int iw=0;iw<nPar;iw++)
750  {
751  G4VScoringMesh* mesh = ScM->GetMesh(iw);
753 
754  G4VPhysicalVolume* pWorld
756  ->IsWorldExisting(ScM->GetWorldName(iw));
757  if(!pWorld)
758  {
760  ->GetParallelWorld(ScM->GetWorldName(iw));
761  pWorld->SetName(ScM->GetWorldName(iw));
762 
763  G4ParallelWorldProcess* theParallelWorldProcess
764  = mesh->GetParallelWorldProcess();
765  if(theParallelWorldProcess)
766  { theParallelWorldProcess->SetParallelWorld(ScM->GetWorldName(iw)); }
767  else
768  {
769  theParallelWorldProcess = new G4ParallelWorldProcess(ScM->GetWorldName(iw));
770  mesh->SetParallelWorldProcess(theParallelWorldProcess);
771  theParallelWorldProcess->SetParallelWorld(ScM->GetWorldName(iw));
772 
773  theParticleIterator->reset();
774  while( (*theParticleIterator)() ){
775  G4ParticleDefinition* particle = theParticleIterator->value();
776  G4ProcessManager* pmanager = particle->GetProcessManager();
777  if(pmanager)
778  {
779  pmanager->AddProcess(theParallelWorldProcess);
780  if(theParallelWorldProcess->IsAtRestRequired(particle))
781  { pmanager->SetProcessOrdering(theParallelWorldProcess, idxAtRest, 9900); }
782  pmanager->SetProcessOrderingToSecond(theParallelWorldProcess, idxAlongStep);
783  pmanager->SetProcessOrdering(theParallelWorldProcess, idxPostStep, 9900);
784  }
785  }
786  }
787  }
788 
789  mesh->Construct(pWorld);
790  }
791 
793 }
void GeometryHasBeenModified(G4bool prop=true)
G4VPhysicalVolume * IsWorldExisting(const G4String &worldName)
void SetParallelWorldProcess(G4ParallelWorldProcess *proc)
G4String GetWorldName(G4int i) const
static G4bool fGeometryHasBeenDestroyed
void GeometryHasBeenDestroyed()
void SetProcessOrderingToSecond(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4bool IsAtRestRequired(G4ParticleDefinition *)
void SetName(const G4String &pName)
int G4int
Definition: G4Types.hh:78
void Construct(G4VPhysicalVolume *fWorldPhys)
void SetParallelWorld(G4String parallelWorldName)
void reset(G4bool ifSkipIon=true)
static G4ScoringManager * GetScoringManagerIfExist()
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
#define theParticleIterator
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
static G4TransportationManager * GetTransportationManager()
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
static G4ParticleTable * GetParticleTable()
G4ProcessManager * GetProcessManager() const
G4ParallelWorldProcess * GetParallelWorldProcess() const
size_t GetNumberOfMesh() const
G4VScoringMesh * GetMesh(G4int i) const
G4PTblDicIterator * GetIterator() const

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::CutOffHasBeenModified ( )
inline

Definition at line 479 of file G4RunManager.hh.

480  {
481  G4cerr << "CutOffHasBeenModified becomes obsolete." << G4endl;
482  G4cerr << "It is safe to remove invoking this method." << G4endl;
483  }
#define G4endl
Definition: G4ios.hh:61
G4GLOB_DLL std::ostream G4cerr
void G4RunManager::DefineWorldVolume ( G4VPhysicalVolume worldVol,
G4bool  topologyIsChanged = true 
)
virtual

Definition at line 653 of file G4RunManager.cc.

655 {
656  kernel->DefineWorldVolume(worldVol,topologyIsChanged);
657 }
G4RunManagerKernel * kernel
void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::DeleteUserInitializations ( )
protectedvirtual

Definition at line 227 of file G4RunManager.cc.

228 {
229  if( userDetector )
230  {
231  delete userDetector;
232  userDetector = 0;
233  if(verboseLevel>1) G4cout << "UserDetectorConstruction deleted." << G4endl;
234  }
235  if(physicsList)
236  {
237  delete physicsList;
238  physicsList = 0;
239  if(verboseLevel>1) G4cout << "UserPhysicsList deleted." << G4endl;
240  }
242  {
245  if(verboseLevel>1) G4cout <<"UserActionInitialization deleted." << G4endl;
246  }
248  {
251  if(verboseLevel>1) G4cout <<"UserWorkerInitialization deleted." << G4endl;
252  }
254  {
257  if(verboseLevel>1) G4cout <<"UserWorkerThreadInitialization deleted." << G4endl;
258  }
259 
260 }
G4VUserPhysicsList * physicsList
G4VUserActionInitialization * userActionInitialization
G4UserWorkerThreadInitialization * userWorkerThreadInitialization
G4GLOB_DLL std::ostream G4cout
G4UserWorkerInitialization * userWorkerInitialization
#define G4endl
Definition: G4ios.hh:61
G4VUserDetectorConstruction * userDetector
G4int verboseLevel

Here is the caller graph for this function:

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

Reimplemented in G4WorkerRunManager.

Definition at line 360 of file G4RunManager.cc.

361 {
362  InitializeEventLoop(n_event,macroFile,n_select);
363 
364 // Event loop
365  for(G4int i_event=0; i_event<n_event; i_event++ )
366  {
367  ProcessOneEvent(i_event);
369  if(runAborted) break;
370  }
371 
372  // For G4MTRunManager, TerminateEventLoop() is invoked after all threads are finished.
374 }
virtual void ProcessOneEvent(G4int i_event)
virtual void TerminateEventLoop()
RMType runManagerType
int G4int
Definition: G4Types.hh:78
G4bool runAborted
virtual void InitializeEventLoop(G4int n_event, const char *macroFile=0, G4int n_select=-1)
virtual void TerminateOneEvent()

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::DumpRegion ( const G4String rname) const

Definition at line 716 of file G4RunManager.cc.

717 {
718  kernel->DumpRegion(rname);
719 }
void DumpRegion(const G4String &rname) const
G4RunManagerKernel * kernel

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::DumpRegion ( G4Region region = 0) const

Definition at line 721 of file G4RunManager.cc.

722 {
723  kernel->DumpRegion(region);
724 }
void DumpRegion(const G4String &rname) const
G4RunManagerKernel * kernel

Here is the call graph for this function:

G4Event * G4RunManager::GenerateEvent ( G4int  i_event)
virtual

Reimplemented in G4WorkerRunManager.

Definition at line 429 of file G4RunManager.cc.

430 {
432  {
433  G4Exception("G4RunManager::GenerateEvent()", "Run0032", FatalException,
434  "G4VUserPrimaryGeneratorAction is not defined!");
435  return 0;
436  }
437 
438  G4Event* anEvent = new G4Event(i_event);
439 
441  {
442  std::ostringstream oss;
443  G4Random::saveFullState(oss);
444  randomNumberStatusForThisEvent = oss.str();
446  }
447 
449  G4String fileN = "currentEvent";
450  if ( rngStatusEventsFlag ) {
451  std::ostringstream os;
452  os << "run" << currentRun->GetRunID() << "evt" << anEvent->GetEventID();
453  fileN = os.str();
454  }
455  StoreRNGStatus(fileN);
456  }
457 
458  if(printModulo > 0 && anEvent->GetEventID()%printModulo == 0 )
459  { G4cout << "--> Event " << anEvent->GetEventID() << " starts." << G4endl; }
461  return anEvent;
462 }
G4String randomNumberStatusForThisEvent
G4bool storeRandomNumberStatus
G4int GetEventID() const
Definition: G4Event.hh:151
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction
G4GLOB_DLL std::ostream G4cout
G4bool rngStatusEventsFlag
G4int storeRandomNumberStatusToG4Event
G4int GetRunID() const
Definition: G4Run.hh:76
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
void SetRandomNumberStatus(G4String &st)
Definition: G4Event.hh:125
virtual void GeneratePrimaries(G4Event *anEvent)=0
virtual void StoreRNGStatus(const G4String &filenamePrefix)
G4Run * currentRun
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::GeometryHasBeenModified ( G4bool  prop = true)

Definition at line 909 of file G4RunManager.cc.

910 {
911  if(prop)
912  { G4UImanager::GetUIpointer()->ApplyCommand("/run/geometryModified"); }
913  else
915 }
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4RunManagerKernel * kernel
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function:

Here is the caller graph for this function:

const G4Event* G4RunManager::GetCurrentEvent ( ) const
inline

Definition at line 532 of file G4RunManager.hh.

533  { return currentEvent; }
G4Event * currentEvent

Here is the caller graph for this function:

const G4Run* G4RunManager::GetCurrentRun ( ) const
inline

Definition at line 526 of file G4RunManager.hh.

527  { return currentRun; }
G4Run * currentRun

Here is the caller graph for this function:

G4int G4RunManager::GetFlagRandomNumberStatusToG4Event ( ) const
inline

Definition at line 407 of file G4RunManager.hh.

G4int storeRandomNumberStatusToG4Event

Here is the caller graph for this function:

G4bool G4RunManager::GetGeometryToBeOptimized ( )
inline

Definition at line 516 of file G4RunManager.hh.

517  { return geometryToBeOptimized; }
G4bool geometryToBeOptimized
G4Run* G4RunManager::GetNonConstCurrentRun ( ) const
inline

Definition at line 528 of file G4RunManager.hh.

529  { return currentRun; }
G4Run * currentRun
G4VUserActionInitialization* G4RunManager::GetNonConstUserActionInitialization ( ) const
inline

Definition at line 365 of file G4RunManager.hh.

366  { return userActionInitialization; }
G4VUserActionInitialization * userActionInitialization

Here is the caller graph for this function:

G4int G4RunManager::GetNumberOfEventsToBeProcessed ( ) const
inline

Definition at line 560 of file G4RunManager.hh.

561  { return numberOfEventToBeProcessed; }
G4int numberOfEventToBeProcessed

Here is the caller graph for this function:

G4int G4RunManager::GetNumberOfParallelWorld ( ) const
inline

Definition at line 556 of file G4RunManager.hh.

557  { return nParallelWorlds; }
G4int nParallelWorlds
G4int G4RunManager::GetNumberOfSelectEvents ( ) const
inline

Definition at line 562 of file G4RunManager.hh.

563  { return n_select_msg; }
G4int n_select_msg

Here is the caller graph for this function:

const G4Event* G4RunManager::GetPreviousEvent ( G4int  i) const
inline

Definition at line 536 of file G4RunManager.hh.

537  {
538  if(i>=1 && i<=n_perviousEventsToBeStored)
539  {
540  std::list<G4Event*>::iterator itr = previousEvents->begin();
541  for(G4int j=1;j<i;j++) { itr++; }
542  return *itr;
543  }
544  return 0;
545  }
int G4int
Definition: G4Types.hh:78
std::list< G4Event * > * previousEvents
G4int n_perviousEventsToBeStored

Here is the caller graph for this function:

G4int G4RunManager::GetPrintProgress ( )
inline

Definition at line 502 of file G4RunManager.hh.

503  { return printModulo; }

Here is the caller graph for this function:

const G4String& G4RunManager::GetRandomNumberStatusForThisEvent ( ) const
inline

Definition at line 439 of file G4RunManager.hh.

440  {
442  { G4Exception("GrRunManager::SetRandomNumberStoreDir",
443  "Run0072",JustWarning,
444  "Random number status is not available for this event."); }
446  }
G4String randomNumberStatusForThisEvent
G4int storeRandomNumberStatusToG4Event
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

const G4String& G4RunManager::GetRandomNumberStatusForThisRun ( ) const
inline

Definition at line 437 of file G4RunManager.hh.

438  { return randomNumberStatusForThisRun; }
G4String randomNumberStatusForThisRun
G4bool G4RunManager::GetRandomNumberStore ( ) const
inline

Definition at line 413 of file G4RunManager.hh.

414  { return storeRandomNumberStatus; }
G4bool storeRandomNumberStatus
const G4String& G4RunManager::GetRandomNumberStoreDir ( ) const
inline

Definition at line 435 of file G4RunManager.hh.

436  { return randomNumberStatusDir; }
G4String randomNumberStatusDir

Here is the caller graph for this function:

G4bool G4RunManager::GetRandomNumberStorePerEvent ( ) const
inline

Definition at line 449 of file G4RunManager.hh.

450  { return rngStatusEventsFlag; }
G4bool rngStatusEventsFlag
G4RunManager * G4RunManager::GetRunManager ( )
static

Definition at line 79 of file G4RunManager.cc.

80 { return fRunManager; }

Here is the caller graph for this function:

RMType G4RunManager::GetRunManagerType ( ) const
inline

Definition at line 570 of file G4RunManager.hh.

571  { return runManagerType; }
RMType runManagerType

Here is the caller graph for this function:

G4String G4RunManager::GetSelectMacro ( ) const
inline

Definition at line 564 of file G4RunManager.hh.

565  { return selectMacro; }
G4String selectMacro

Here is the caller graph for this function:

const G4VUserActionInitialization* G4RunManager::GetUserActionInitialization ( ) const
inline

Definition at line 363 of file G4RunManager.hh.

364  { return userActionInitialization; }
G4VUserActionInitialization * userActionInitialization

Here is the caller graph for this function:

const G4VUserDetectorConstruction* G4RunManager::GetUserDetectorConstruction ( ) const
inline

Definition at line 359 of file G4RunManager.hh.

360  { return userDetector; }
G4VUserDetectorConstruction * userDetector

Here is the caller graph for this function:

const G4UserEventAction* G4RunManager::GetUserEventAction ( ) const
inline

Definition at line 375 of file G4RunManager.hh.

376  { return userEventAction; }
G4UserEventAction * userEventAction

Here is the caller graph for this function:

const G4VUserPhysicsList* G4RunManager::GetUserPhysicsList ( ) const
inline

Definition at line 361 of file G4RunManager.hh.

362  { return physicsList; }
G4VUserPhysicsList * physicsList

Here is the caller graph for this function:

const G4VUserPrimaryGeneratorAction* G4RunManager::GetUserPrimaryGeneratorAction ( ) const
inline

Definition at line 373 of file G4RunManager.hh.

374  { return userPrimaryGeneratorAction; }
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction

Here is the caller graph for this function:

const G4UserRunAction* G4RunManager::GetUserRunAction ( ) const
inline

Definition at line 371 of file G4RunManager.hh.

372  { return userRunAction; }
G4UserRunAction * userRunAction

Here is the caller graph for this function:

const G4UserStackingAction* G4RunManager::GetUserStackingAction ( ) const
inline

Definition at line 377 of file G4RunManager.hh.

378  { return userStackingAction; }
G4UserStackingAction * userStackingAction

Here is the caller graph for this function:

const G4UserSteppingAction* G4RunManager::GetUserSteppingAction ( ) const
inline

Definition at line 381 of file G4RunManager.hh.

382  { return userSteppingAction; }
G4UserSteppingAction * userSteppingAction

Here is the caller graph for this function:

const G4UserTrackingAction* G4RunManager::GetUserTrackingAction ( ) const
inline

Definition at line 379 of file G4RunManager.hh.

380  { return userTrackingAction; }
G4UserTrackingAction * userTrackingAction

Here is the caller graph for this function:

const G4UserWorkerInitialization* G4RunManager::GetUserWorkerInitialization ( ) const
inline

Definition at line 367 of file G4RunManager.hh.

368  { return userWorkerInitialization; }
G4UserWorkerInitialization * userWorkerInitialization

Here is the caller graph for this function:

const G4UserWorkerThreadInitialization* G4RunManager::GetUserWorkerThreadInitialization ( ) const
inline

Definition at line 369 of file G4RunManager.hh.

G4UserWorkerThreadInitialization * userWorkerThreadInitialization

Here is the caller graph for this function:

G4int G4RunManager::GetVerboseLevel ( ) const
inline

Definition at line 500 of file G4RunManager.hh.

501  { return verboseLevel; }
G4int verboseLevel

Here is the caller graph for this function:

const G4String& G4RunManager::GetVersionString ( ) const
inline

Definition at line 392 of file G4RunManager.hh.

393  { return kernel->GetVersionString(); }
const G4String & GetVersionString() const
G4RunManagerKernel * kernel

Here is the call graph for this function:

G4bool G4RunManager::IfGeometryHasBeenDestroyed ( )
static

Definition at line 71 of file G4RunManager.cc.

71 { return fGeometryHasBeenDestroyed; }
static G4bool fGeometryHasBeenDestroyed
void G4RunManager::Initialize ( void  )
virtual

Reimplemented in G4MTRunManager.

Definition at line 554 of file G4RunManager.cc.

555 {
557  G4ApplicationState currentState = stateManager->GetCurrentState();
558  if(currentState!=G4State_PreInit && currentState!=G4State_Idle)
559  {
560  G4cerr << "Illegal application state - "
561  << "G4RunManager::Initialize() ignored." << G4endl;
562  return;
563  }
564 
565  stateManager->SetNewState(G4State_Init);
568  initializedAtLeastOnce = true;
569  if(stateManager->GetCurrentState()!=G4State_Idle)
570  { stateManager->SetNewState(G4State_Idle); }
571 }
G4bool physicsInitialized
virtual void InitializePhysics()
virtual void InitializeGeometry()
G4bool geometryInitialized
G4bool initializedAtLeastOnce
static G4StateManager * GetStateManager()
G4bool SetNewState(G4ApplicationState requestedState)
G4ApplicationState GetCurrentState() const
#define G4endl
Definition: G4ios.hh:61
G4ApplicationState
G4GLOB_DLL std::ostream G4cerr

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented in G4MTRunManager.

Definition at line 376 of file G4RunManager.cc.

377 {
378  if(verboseLevel>0)
379  { timer->Start(); }
380 
381  n_select_msg = n_select;
382  if(macroFile!=0)
383  {
384  if(n_select_msg<0) n_select_msg = n_event;
385  msgText = "/control/execute ";
386  msgText += macroFile;
387  selectMacro = macroFile;
388  }
389  else
390  {
391  n_select_msg = -1;
392  selectMacro = "";
393  }
394 }
G4Timer * timer
G4int n_select_msg
G4String msgText
G4String selectMacro
void Start()
G4int verboseLevel

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::InitializeGeometry ( )
virtual

Reimplemented in G4WorkerRunManager.

Definition at line 573 of file G4RunManager.cc.

574 {
575  if(!userDetector)
576  {
577  G4Exception("G4RunManager::InitializeGeometry", "Run0033",
578  FatalException, "G4VUserDetectorConstruction is not defined!");
579  return;
580  }
581 
582  if(verboseLevel>1) G4cout << "userDetector->Construct() start." << G4endl;
583 
585  G4ApplicationState currentState = stateManager->GetCurrentState();
586  if(currentState==G4State_PreInit || currentState==G4State_Idle)
587  { stateManager->SetNewState(G4State_Init); }
593  geometryInitialized = true;
594  stateManager->SetNewState(currentState);
595 }
virtual G4VPhysicalVolume * Construct()=0
void SetNumberOfParallelWorld(G4int i)
G4bool geometryInitialized
static G4StateManager * GetStateManager()
G4GLOB_DLL std::ostream G4cout
G4bool SetNewState(G4ApplicationState requestedState)
G4ApplicationState GetCurrentState() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4int nParallelWorlds
#define G4endl
Definition: G4ios.hh:61
G4RunManagerKernel * kernel
G4VUserDetectorConstruction * userDetector
G4ApplicationState
G4int verboseLevel
void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::InitializePhysics ( )
virtual

Definition at line 597 of file G4RunManager.cc.

598 {
600  G4ApplicationState currentState = stateManager->GetCurrentState();
601  if(currentState==G4State_PreInit || currentState==G4State_Idle)
602  { stateManager->SetNewState(G4State_Init); }
603  if(physicsList)
604  {
606  }
607  else
608  {
609  G4Exception("G4RunManager::InitializePhysics()", "Run0034",
610  FatalException, "G4VUserPhysicsList is not defined!");
611  }
612  physicsInitialized = true;
613  stateManager->SetNewState(currentState);
614 
615 }
G4VUserPhysicsList * physicsList
G4bool physicsInitialized
static G4StateManager * GetStateManager()
G4bool SetNewState(G4ApplicationState requestedState)
G4ApplicationState GetCurrentState() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4RunManagerKernel * kernel
G4ApplicationState

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::PhysicsHasBeenModified ( )
inline

Definition at line 471 of file G4RunManager.hh.

G4RunManagerKernel * kernel

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::ProcessOneEvent ( G4int  i_event)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 396 of file G4RunManager.cc.

397 {
398  currentEvent = GenerateEvent(i_event);
401  UpdateScoring();
403 }
G4int n_select_msg
G4String msgText
G4Event * currentEvent
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
virtual G4Event * GenerateEvent(G4int i_event)
virtual void AnalyzeEvent(G4Event *anEvent)
void ProcessOneEvent(G4Event *anEvent)
G4EventManager * eventManager
void UpdateScoring()
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::ReinitializeGeometry ( G4bool  destroyFirst = false,
G4bool  prop = true 
)

Definition at line 923 of file G4RunManager.cc.

924 {
925  if(destroyFirst && G4Threading::IsMasterThread())
926  {
927  if(verboseLevel>0)
928  {
929  G4cout<<"#### G4PhysicalVolumeStore, G4LogicalVolumeStore and G4SolidStore\n"
930  <<"#### are wiped out."<<G4endl;
931  }
936 
937  // remove all logical volume pointers from regions
938  // exception: world logical volume pointer must be kept
939  G4RegionStore* regionStore = G4RegionStore::GetInstance();
940  std::vector<G4Region*>::iterator rItr;
941  for(rItr = regionStore->begin();rItr != regionStore->end(); rItr++)
942  {
943  if((*rItr)->GetName()=="DefaultRegionForTheWorld") continue;
944  //if((*rItr)->GetName()=="DefaultRegionForParallelWorld") continue;
945  std::vector<G4LogicalVolume*>::iterator lvItr
946  = (*rItr)->GetRootLogicalVolumeIterator();
947  for(size_t iRLV = 0;iRLV < (*rItr)->GetNumberOfRootVolumes(); iRLV++)
948  {
949  (*rItr)->RemoveRootLogicalVolume(*lvItr,false);
950  lvItr++;
951  }
952  if(verboseLevel>0)
953  { G4cout<<"#### Region <"<<(*rItr)->GetName()<<"> is cleared."<<G4endl; }
954  }
955 
956  // clear transportation manager
959  }
960  if(prop)
961  { G4UImanager::GetUIpointer()->ApplyCommand("/run/reinitializeGeometry"); }
962  else
963  {
965  geometryInitialized = false;
966  }
967 }
static G4bool fGeometryHasBeenDestroyed
static void Clean()
Definition: G4SolidStore.cc:79
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
static G4PhysicalVolumeStore * GetInstance()
G4bool geometryInitialized
static G4RegionStore * GetInstance()
G4GLOB_DLL std::ostream G4cout
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
static G4GeometryManager * GetInstance()
static G4TransportationManager * GetTransportationManager()
#define G4endl
Definition: G4ios.hh:61
void OpenGeometry(G4VPhysicalVolume *vol=0)
G4bool IsMasterThread()
Definition: G4Threading.cc:146
G4RunManagerKernel * kernel
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447
G4int verboseLevel

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::ReOptimize ( G4LogicalVolume pLog)

Definition at line 823 of file G4RunManager.cc.

824 {
825  G4Timer localtimer;
826  if(verboseLevel>1)
827  { localtimer.Start(); }
828  G4SmartVoxelHeader* header = pLog->GetVoxelHeader();
829  delete header;
830  header = new G4SmartVoxelHeader(pLog);
831  pLog->SetVoxelHeader(header);
832  if(verboseLevel>1)
833  {
834  localtimer.Stop();
835  G4SmartVoxelStat stat(pLog,header,localtimer.GetSystemElapsed(),
836  localtimer.GetUserElapsed());
837  G4cout << G4endl << "Voxelisation of logical volume <"
838  << pLog->GetName() << ">" << G4endl;
839  G4cout << " heads : " << stat.GetNumberHeads() << " - nodes : "
840  << stat.GetNumberNodes() << " - pointers : "
841  << stat.GetNumberPointers() << G4endl;
842  G4cout << " Memory used : " << (stat.GetMemoryUse()+512)/1024
843  << "k - total time : " << stat.GetTotalTime()
844  << " - system time : " << stat.GetSysTime() << G4endl;
845  }
846 }
G4SmartVoxelHeader * GetVoxelHeader() const
G4double GetSystemElapsed() const
Definition: G4Timer.cc:119
void SetVoxelHeader(G4SmartVoxelHeader *pVoxel)
G4GLOB_DLL std::ostream G4cout
G4double GetUserElapsed() const
Definition: G4Timer.cc:130
void Stop()
#define G4endl
Definition: G4ios.hh:61
void Start()
const G4String & GetName() const
G4int verboseLevel

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::ReOptimizeMotherOf ( G4VPhysicalVolume pPhys)

Definition at line 817 of file G4RunManager.cc.

818 {
819  G4LogicalVolume* pMotherL = pPhys->GetMotherLogical();
820  if(pMotherL) ReOptimize(pMotherL);
821 }
void ReOptimize(G4LogicalVolume *)
G4LogicalVolume * GetMotherLogical() const

Here is the call graph for this function:

void G4RunManager::RestoreRandomNumberStatus ( const G4String fileN)
virtual

Definition at line 702 of file G4RunManager.cc.

703 {
704  G4String fileNameWithDirectory;
705  if(fileN.index("/")==std::string::npos)
706  { fileNameWithDirectory = randomNumberStatusDir+fileN; }
707  else
708  { fileNameWithDirectory = fileN; }
709 
710  G4Random::restoreEngineStatus(fileNameWithDirectory);
711  if(verboseLevel>0) G4cout << "RandomNumberEngineStatus restored from file: "
712  << fileNameWithDirectory << G4endl;
713  G4Random::showEngineStatus();
714 }
G4GLOB_DLL std::ostream G4cout
str_size index(const char *, G4int pos=0) const
G4String randomNumberStatusDir
#define G4endl
Definition: G4ios.hh:61
G4int verboseLevel

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void G4RunManager::RestoreRndmEachEvent ( G4bool  )
inlinevirtual

Reimplemented in G4WorkerRunManager.

Definition at line 596 of file G4RunManager.hh.

596 { /*No effect in SEQ */ }

Here is the caller graph for this function:

void G4RunManager::rndmSaveThisEvent ( )
virtual

Definition at line 681 of file G4RunManager.cc.

682 {
684  G4cerr << "Warning from G4RunManager::rndmSaveThisEvent():"
685  << " there is no currentEvent or its RandomEngineStatus is not available."
686  << G4endl << "Command ignored." << G4endl;
687  return;
688  }
689 
690  G4String fileIn = randomNumberStatusDir + "currentEvent.rndm";
691 
692  std::ostringstream os;
693  os << "run" << currentRun->GetRunID() << "evt" << currentEvent->GetEventID()
694  << ".rndm" << '\0';
695  G4String fileOut = randomNumberStatusDir + os.str();
696 
697  G4String copCmd = "/control/shell cp "+fileIn+" "+fileOut;
699  if(verboseLevel>0) G4cout << "currentEvent.rndm is copied to file: " << fileOut << G4endl;
700 }
G4bool storeRandomNumberStatus
G4Event * currentEvent
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4int GetEventID() const
Definition: G4Event.hh:151
G4GLOB_DLL std::ostream G4cout
G4String randomNumberStatusDir
G4int GetRunID() const
Definition: G4Run.hh:76
G4Run * currentRun
#define G4endl
Definition: G4ios.hh:61
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447
G4int verboseLevel
G4GLOB_DLL std::ostream G4cerr

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::rndmSaveThisRun ( )
virtual

Definition at line 659 of file G4RunManager.cc.

660 {
661  G4int runNumber = 0;
662  if(currentRun) runNumber = currentRun->GetRunID();
664  G4cerr << "Warning from G4RunManager::rndmSaveThisRun():"
665  << " Random number status was not stored prior to this run."
666  << G4endl << "Command ignored." << G4endl;
667  return;
668  }
669 
670  G4String fileIn = randomNumberStatusDir + "currentRun.rndm";
671 
672  std::ostringstream os;
673  os << "run" << runNumber << ".rndm" << '\0';
674  G4String fileOut = randomNumberStatusDir + os.str();
675 
676  G4String copCmd = "/control/shell cp "+fileIn+" "+fileOut;
678  if(verboseLevel>0) G4cout << "currentRun.rndm is copied to file: " << fileOut << G4endl;
679 }
G4bool storeRandomNumberStatus
int G4int
Definition: G4Types.hh:78
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4GLOB_DLL std::ostream G4cout
G4String randomNumberStatusDir
G4int GetRunID() const
Definition: G4Run.hh:76
G4Run * currentRun
#define G4endl
Definition: G4ios.hh:61
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447
G4int verboseLevel
G4GLOB_DLL std::ostream G4cerr

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::RunInitialization ( )
virtual

Reimplemented in G4WorkerRunManager.

Definition at line 311 of file G4RunManager.cc.

312 {
313  if(!(kernel->RunInitialization(fakeRun))) return;
314 
315  runAborted = false;
317 
319  if(currentRun) delete currentRun;
320  currentRun = 0;
321 
322  if(fakeRun) return;
323 
325 
327  if(!currentRun) currentRun = new G4Run();
328 
331 
334  if(fSDM)
335  { currentRun->SetHCtable(fSDM->GetHCtable()); }
336 
337  std::ostringstream oss;
338  G4Random::saveFullState(oss);
339  randomNumberStatusForThisRun = oss.str();
341 
342  for(G4int i_prev=0;i_prev<n_perviousEventsToBeStored;i_prev++)
343  { previousEvents->push_back((G4Event*)0); }
344 
345  if(printModulo>=0 || verboseLevel>0)
346  { G4cout << "### Run " << currentRun->GetRunID() << " starts." << G4endl; }
348 
350  G4String fileN = "currentRun";
351  if ( rngStatusEventsFlag ) {
352  std::ostringstream os;
353  os << "run" << currentRun->GetRunID();
354  fileN = os.str();
355  }
356  StoreRNGStatus(fileN);
357  }
358 }
void SetNumberOfEventToBeProcessed(G4int n_ev)
Definition: G4Run.hh:97
G4int numberOfEventToBeProcessed
void SetDCtable(G4DCtable *DCtbl)
Definition: G4Run.hh:101
G4int numberOfEventProcessed
G4String randomNumberStatusForThisRun
static G4bool fGeometryHasBeenDestroyed
G4bool storeRandomNumberStatus
int G4int
Definition: G4Types.hh:78
G4bool runAborted
G4bool RunInitialization(G4bool fakeRun=false)
static G4ParallelWorldProcessStore * GetInstance()
G4HCtable * GetHCtable() const
Definition: G4SDManager.hh:101
G4GLOB_DLL std::ostream G4cout
G4bool rngStatusEventsFlag
G4int GetRunID() const
Definition: G4Run.hh:76
Definition: G4Run.hh:46
std::list< G4Event * > * previousEvents
G4UserRunAction * userRunAction
void SetHCtable(G4HCtable *HCtbl)
Definition: G4Run.hh:99
G4int runIDCounter
void CleanUpPreviousEvents()
virtual void StoreRNGStatus(const G4String &filenamePrefix)
virtual void BeginOfRunAction(const G4Run *aRun)
G4Run * currentRun
#define G4endl
Definition: G4ios.hh:61
G4RunManagerKernel * kernel
void SetRunID(G4int id)
Definition: G4Run.hh:95
void SetRandomNumberStatus(G4String &st)
Definition: G4Run.hh:103
virtual G4Run * GenerateRun()
G4DCtable * DCtable
G4int n_perviousEventsToBeStored
G4int verboseLevel
static G4SDManager * GetSDMpointerIfExist()
Definition: G4SDManager.cc:49

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::RunTermination ( )
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 477 of file G4RunManager.cc.

478 {
479  if(!fakeRun)
480  {
484  if(fPersM) fPersM->Store(currentRun);
485  runIDCounter++;
486  }
487 
489 }
void CleanUpUnnecessaryEvents(G4int keepNEvents)
virtual void EndOfRunAction(const G4Run *aRun)
virtual G4bool Store(const G4Event *anEvent)=0
G4UserRunAction * userRunAction
G4int runIDCounter
G4Run * currentRun
G4RunManagerKernel * kernel
static G4VPersistencyManager * GetPersistencyManager()

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::SetDCtable ( G4DCtable DCtbl)
inline

Definition at line 566 of file G4RunManager.hh.

567  { DCtable = DCtbl; }
G4DCtable * DCtable

Here is the caller graph for this function:

void G4RunManager::SetGeometryToBeOptimized ( G4bool  vl)
inline

Definition at line 507 of file G4RunManager.hh.

508  {
509  if(geometryToBeOptimized != vl)
510  {
514  }
515  }
void SetGeometryToBeOptimized(G4bool vl)
G4bool geometryToBeOptimized
G4RunManagerKernel * kernel

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::SetNumberOfAdditionalWaitingStacks ( G4int  iAdd)
inline

Definition at line 385 of file G4RunManager.hh.

G4EventManager * eventManager
void SetNumberOfAdditionalWaitingStacks(G4int iAdd)

Here is the call graph for this function:

void G4RunManager::SetNumberOfEventsToBeProcessed ( G4int  val)
inline

Definition at line 558 of file G4RunManager.hh.

559  { numberOfEventToBeProcessed = val; }
G4int numberOfEventToBeProcessed
void G4RunManager::SetNumberOfEventsToBeStored ( G4int  val)
inline

Definition at line 520 of file G4RunManager.hh.

521  { n_perviousEventsToBeStored = val; }
G4int n_perviousEventsToBeStored
void G4RunManager::SetPrimaryTransformer ( G4PrimaryTransformer pt)
inline

Definition at line 395 of file G4RunManager.hh.

396  { kernel->SetPrimaryTransformer(pt); }
void SetPrimaryTransformer(G4PrimaryTransformer *pt)
G4RunManagerKernel * kernel

Here is the call graph for this function:

void G4RunManager::SetPrintProgress ( G4int  i)
inline

Definition at line 504 of file G4RunManager.hh.

505  { printModulo = i; }

Here is the caller graph for this function:

void G4RunManager::SetRandomNumberStore ( G4bool  flag)
inline

Definition at line 411 of file G4RunManager.hh.

412  { storeRandomNumberStatus = flag; }
G4bool storeRandomNumberStatus

Here is the caller graph for this function:

void G4RunManager::SetRandomNumberStoreDir ( const G4String dir)
inline

Definition at line 415 of file G4RunManager.hh.

416  {
417  G4String dirStr = dir;
418  if( dirStr(dirStr.length()-1) != '/' ) dirStr += "/";
419 #ifndef WIN32
420  G4String shellCmd = "mkdir -p ";
421 #else
422  std::replace(dirStr.begin(), dirStr.end(),'/','\\');
423  G4String shellCmd = "if not exist " + dirStr + " mkdir ";
424 #endif
425  shellCmd += dirStr;
426  randomNumberStatusDir = dirStr;
427  G4int sysret = system(shellCmd);
428  if(sysret!=0)
429  {
430  G4String errmsg = "\"" + shellCmd + "\" returns non-zero value. Directory creation failed.";
431  G4Exception("GrRunManager::SetRandomNumberStoreDir","Run0071",JustWarning,errmsg);
432  G4cerr << " return value = " << sysret << G4endl;
433  }
434  }
int G4int
Definition: G4Types.hh:78
G4String randomNumberStatusDir
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
#define G4endl
Definition: G4ios.hh:61
G4GLOB_DLL std::ostream G4cerr

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::SetRandomNumberStorePerEvent ( G4bool  flag)
inline

Definition at line 447 of file G4RunManager.hh.

448  { rngStatusEventsFlag = flag; }
G4bool rngStatusEventsFlag

Here is the caller graph for this function:

void G4RunManager::SetRunIDCounter ( G4int  i)
inline

Definition at line 550 of file G4RunManager.hh.

551  { runIDCounter = i; }
G4int runIDCounter

Here is the caller graph for this function:

void G4RunManager::SetUserAction ( G4UserRunAction userAction)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 875 of file G4RunManager.cc.

876 {
877  userRunAction = userAction;
878 }
G4UserRunAction * userRunAction

Here is the caller graph for this function:

void G4RunManager::SetUserAction ( G4VUserPrimaryGeneratorAction userAction)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 880 of file G4RunManager.cc.

881 {
882  userPrimaryGeneratorAction = userAction;
883 }
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction
void G4RunManager::SetUserAction ( G4UserEventAction userAction)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 885 of file G4RunManager.cc.

886 {
887  eventManager->SetUserAction(userAction);
888  userEventAction = userAction;
889 }
G4UserEventAction * userEventAction
void SetUserAction(G4UserEventAction *userAction)
G4EventManager * eventManager

Here is the call graph for this function:

void G4RunManager::SetUserAction ( G4UserStackingAction userAction)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 891 of file G4RunManager.cc.

892 {
893  eventManager->SetUserAction(userAction);
894  userStackingAction = userAction;
895 }
void SetUserAction(G4UserEventAction *userAction)
G4EventManager * eventManager
G4UserStackingAction * userStackingAction

Here is the call graph for this function:

void G4RunManager::SetUserAction ( G4UserTrackingAction userAction)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 897 of file G4RunManager.cc.

898 {
899  eventManager->SetUserAction(userAction);
900  userTrackingAction = userAction;
901 }
G4UserTrackingAction * userTrackingAction
void SetUserAction(G4UserEventAction *userAction)
G4EventManager * eventManager

Here is the call graph for this function:

void G4RunManager::SetUserAction ( G4UserSteppingAction userAction)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 903 of file G4RunManager.cc.

904 {
905  eventManager->SetUserAction(userAction);
906  userSteppingAction = userAction;
907 }
void SetUserAction(G4UserEventAction *userAction)
G4EventManager * eventManager
G4UserSteppingAction * userSteppingAction

Here is the call graph for this function:

void G4RunManager::SetUserInitialization ( G4VUserDetectorConstruction userInit)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 848 of file G4RunManager.cc.

849 { userDetector = userInit; }
G4VUserDetectorConstruction * userDetector

Here is the caller graph for this function:

void G4RunManager::SetUserInitialization ( G4VUserPhysicsList userInit)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 851 of file G4RunManager.cc.

852 {
853  physicsList = userInit;
854  kernel->SetPhysics(userInit);
855 }
void SetPhysics(G4VUserPhysicsList *uPhys)
G4VUserPhysicsList * physicsList
G4RunManagerKernel * kernel

Here is the call graph for this function:

void G4RunManager::SetUserInitialization ( G4VUserActionInitialization userInit)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 869 of file G4RunManager.cc.

870 {
871  userActionInitialization = userInit;
873 }
G4VUserActionInitialization * userActionInitialization
virtual void Build() const =0

Here is the call graph for this function:

void G4RunManager::SetUserInitialization ( G4UserWorkerInitialization userInit)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 857 of file G4RunManager.cc.

858 {
859  G4Exception("G4RunManager::SetUserInitialization()", "Run3001", FatalException,
860  "Base-class G4RunManager cannot take G4UserWorkerInitialization. Use G4MTRunManager.");
861 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

void G4RunManager::SetUserInitialization ( G4UserWorkerThreadInitialization userInit)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 863 of file G4RunManager.cc.

864 {
865  G4Exception("G4RunManager::SetUserThreadInitialization()", "Run3001", FatalException,
866  "Base-class G4RunManager cannot take G4UserWorkerThreadInitialization. Use G4MTRunManager.");
867 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

void G4RunManager::SetVerboseLevel ( G4int  vl)
inline

Definition at line 497 of file G4RunManager.hh.

498  { verboseLevel = vl;
499  kernel->SetVerboseLevel(vl); }
G4RunManagerKernel * kernel
void SetVerboseLevel(G4int vl)
G4int verboseLevel

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::StackPreviousEvent ( G4Event anEvent)
protected

Definition at line 539 of file G4RunManager.cc.

540 {
541  if(anEvent->ToBeKept()) currentRun->StoreEvent(anEvent);
542 
544  {
545  if(anEvent->GetNumberOfGrips()==0)
546  { if(!(anEvent->ToBeKept())) delete anEvent; }
547  else
548  { previousEvents->push_back(anEvent); }
549  }
550 
552 }
G4int GetNumberOfGrips() const
Definition: G4Event.hh:147
void CleanUpUnnecessaryEvents(G4int keepNEvents)
G4bool ToBeKept() const
Definition: G4Event.hh:137
std::list< G4Event * > * previousEvents
void StoreEvent(G4Event *evt)
Definition: G4Run.cc:62
G4Run * currentRun
G4int n_perviousEventsToBeStored

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::StoreRandomNumberStatusToG4Event ( G4int  vl)
inline

Definition at line 398 of file G4RunManager.hh.

403  {
406  }
G4int storeRandomNumberStatusToG4Event
void StoreRandomNumberStatusToG4Event(G4int vl)
G4EventManager * eventManager

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::StoreRNGStatus ( const G4String filenamePrefix)
protectedvirtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 464 of file G4RunManager.cc.

465 {
466  G4String fileN = randomNumberStatusDir + fnpref+".rndm";
467  G4Random::saveEngineStatus(fileN);
468 }
G4String randomNumberStatusDir

Here is the caller graph for this function:

void G4RunManager::TerminateEventLoop ( )
virtual

Reimplemented in G4WorkerRunManager.

Definition at line 412 of file G4RunManager.cc.

413 {
414  if(verboseLevel>0 && !fakeRun)
415  {
416  timer->Stop();
417  G4cout << " Run terminated." << G4endl;
418  G4cout << "Run Summary" << G4endl;
419  if(runAborted)
420  { G4cout << " Run Aborted after " << numberOfEventProcessed << " events processed." << G4endl; }
421  else
422  { G4cout << " Number of events processed : " << numberOfEventProcessed << G4endl; }
423  G4cout << " " << *timer << G4endl;
424  }
427 }
G4Timer * timer
G4int numberOfEventProcessed
static G4bool fGeometryHasBeenDestroyed
G4bool runAborted
G4GLOB_DLL std::ostream G4cout
void Stop()
#define G4endl
Definition: G4ios.hh:61
G4int verboseLevel

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::TerminateOneEvent ( )
virtual

Reimplemented in G4MTRunManager.

Definition at line 405 of file G4RunManager.cc.

406 {
408  currentEvent = 0;
410 }
G4int numberOfEventProcessed
G4Event * currentEvent
void StackPreviousEvent(G4Event *anEvent)

Here is the call graph for this function:

Here is the caller graph for this function:

void G4RunManager::UpdateScoring ( )
protected

Definition at line 795 of file G4RunManager.cc.

796 {
798  if(!ScM) return;
799  G4int nPar = ScM->GetNumberOfMesh();
800  if(nPar<1) return;
801 
803  if(!HCE) return;
804  G4int nColl = HCE->GetCapacity();
805  for(G4int i=0;i<nColl;i++)
806  {
807  G4VHitsCollection* HC = HCE->GetHC(i);
808  if(HC) ScM->Accumulate(HC);
809  }
810 }
G4VHitsCollection * GetHC(G4int i)
int G4int
Definition: G4Types.hh:78
G4Event * currentEvent
static G4ScoringManager * GetScoringManagerIfExist()
void Accumulate(G4VHitsCollection *map)
G4HCofThisEvent * GetHCofThisEvent() const
Definition: G4Event.hh:185
size_t GetNumberOfMesh() const

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

G4Event* G4RunManager::currentEvent
protected

Definition at line 306 of file G4RunManager.hh.

G4Run* G4RunManager::currentRun
protected

Definition at line 305 of file G4RunManager.hh.

G4VPhysicalVolume* G4RunManager::currentWorld
protected

Definition at line 319 of file G4RunManager.hh.

G4DCtable* G4RunManager::DCtable
protected

Definition at line 303 of file G4RunManager.hh.

G4EventManager* G4RunManager::eventManager
protected

Definition at line 275 of file G4RunManager.hh.

G4bool G4RunManager::fakeRun
protected

Definition at line 327 of file G4RunManager.hh.

G4bool G4RunManager::fGeometryHasBeenDestroyed = false
staticprotected

Definition at line 590 of file G4RunManager.hh.

G4bool G4RunManager::geometryInitialized
protected

Definition at line 293 of file G4RunManager.hh.

G4bool G4RunManager::geometryToBeOptimized
protected

Definition at line 297 of file G4RunManager.hh.

G4bool G4RunManager::initializedAtLeastOnce
protected

Definition at line 296 of file G4RunManager.hh.

G4RunManagerKernel* G4RunManager::kernel
protected

Definition at line 274 of file G4RunManager.hh.

G4String G4RunManager::msgText
protected

Definition at line 323 of file G4RunManager.hh.

G4int G4RunManager::n_perviousEventsToBeStored
protected

Definition at line 308 of file G4RunManager.hh.

G4int G4RunManager::n_select_msg
protected

Definition at line 324 of file G4RunManager.hh.

G4int G4RunManager::nParallelWorlds
protected

Definition at line 321 of file G4RunManager.hh.

G4int G4RunManager::numberOfEventProcessed
protected

Definition at line 325 of file G4RunManager.hh.

G4int G4RunManager::numberOfEventToBeProcessed
protected

Definition at line 309 of file G4RunManager.hh.

G4bool G4RunManager::physicsInitialized
protected

Definition at line 294 of file G4RunManager.hh.

G4VUserPhysicsList* G4RunManager::physicsList
protected

Definition at line 278 of file G4RunManager.hh.

std::list<G4Event*>* G4RunManager::previousEvents
protected

Definition at line 307 of file G4RunManager.hh.

G4int G4RunManager::printModulo
protected

Definition at line 301 of file G4RunManager.hh.

G4String G4RunManager::randomNumberStatusDir
protected

Definition at line 313 of file G4RunManager.hh.

G4String G4RunManager::randomNumberStatusForThisEvent
protected

Definition at line 315 of file G4RunManager.hh.

G4String G4RunManager::randomNumberStatusForThisRun
protected

Definition at line 314 of file G4RunManager.hh.

G4bool G4RunManager::rngStatusEventsFlag
protected

Definition at line 316 of file G4RunManager.hh.

G4bool G4RunManager::runAborted
protected

Definition at line 295 of file G4RunManager.hh.

G4int G4RunManager::runIDCounter
protected

Definition at line 299 of file G4RunManager.hh.

RMType G4RunManager::runManagerType
protected

Definition at line 574 of file G4RunManager.hh.

G4String G4RunManager::selectMacro
protected

Definition at line 326 of file G4RunManager.hh.

G4bool G4RunManager::storeRandomNumberStatus
protected

Definition at line 311 of file G4RunManager.hh.

G4int G4RunManager::storeRandomNumberStatusToG4Event
protected

Definition at line 312 of file G4RunManager.hh.

G4Timer* G4RunManager::timer
protected

Definition at line 302 of file G4RunManager.hh.

G4VUserActionInitialization* G4RunManager::userActionInitialization
protected

Definition at line 279 of file G4RunManager.hh.

G4VUserDetectorConstruction* G4RunManager::userDetector
protected

Definition at line 277 of file G4RunManager.hh.

G4UserEventAction* G4RunManager::userEventAction
protected

Definition at line 284 of file G4RunManager.hh.

G4VUserPrimaryGeneratorAction* G4RunManager::userPrimaryGeneratorAction
protected

Definition at line 283 of file G4RunManager.hh.

G4UserRunAction* G4RunManager::userRunAction
protected

Definition at line 282 of file G4RunManager.hh.

G4UserStackingAction* G4RunManager::userStackingAction
protected

Definition at line 285 of file G4RunManager.hh.

G4UserSteppingAction* G4RunManager::userSteppingAction
protected

Definition at line 287 of file G4RunManager.hh.

G4UserTrackingAction* G4RunManager::userTrackingAction
protected

Definition at line 286 of file G4RunManager.hh.

G4UserWorkerInitialization* G4RunManager::userWorkerInitialization
protected

Definition at line 280 of file G4RunManager.hh.

G4UserWorkerThreadInitialization* G4RunManager::userWorkerThreadInitialization
protected

Definition at line 281 of file G4RunManager.hh.

G4int G4RunManager::verboseLevel
protected

Definition at line 300 of file G4RunManager.hh.


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