Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
G4RunManager Class Reference

#include <G4RunManager.hh>

Inheritance diagram for G4RunManager:
CexmcRunManager G4MTRunManager G4WorkerRunManager ParRunManager ParRunManager tbbMasterRunManager tbbWorkerRunManager

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 ()
 

Static Public Member Functions

static G4RunManagerGetRunManager ()
 

Protected Member Functions

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::vector< 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
 

Detailed Description

Definition at line 138 of file G4RunManager.hh.

Member Enumeration Documentation

Enumerator
sequentialRM 
masterRM 
workerRM 

Definition at line 266 of file G4RunManager.hh.

Constructor & Destructor Documentation

G4RunManager::G4RunManager ( )

Definition at line 77 of file G4RunManager.cc.

References G4ProcessTable::CreateMessenger(), G4ParticleTable::CreateMessenger(), eventManager, FatalException, G4Exception(), G4RunManagerKernel::GetEventManager(), G4ParticleTable::GetParticleTable(), G4ProcessTable::GetProcessTable(), kernel, previousEvents, randomNumberStatusDir, randomNumberStatusForThisEvent, randomNumberStatusForThisRun, runManagerType, sequentialRM, and timer.

84  runAborted(false),initializedAtLeastOnce(false),
92 {
93  if(fRunManager)
94  {
95  G4Exception("G4RunManager::G4RunManager()", "Run0031",
96  FatalException, "G4RunManager constructed twice.");
97  }
98  fRunManager = this;
99 
100  kernel = new G4RunManagerKernel();
102 
103  timer = new G4Timer();
104  runMessenger = new G4RunMessenger(this);
105  previousEvents = new std::vector<G4Event*>;
108  randomNumberStatusDir = "./";
109  std::ostringstream oss;
110  G4Random::saveFullState(oss);
111  randomNumberStatusForThisRun = oss.str();
112  randomNumberStatusForThisEvent = oss.str();
114 }
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
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
std::vector< G4Event * > * previousEvents
static G4ProcessTable * GetProcessTable()
G4DCtable * DCtable
G4int n_perviousEventsToBeStored
G4int verboseLevel
G4UserStackingAction * userStackingAction
G4RunManager::~G4RunManager ( )
virtual

Definition at line 176 of file G4RunManager.cc.

References currentRun, G4ProcessTable::DeleteMessenger(), G4ParticleTable::DeleteMessenger(), DeleteUserInitializations(), G4cout, G4endl, G4State_Quit, G4StateManager::GetCurrentState(), G4ParticleTable::GetParticleTable(), G4ProcessTable::GetProcessTable(), G4StateManager::GetStateManager(), kernel, previousEvents, G4StateManager::SetNewState(), timer, userPrimaryGeneratorAction, userRunAction, and verboseLevel.

177 {
179  // set the application state to the quite state
180  if(pStateManager->GetCurrentState()!=G4State_Quit)
181  {
182  if(verboseLevel>0) G4cout << "G4 kernel has come to Quit state." << G4endl;
183  pStateManager->SetNewState(G4State_Quit);
184  }
185 
186  if(currentRun) delete currentRun;
187  delete timer;
188  delete runMessenger;
191  delete previousEvents;
192 
193  //The following will work for all RunManager types
194  //if derived class does the correct thing in derived
195  //destructor that is set to zero pointers of
196  //user initialization objects for which does not have
197  //ownership
199  if(userRunAction)
200  {
201  delete userRunAction;
202  userRunAction = 0;
203  if(verboseLevel>1) G4cout << "UserRunAction deleted." << G4endl;
204  }
206  {
209  if(verboseLevel>1) G4cout << "UserPrimaryGenerator deleted." << G4endl;
210  }
211 
212  if(verboseLevel>1) G4cout << "RunManager is deleting RunManagerKernel." << G4endl;
213 
214  delete kernel;
215 
216  fRunManager = 0;
217 }
G4Timer * timer
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction
static G4StateManager * GetStateManager()
G4GLOB_DLL std::ostream G4cout
G4bool SetNewState(G4ApplicationState requestedState)
virtual void DeleteUserInitializations()
G4ApplicationState GetCurrentState() const
G4UserRunAction * userRunAction
static G4ParticleTable * GetParticleTable()
G4Run * currentRun
#define G4endl
Definition: G4ios.hh:61
G4RunManagerKernel * kernel
std::vector< G4Event * > * previousEvents
static G4ProcessTable * GetProcessTable()
G4int verboseLevel
G4RunManager::G4RunManager ( RMType  rmType)
protected

Definition at line 116 of file G4RunManager.cc.

References G4ProcessTable::CreateMessenger(), G4ParticleTable::CreateMessenger(), eventManager, FatalException, G4Exception(), G4RunManagerKernel::GetEventManager(), G4ParticleTable::GetParticleTable(), G4ProcessTable::GetProcessTable(), kernel, masterRM, previousEvents, randomNumberStatusDir, randomNumberStatusForThisEvent, randomNumberStatusForThisRun, runManagerType, timer, and workerRM.

123  runAborted(false),initializedAtLeastOnce(false),
125  verboseLevel(0),printModulo(-1),DCtable(0),
131 {
132  //This version of the constructor should never be called in sequential mode!
133 #ifndef G4MULTITHREADED
135  msg<<"Geant4 code is compiled without multi-threading support (-DG4MULTITHREADED is set to off).";
136  msg<<" This type of RunManager can only be used in mult-threaded applications.";
137  G4Exception("G4RunManager::G4RunManager(G4bool)","Run0035",FatalException,msg);
138 #endif
139 
140  if(fRunManager)
141  {
142  G4Exception("G4RunManager::G4RunManager()", "Run0031",
143  FatalException, "G4RunManager constructed twice.");
144  }
145  fRunManager = this;
146 
147  switch(rmType)
148  {
149  case masterRM:
151  break;
152  case workerRM:
154  break;
155  default:
157  msgx<<" This type of RunManager can only be used in mult-threaded applications.";
158  G4Exception("G4RunManager::G4RunManager(G4bool)","Run0035",FatalException,msgx);
159  }
160  runManagerType = rmType;
161 
163 
164  timer = new G4Timer();
165  runMessenger = new G4RunMessenger(this);
166  previousEvents = new std::vector<G4Event*>;
169  randomNumberStatusDir = "./";
170  std::ostringstream oss;
171  G4Random::saveFullState(oss);
172  randomNumberStatusForThisRun = oss.str();
173  randomNumberStatusForThisEvent = oss.str();
174 }
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
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
std::vector< G4Event * > * previousEvents
static G4ProcessTable * GetProcessTable()
G4DCtable * DCtable
G4int n_perviousEventsToBeStored
G4int verboseLevel
G4UserStackingAction * userStackingAction

Member Function Documentation

void G4RunManager::AbortEvent ( )
virtual

Reimplemented in G4MTRunManager.

Definition at line 571 of file G4RunManager.cc.

References G4EventManager::AbortCurrentEvent(), currentEvent, eventManager, G4cerr, G4endl, G4State_EventProc, G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), and G4Event::SetEventAborted().

Referenced by export_G4RunManager(), G4ExceptionHandler::Notify(), and G4RunMessenger::SetNewValue().

572 {
573  // This method is valid only for EventProc state
574  G4ApplicationState currentState =
576  if(currentState==G4State_EventProc)
577  {
580  }
581  else
582  {
583  G4cerr << "Event is not in progress. AbortEevnt() ignored." << G4endl;
584  }
585 }
G4Event * currentEvent
static G4StateManager * GetStateManager()
G4ApplicationState GetCurrentState() const
void SetEventAborted()
Definition: G4Event.hh:122
void AbortCurrentEvent()
#define G4endl
Definition: G4ios.hh:61
G4EventManager * eventManager
G4ApplicationState
G4GLOB_DLL std::ostream G4cerr
void G4RunManager::AbortRun ( G4bool  softAbort = false)
virtual

Reimplemented in G4MTRunManager.

Definition at line 551 of file G4RunManager.cc.

References G4EventManager::AbortCurrentEvent(), currentEvent, eventManager, G4cerr, G4endl, G4State_EventProc, G4State_GeomClosed, G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), runAborted, and G4Event::SetEventAborted().

Referenced by RMC01AnalysisManager::EndOfEvent(), export_G4RunManager(), G4ExceptionHandler::Notify(), and G4RunMessenger::SetNewValue().

552 {
553  // This method is valid only for GeomClosed or EventProc state
554  G4ApplicationState currentState =
556  if(currentState==G4State_GeomClosed || currentState==G4State_EventProc)
557  {
558  runAborted = true;
559  if(currentState==G4State_EventProc && !softAbort)
560  {
563  }
564  }
565  else
566  {
567  G4cerr << "Run is not in progress. AbortRun() ignored." << G4endl;
568  }
569 }
G4bool runAborted
G4Event * currentEvent
static G4StateManager * GetStateManager()
G4ApplicationState GetCurrentState() const
void SetEventAborted()
Definition: G4Event.hh:122
void AbortCurrentEvent()
#define G4endl
Definition: G4ios.hh:61
G4EventManager * eventManager
G4ApplicationState
G4GLOB_DLL std::ostream G4cerr
void G4RunManager::AnalyzeEvent ( G4Event anEvent)
virtual

Definition at line 456 of file G4RunManager.cc.

References currentRun, G4VPersistencyManager::GetPersistencyManager(), G4Run::RecordEvent(), and G4VPersistencyManager::Store().

Referenced by G4WorkerRunManager::ProcessOneEvent(), and ProcessOneEvent().

457 {
459  if(fPersM) fPersM->Store(anEvent);
460  currentRun->RecordEvent(anEvent);
461 }
virtual G4bool Store(const G4Event *anEvent)=0
virtual void RecordEvent(const G4Event *)
Definition: G4Run.cc:51
G4Run * currentRun
static G4VPersistencyManager * GetPersistencyManager()
void G4RunManager::BeamOn ( G4int  n_event,
const char *  macroFile = 0,
G4int  n_select = -1 
)
virtual

Definition at line 254 of file G4RunManager.cc.

References ConfirmBeamOnCondition(), ConstructScoringWorlds(), DoEventLoop(), fakeRun, numberOfEventToBeProcessed, RunInitialization(), and RunTermination().

Referenced by GammaKnifeController::BeamOn(), G4BlineTracer::ComputeBlines(), export_G4RunManager(), G4MTRunManager::Initialize(), main(), G4AdjointSimManager::RunAdjointSimulation(), G4RunMessenger::SetNewValue(), and G4MTRunManagerKernel::StartThread().

255 {
256  if(n_event<=0) { fakeRun = true; }
257  else { fakeRun = false; }
259  if(cond)
260  {
261  numberOfEventToBeProcessed = n_event;
264  DoEventLoop(n_event,macroFile,n_select);
265  RunTermination();
266  }
267  fakeRun = false;
268 }
G4int numberOfEventToBeProcessed
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)
G4bool G4RunManager::ConfirmBeamOnCondition ( )
virtual

Definition at line 270 of file G4RunManager.cc.

References G4cerr, G4cout, G4endl, G4State_Idle, G4State_PreInit, geometryInitialized, G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), Initialize(), initializedAtLeastOnce, physicsInitialized, and verboseLevel.

Referenced by BeamOn().

271 {
273 
274  G4ApplicationState currentState = stateManager->GetCurrentState();
275  if(currentState!=G4State_PreInit && currentState!=G4State_Idle)
276  {
277  G4cerr << "Illegal application state - BeamOn() ignored." << G4endl;
278  return false;
279  }
280 
282  {
283  G4cerr << " Geant4 kernel should be initialized" << G4endl;
284  G4cerr << "before the first BeamOn(). - BeamOn ignored." << G4endl;
285  return false;
286  }
287 
289  {
290  if(verboseLevel>0)
291  {
292  G4cout << "Start re-initialization because " << G4endl;
293  if(!geometryInitialized) G4cout << " Geometry" << G4endl;
294  if(!physicsInitialized) G4cout << " Physics processes" << G4endl;
295  G4cout << "has been modified since last Run." << G4endl;
296  }
297  Initialize();
298  }
299  return true;
300 }
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
void G4RunManager::ConstructScoringWorlds ( )
virtual

Reimplemented in G4MTRunManager, G4WorkerRunManager, and tbbWorkerRunManager.

Definition at line 673 of file G4RunManager.cc.

References G4ProcessManager::AddProcess(), G4VScoringMesh::Construct(), GeometryHasBeenModified(), G4ParticleTable::GetIterator(), G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), G4TransportationManager::GetParallelWorld(), G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetProcessManager(), G4ScoringManager::GetScoringManagerIfExist(), G4TransportationManager::GetTransportationManager(), G4ScoringManager::GetWorldName(), idxAlongStep, idxAtRest, idxPostStep, G4ParallelWorldProcess::IsAtRestRequired(), G4TransportationManager::IsWorldExisting(), G4ParticleTableIterator< K, V >::reset(), G4VPhysicalVolume::SetName(), G4ParallelWorldProcess::SetParallelWorld(), G4ProcessManager::SetProcessOrdering(), G4ProcessManager::SetProcessOrderingToSecond(), theParticleIterator, and G4ParticleTableIterator< K, V >::value().

Referenced by BeamOn(), G4MTRunManager::ConstructScoringWorlds(), and G4RunMessenger::SetNewValue().

674 {
676  if(!ScM) return;
677 
678  G4int nPar = ScM->GetNumberOfMesh();
679  if(nPar<1) return;
680 
683  for(G4int iw=0;iw<nPar;iw++)
684  {
685  G4VScoringMesh* mesh = ScM->GetMesh(iw);
686 
687  G4VPhysicalVolume* pWorld
689  ->IsWorldExisting(ScM->GetWorldName(iw));
690  if(!pWorld)
691  {
693  ->GetParallelWorld(ScM->GetWorldName(iw));
694  pWorld->SetName(ScM->GetWorldName(iw));
695 
696  G4ParallelWorldProcess* theParallelWorldProcess
697  = new G4ParallelWorldProcess(ScM->GetWorldName(iw));
698  theParallelWorldProcess->SetParallelWorld(ScM->GetWorldName(iw));
699 
700  theParticleIterator->reset();
701  while( (*theParticleIterator)() ){
702  G4ParticleDefinition* particle = theParticleIterator->value();
703  G4ProcessManager* pmanager = particle->GetProcessManager();
704  if(pmanager)
705  {
706  pmanager->AddProcess(theParallelWorldProcess);
707  if(theParallelWorldProcess->IsAtRestRequired(particle))
708  { pmanager->SetProcessOrdering(theParallelWorldProcess, idxAtRest, 9999); }
709  pmanager->SetProcessOrderingToSecond(theParallelWorldProcess, idxAlongStep);
710  pmanager->SetProcessOrdering(theParallelWorldProcess, idxPostStep, 9999);
711  }
712  }
713  }
714 
715  mesh->Construct(pWorld);
716  }
717 
719 }
void GeometryHasBeenModified(G4bool prop=true)
G4VPhysicalVolume * IsWorldExisting(const G4String &worldName)
G4String GetWorldName(G4int i) const
void SetProcessOrderingToSecond(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4bool IsAtRestRequired(G4ParticleDefinition *)
virtual void Construct(G4VPhysicalVolume *fWorldPhys)=0
void SetName(const G4String &pName)
G4ProcessManager * GetProcessManager() const
int G4int
Definition: G4Types.hh:78
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)
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
static G4TransportationManager * GetTransportationManager()
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
static G4ParticleTable * GetParticleTable()
size_t GetNumberOfMesh() const
G4VScoringMesh * GetMesh(G4int i) const
G4PTblDicIterator * GetIterator() const
#define theParticleIterator
void G4RunManager::CutOffHasBeenModified ( )
inline

Definition at line 466 of file G4RunManager.hh.

References G4cerr, and G4endl.

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

Definition at line 219 of file G4RunManager.cc.

References G4cout, G4endl, physicsList, userActionInitialization, userDetector, userWorkerInitialization, userWorkerThreadInitialization, and verboseLevel.

Referenced by ~G4RunManager().

220 {
221  if( userDetector )
222  {
223  delete userDetector;
224  userDetector = 0;
225  if(verboseLevel>1) G4cout << "UserDetectorConstruction deleted." << G4endl;
226  }
227  if(physicsList)
228  {
229  delete physicsList;
230  physicsList = 0;
231  if(verboseLevel>1) G4cout << "UserPhysicsList deleted." << G4endl;
232  }
234  {
237  if(verboseLevel>1) G4cout <<"UserActionInitialization deleted." << G4endl;
238  }
240  {
243  if(verboseLevel>1) G4cout <<"UserWorkerInitialization deleted." << G4endl;
244  }
246  {
249  if(verboseLevel>1) G4cout <<"UserWorkerThreadInitialization deleted." << G4endl;
250  }
251 
252 }
G4VUserPhysicsList * physicsList
G4VUserActionInitialization * userActionInitialization
G4UserWorkerThreadInitialization * userWorkerThreadInitialization
G4GLOB_DLL std::ostream G4cout
G4UserWorkerInitialization * userWorkerInitialization
#define G4endl
Definition: G4ios.hh:61
G4VUserDetectorConstruction * userDetector
G4int verboseLevel
void G4RunManager::DoEventLoop ( G4int  n_event,
const char *  macroFile = 0,
G4int  n_select = -1 
)
virtual

Reimplemented in CexmcRunManager, G4WorkerRunManager, ParRunManager, and ParRunManager.

Definition at line 348 of file G4RunManager.cc.

References InitializeEventLoop(), ProcessOneEvent(), runAborted, TerminateEventLoop(), and TerminateOneEvent().

Referenced by BeamOn().

349 {
350  InitializeEventLoop(n_event,macroFile,n_select);
351 
352 // Event loop
353  for(G4int i_event=0; i_event<n_event; i_event++ )
354  {
355  ProcessOneEvent(i_event);
357  if(runAborted) break;
358  }
359 
361 }
virtual void ProcessOneEvent(G4int i_event)
virtual void TerminateEventLoop()
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()
void G4RunManager::DumpRegion ( const G4String rname) const

Definition at line 650 of file G4RunManager.cc.

References G4RunManagerKernel::DumpRegion(), and kernel.

Referenced by G4RunMessenger::SetNewValue().

651 {
652  kernel->DumpRegion(rname);
653 }
void DumpRegion(const G4String &rname) const
G4RunManagerKernel * kernel
void G4RunManager::DumpRegion ( G4Region region = 0) const

Definition at line 655 of file G4RunManager.cc.

References G4RunManagerKernel::DumpRegion(), and kernel.

656 {
657  kernel->DumpRegion(region);
658 }
void DumpRegion(const G4String &rname) const
G4RunManagerKernel * kernel
G4Event * G4RunManager::GenerateEvent ( G4int  i_event)
virtual

Reimplemented in G4WorkerRunManager.

Definition at line 415 of file G4RunManager.cc.

References currentRun, FatalException, G4cout, G4endl, G4Exception(), G4VUserPrimaryGeneratorAction::GeneratePrimaries(), G4Event::GetEventID(), G4Run::GetRunID(), printModulo, randomNumberStatusForThisEvent, rngStatusEventsFlag, G4Event::SetRandomNumberStatus(), storeRandomNumberStatus, storeRandomNumberStatusToG4Event, StoreRNGStatus(), and userPrimaryGeneratorAction.

Referenced by ProcessOneEvent().

416 {
418  {
419  G4Exception("G4RunManager::GenerateEvent()", "Run0032", FatalException,
420  "G4VUserPrimaryGeneratorAction is not defined!");
421  return 0;
422  }
423 
424  G4Event* anEvent = new G4Event(i_event);
425 
427  {
428  std::ostringstream oss;
429  G4Random::saveFullState(oss);
430  randomNumberStatusForThisEvent = oss.str();
432  }
433 
435  G4String fileN = "currentEvent";
436  if ( rngStatusEventsFlag ) {
437  std::ostringstream os;
438  os << "run" << currentRun->GetRunID() << "evt" << anEvent->GetEventID();
439  fileN = os.str();
440  }
441  StoreRNGStatus(fileN);
442  }
443 
444  if(printModulo > 0 && anEvent->GetEventID()%printModulo == 0 )
445  { G4cout << "--> Event " << anEvent->GetEventID() << " starts." << G4endl; }
447  return anEvent;
448 }
G4String randomNumberStatusForThisEvent
G4bool storeRandomNumberStatus
G4int GetEventID() const
Definition: G4Event.hh:140
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:124
virtual void GeneratePrimaries(G4Event *anEvent)=0
virtual void StoreRNGStatus(const G4String &filenamePrefix)
G4Run * currentRun
#define G4endl
Definition: G4ios.hh:61
void G4RunManager::GeometryHasBeenModified ( G4bool  prop = true)

Definition at line 831 of file G4RunManager.cc.

References G4UImanager::ApplyCommand(), G4RunManagerKernel::GeometryHasBeenModified(), G4UImanager::GetUIpointer(), and kernel.

Referenced by CML2PhantomConstruction::applyNewCentre(), ConstructScoringWorlds(), export_G4RunManager(), CML2AcceleratorConstruction::rotateAccelerator(), DetectorConstruction::SetAbsLength(), RE06DetectorConstruction::SetAbsorberMaterial(), B5DetectorConstruction::SetArmAngle(), DetectorConstruction::SetContainerThickness(), DetectorConstruction::SetEcalLength(), DetectorConstruction::SetEcalWidth(), RE06DetectorConstruction::SetGapMaterial(), DetectorConstruction::SetGasRadius(), DetectorConstruction::SetGasThickness(), G4RunMessenger::SetNewValue(), RE06DetectorConstruction::SetNumberOfLayers(), DetectorConstruction::SetPadLength(), DetectorConstruction::SetPadWidth(), RE06DetectorConstruction::SetSerialGeometry(), DetectorConstruction::SetSizeX(), DetectorConstruction::SetSizeYZ(), DetectorConstruction::SetTallyPosition(), DetectorConstruction::SetTallySize(), and DetectorConstruction::SetVertexLength().

832 {
833  if(prop)
834  { G4UImanager::GetUIpointer()->ApplyCommand("/run/geometryModified"); }
835  else
837 }
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:58
G4RunManagerKernel * kernel
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:419
const G4Event* G4RunManager::GetCurrentEvent ( ) const
inline
const G4Run* G4RunManager::GetCurrentRun ( ) const
inline
G4int G4RunManager::GetFlagRandomNumberStatusToG4Event ( ) const
inline

Definition at line 394 of file G4RunManager.hh.

References storeRandomNumberStatusToG4Event.

Referenced by G4RunMessenger::GetCurrentValue().

G4int storeRandomNumberStatusToG4Event
G4bool G4RunManager::GetGeometryToBeOptimized ( )
inline

Definition at line 503 of file G4RunManager.hh.

References geometryToBeOptimized.

Referenced by export_G4RunManager().

504  { return geometryToBeOptimized; }
G4bool geometryToBeOptimized
G4Run* G4RunManager::GetNonConstCurrentRun ( ) const
inline
G4VUserActionInitialization* G4RunManager::GetNonConstUserActionInitialization ( ) const
inline

Definition at line 352 of file G4RunManager.hh.

References userActionInitialization.

Referenced by tbbTask::execute(), and G4MTRunManagerKernel::StartThread().

353  { return userActionInitialization; }
G4VUserActionInitialization * userActionInitialization
G4int G4RunManager::GetNumberOfEventsToBeProcessed ( ) const
inline

Definition at line 543 of file G4RunManager.hh.

References numberOfEventToBeProcessed.

Referenced by G4MTRunManagerKernel::StartThread().

544  { return numberOfEventToBeProcessed; }
G4int numberOfEventToBeProcessed
G4int G4RunManager::GetNumberOfParallelWorld ( ) const
inline

Definition at line 539 of file G4RunManager.hh.

References nParallelWorlds.

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

Definition at line 545 of file G4RunManager.hh.

References n_select_msg.

Referenced by tbbTask::execute(), and G4MTRunManagerKernel::StartThread().

546  { return n_select_msg; }
G4int n_select_msg
const G4Event* G4RunManager::GetPreviousEvent ( G4int  i) const
inline

Definition at line 523 of file G4RunManager.hh.

References n_perviousEventsToBeStored, and previousEvents.

Referenced by G4DigiManager::GetDigiCollection(), and G4DigiManager::GetHitsCollection().

524  {
525  if(i>=1 && i<=n_perviousEventsToBeStored)
526  { return (*previousEvents)[i-1]; }
527  return 0;
528  }
std::vector< G4Event * > * previousEvents
G4int n_perviousEventsToBeStored
G4int G4RunManager::GetPrintProgress ( )
inline
const G4String& G4RunManager::GetRandomNumberStatusForThisEvent ( ) const
inline

Definition at line 426 of file G4RunManager.hh.

References G4Exception(), JustWarning, randomNumberStatusForThisEvent, and storeRandomNumberStatusToG4Event.

427  {
429  { G4Exception("GrRunManager::SetRandomNumberStoreDir",
430  "Run0072",JustWarning,
431  "Random number status is not available for this event."); }
433  }
G4String randomNumberStatusForThisEvent
G4int storeRandomNumberStatusToG4Event
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
const G4String& G4RunManager::GetRandomNumberStatusForThisRun ( ) const
inline

Definition at line 424 of file G4RunManager.hh.

References randomNumberStatusForThisRun.

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

Definition at line 400 of file G4RunManager.hh.

References storeRandomNumberStatus.

Referenced by export_G4RunManager().

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

Definition at line 422 of file G4RunManager.hh.

References randomNumberStatusDir.

Referenced by export_G4RunManager(), and G4RunMessenger::GetCurrentValue().

423  { return randomNumberStatusDir; }
G4String randomNumberStatusDir
G4bool G4RunManager::GetRandomNumberStorePerEvent ( ) const
inline

Definition at line 436 of file G4RunManager.hh.

References rngStatusEventsFlag.

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

Definition at line 74 of file G4RunManager.cc.

Referenced by GammaKnifePhysicsList::AddPhysicsList(), HadrontherapyPhysicsList::AddPhysicsList(), IORTPhysicsList::AddPhysicsList(), CML2PhantomConstruction::applyNewCentre(), B2RunAction::B2RunAction(), B4bRunAction::B4bRunAction(), B4RunAction::B4RunAction(), B5EventAction::B5EventAction(), GammaKnifeController::BeamOn(), HadrontherapyInteractionParameters::BeamOn(), IORTInteractionParameters::BeamOn(), G4MPImanager::BeamOn(), B4bEventAction::BeginOfEventAction(), CexmcEventAction::BeginOfEventAction(), ExN04RunAction::BeginOfRunAction(), B3RunAction::BeginOfRunAction(), RE01RunAction::BeginOfRunAction(), B2RunAction::BeginOfRunAction(), F04RunAction::BeginOfRunAction(), GammaKnifeRunAction::BeginOfRunAction(), B1RunAction::BeginOfRunAction(), B1ConRunAction::BeginOfRunAction(), DicomRunAction::BeginOfRunAction(), HadrontherapyRunAction::BeginOfRunAction(), WLSRunAction::BeginOfRunAction(), ExG4RunAction01::BeginOfRunAction(), IORTRunAction::BeginOfRunAction(), CexmcChargeExchangeReconstructor::CexmcChargeExchangeReconstructor(), CexmcEnergyDepositDigitizer::CexmcEnergyDepositDigitizer(), CexmcReconstructor::CexmcReconstructor(), CexmcSteppingAction::CexmcSteppingAction(), CexmcTrackingAction::CexmcTrackingAction(), CexmcTrackPointsDigitizer::CexmcTrackPointsDigitizer(), BrachyDetectorConstructionI::CleanIodium(), BrachyDetectorConstructionIr::CleanIridium(), G4BlineTracer::ComputeBlines(), Construct(), pyEMSTDpl::Construct(), pyExN03pl::Construct(), pyExN01pl::Construct(), pyQgeom::Construct(), pyParticleGun::Construct(), pyMedicalBeam::Construct(), pyEZgeom::Construct(), CexmcSetup::Construct(), RunAction::CreateFilePixels(), IORTDetectorConstruction::DeleteDisc(), CexmcEnergyDepositDigitizer::Digitize(), RMC01AnalysisManager::EndOfEvent(), B1EventAction::EndOfEventAction(), B5EventAction::EndOfEventAction(), B4bEventAction::EndOfEventAction(), B4aEventAction::EndOfEventAction(), B4dEventAction::EndOfEventAction(), B4cEventAction::EndOfEventAction(), LXeEventAction::EndOfEventAction(), ExG4EventAction01::EndOfEventAction(), B3RunAction::EndOfRunAction(), B1RunAction::EndOfRunAction(), B1ConRunAction::EndOfRunAction(), B02RunAction::EndOfRunAction(), B03RunAction::EndOfRunAction(), B01RunAction::EndOfRunAction(), RE02RunAction::EndOfRunAction(), export_G4RunManager(), G4DigiManager::G4DigiManager(), GammaRayTelAnticoincidenceSD::GammaRayTelAnticoincidenceSD(), GammaRayTelCalorimeterSD::GammaRayTelCalorimeterSD(), GammaRayTelPrimaryGeneratorAction::GammaRayTelPrimaryGeneratorAction(), GammaRayTelTrackerROGeometry::GammaRayTelTrackerROGeometry(), GammaRayTelTrackerSD::GammaRayTelTrackerSD(), UltraPrimaryGeneratorAction::GeneratePrimaries(), HepMCG4Interface::GeneratePrimaryVertex(), G4WorkerRunManager::GetWorkerRunManager(), G4ErrorRunManagerHelper::InitializePhysics(), G4ExceptionHandler::Notify(), python3::print_version(), python::print_version(), G4VSceneHandler::ProcessScene(), G4EzWorld::Reset(), G4EzWorld::Resize(), CML2AcceleratorConstruction::rotateAccelerator(), G4AdjointSimManager::RunAdjointSimulation(), DetectorConstruction::SetAbsLength(), DetectorConstruction::SetAbsMaterial(), RE06DetectorConstruction::SetAbsorberMaterial(), DetectorConstruction::SetAbsorberMaterial(), F03DetectorConstruction::SetAbsorberMaterial(), F02DetectorConstruction::SetAbsorberMaterial(), F01DetectorConstruction::SetAbsorberMaterial(), F03DetectorConstruction::SetAbsorberRadius(), F01DetectorConstruction::SetAbsorberRadius(), F02DetectorConstruction::SetAbsorberRadius(), DetectorConstruction::SetAbsorberSizeYZ(), DetectorConstruction::SetAbsorberThickness(), F03DetectorConstruction::SetAbsorberThickness(), F01DetectorConstruction::SetAbsorberThickness(), F02DetectorConstruction::SetAbsorberThickness(), DetectorConstruction::SetAbsorberXpos(), F03DetectorConstruction::SetAbsorberZpos(), F01DetectorConstruction::SetAbsorberZpos(), F02DetectorConstruction::SetAbsorberZpos(), DetectorConstruction::SetAbsorMaterial(), DetectorConstruction::SetAbsorSizeYZ(), DetectorConstruction::SetAbsorThickness(), B5DetectorConstruction::SetArmAngle(), WLSDetectorConstruction::SetBarBase(), WLSDetectorConstruction::SetBarLength(), DetectorConstruction::SetCalorSizeYZ(), F04DetectorConstruction::SetCaptureMgntB1(), F04DetectorConstruction::SetCaptureMgntB2(), F04DetectorConstruction::SetCaptureMgntLength(), F04DetectorConstruction::SetCaptureMgntRadius(), WLSDetectorConstruction::SetClad1Radius(), WLSDetectorConstruction::SetClad2Radius(), WLSDetectorConstruction::SetCoatingRadius(), WLSDetectorConstruction::SetCoatingThickness(), DetectorConstruction::SetContainerMaterial(), DetectorConstruction::SetContainerThickness(), LXeDetectorConstruction::SetDefaults(), F04DetectorConstruction::SetDegraderMaterial(), F04DetectorConstruction::SetDegraderPos(), F04DetectorConstruction::SetDegraderRadius(), F04DetectorConstruction::SetDegraderThickness(), LXeDetectorConstruction::SetDimensions(), IORTDetectorConstruction::SetDiscoMaterialIORT(), IORTDetectorConstruction::SetDiscoMaterialIORT1(), DetectorConstruction::SetEcalLength(), DetectorConstruction::SetEcalMaterial(), DetectorConstruction::SetEcalWidth(), PassiveProtonBeamLine::SetFirstScatteringFoilXSize(), WLSDetectorConstruction::SetGap(), RE06DetectorConstruction::SetGapMaterial(), DetectorConstruction::SetGapMaterial(), DetectorConstruction::SetGapThickness(), DetectorConstruction::SetGasMaterial(), DetectorConstruction::SetGasRadius(), DetectorConstruction::SetGasThickness(), WLSDetectorConstruction::SetHoleRadius(), LXeDetectorConstruction::SetHousingReflectivity(), LXeDetectorConstruction::SetHousingThickness(), PassiveProtonBeamLine::SetInnerRadiusFinalCollimator(), Collimator100BeamLine::SetInnerRadiusFinalCollimatorIORT(), Collimator40BeamLine::SetInnerRadiusFinalCollimatorIORT(), Collimator50BeamLine::SetInnerRadiusFinalCollimatorIORT(), Collimator60BeamLine::SetInnerRadiusFinalCollimatorIORT(), Collimator70BeamLine::SetInnerRadiusFinalCollimatorIORT(), Collimator80BeamLine::SetInnerRadiusFinalCollimatorIORT(), HistoManager::SetIonPhysics(), DetectorConstruction::SetLBining(), LXeDetectorConstruction::SetMainVolumeOn(), DetectorConstruction::SetMaterial(), DetectorConstruction::SetMethod(), WLSDetectorConstruction::SetMirror(), WLSDetectorConstruction::SetMirrorPolish(), WLSDetectorConstruction::SetMirrorReflectivity(), HadrontherapyModulator::SetModulatorAngle(), DetectorConstruction::SetNbOfAbsor(), DetectorConstruction::SetNbOfDivisions(), DetectorConstruction::SetNbOfLayers(), G4GDMLMessenger::SetNewValue(), CexmcParticleGunMessenger::SetNewValue(), G4VisCommandSceneEndOfEventAction::SetNewValue(), G4VisCommandReviewKeptEvents::SetNewValue(), G4AdjointSimMessenger::SetNewValue(), LXeDetectorConstruction::SetNFibers(), WLSDetectorConstruction::SetNumberOfCladding(), RE06DetectorConstruction::SetNumberOfLayers(), LXeDetectorConstruction::SetNX(), LXeDetectorConstruction::SetNY(), LXeDetectorConstruction::SetNZ(), Collimator100BeamLine::SetOuterRadiusFinalCollimatorIORT(), Collimator40BeamLine::SetOuterRadiusFinalCollimatorIORT(), Collimator60BeamLine::SetOuterRadiusFinalCollimatorIORT(), Collimator70BeamLine::SetOuterRadiusFinalCollimatorIORT(), Collimator80BeamLine::SetOuterRadiusFinalCollimatorIORT(), Collimator50BeamLine::SetOuterRadiusFinalCollimatorIORT(), PassiveProtonBeamLine::SetOuterRadiusStopper(), DetectorConstruction::SetPadLength(), DetectorConstruction::SetPadWidth(), HadrontherapyDetectorConstruction::SetPhantomMaterial(), IORTDetectorConstruction::SetPhantomMaterial(), WLSDetectorConstruction::SetPhotonDetAlignment(), WLSDetectorConstruction::SetPhotonDetGeometry(), WLSDetectorConstruction::SetPhotonDetHalfLength(), WLSDetectorConstruction::SetPhotonDetPolish(), WLSDetectorConstruction::SetPhotonDetReflectivity(), LXeDetectorConstruction::SetPMTRadius(), PassiveProtonBeamLine::SetRangeShifterXPosition(), PassiveProtonBeamLine::SetRangeShifterXSize(), DetectorConstruction::SetRBining(), CCalPrimaryGeneratorAction::SetRunNo(), LXeEventAction::SetSaveThreshold(), PassiveProtonBeamLine::SetSecondScatteringFoilXSize(), RE06DetectorConstruction::SetSerialGeometry(), DetectorConstruction::SetSize(), DetectorConstruction::SetSizeX(), DetectorConstruction::SetSizeYZ(), LXeDetectorConstruction::SetSphereOn(), WLSDetectorConstruction::SetSurfaceRoughness(), DetectorConstruction::SetTallyMaterial(), DetectorConstruction::SetTallyPosition(), DetectorConstruction::SetTallySize(), DetectorConstruction::SetTarget1Material(), DetectorConstruction::SetTarget2Material(), F04DetectorConstruction::SetTargetAngle(), DetectorConstruction::SetTargetLength(), DetectorConstruction::SetTargetMaterial(), F04DetectorConstruction::SetTargetMaterial(), F04DetectorConstruction::SetTargetPos(), DetectorConstruction::SetTargetRadius(), F04DetectorConstruction::SetTargetRadius(), F04DetectorConstruction::SetTargetThickness(), F04DetectorConstruction::SetTransferMgntB(), F04DetectorConstruction::SetTransferMgntLength(), F04DetectorConstruction::SetTransferMgntPos(), F04DetectorConstruction::SetTransferMgntRadius(), G4VUserActionInitialization::SetUserAction(), DetectorConstruction::SetVertexLength(), WLSDetectorConstruction::SetWLSLength(), WLSDetectorConstruction::SetWLSRadius(), LXeDetectorConstruction::SetWLSSlabOn(), DetectorConstruction::SetWorldMaterial(), F03DetectorConstruction::SetWorldMaterial(), F02DetectorConstruction::SetWorldMaterial(), F01DetectorConstruction::SetWorldMaterial(), F04DetectorConstruction::SetWorldMaterial(), F03DetectorConstruction::SetWorldSizeR(), F02DetectorConstruction::SetWorldSizeR(), F01DetectorConstruction::SetWorldSizeR(), F04DetectorConstruction::SetWorldSizeR(), DetectorConstruction::SetWorldSizeX(), DetectorConstruction::SetWorldSizeYZ(), F03DetectorConstruction::SetWorldSizeZ(), F02DetectorConstruction::SetWorldSizeZ(), F01DetectorConstruction::SetWorldSizeZ(), F04DetectorConstruction::SetWorldSizeZ(), WLSDetectorConstruction::SetXYRatio(), CCalSensAssign::stackingAction(), BrachyDetectorConstruction::SwitchBrachytherapicSeed(), ThrowExceptionIfProjectIsRead(), DetectorConstruction::UpdateGeometry(), IORTGeometryController::UpdateGeometry(), ElectronBenchmarkDetector::UpdateGeometry(), ExN03DetectorConstruction::UpdateGeometry(), XrayFluoPlaneDetectorConstruction::UpdateGeometry(), XrayFluoMercuryDetectorConstruction::UpdateGeometry(), XrayFluoDetectorConstruction::UpdateGeometry(), Em10DetectorConstruction::UpdateGeometry(), GammaRayTelDetectorConstruction::UpdateGeometry(), HadrontherapyDetectorConstruction::UpdateGeometry(), IORTDetectorConstruction::UpdateGeometry(), OpNoviceSteppingAction::UserSteppingAction(), B4bSteppingAction::UserSteppingAction(), B1SteppingAction::UserSteppingAction(), XrayTelSteppingAction::UserSteppingAction(), and G4Run::~G4Run().

75 { return fRunManager; }
RMType G4RunManager::GetRunManagerType ( ) const
inline

Definition at line 553 of file G4RunManager.hh.

References runManagerType.

Referenced by G4RunMessenger::GetCurrentValue(), G4RunMessenger::SetNewValue(), and G4Run::~G4Run().

554  { return runManagerType; }
RMType runManagerType
G4String G4RunManager::GetSelectMacro ( ) const
inline

Definition at line 547 of file G4RunManager.hh.

References selectMacro.

Referenced by tbbTask::execute(), and G4MTRunManagerKernel::StartThread().

548  { return selectMacro; }
G4String selectMacro
const G4VUserActionInitialization* G4RunManager::GetUserActionInitialization ( ) const
inline

Definition at line 350 of file G4RunManager.hh.

References userActionInitialization.

Referenced by tbbTask::execute(), and G4MTRunManagerKernel::StartThread().

351  { return userActionInitialization; }
G4VUserActionInitialization * userActionInitialization
const G4VUserDetectorConstruction* G4RunManager::GetUserDetectorConstruction ( ) const
inline
const G4UserEventAction* G4RunManager::GetUserEventAction ( ) const
inline

Definition at line 362 of file G4RunManager.hh.

References userEventAction.

Referenced by G4BlineTracer::ComputeBlines(), export_G4RunManager(), and G4RTWorkerInitialization::WorkerRunStart().

363  { return userEventAction; }
G4UserEventAction * userEventAction
const G4VUserPhysicsList* G4RunManager::GetUserPhysicsList ( ) const
inline

Definition at line 348 of file G4RunManager.hh.

References physicsList.

Referenced by CexmcSetup::Construct(), tbbTask::execute(), export_G4RunManager(), and G4MTRunManagerKernel::StartThread().

349  { return physicsList; }
G4VUserPhysicsList * physicsList
const G4VUserPrimaryGeneratorAction* G4RunManager::GetUserPrimaryGeneratorAction ( ) const
inline
const G4UserRunAction* G4RunManager::GetUserRunAction ( ) const
inline
const G4UserStackingAction* G4RunManager::GetUserStackingAction ( ) const
inline

Definition at line 364 of file G4RunManager.hh.

References userStackingAction.

Referenced by G4BlineTracer::ComputeBlines(), export_G4RunManager(), and G4RTWorkerInitialization::WorkerRunStart().

365  { return userStackingAction; }
G4UserStackingAction * userStackingAction
const G4UserSteppingAction* G4RunManager::GetUserSteppingAction ( ) const
inline

Definition at line 368 of file G4RunManager.hh.

References userSteppingAction.

Referenced by G4BlineTracer::ComputeBlines(), export_G4RunManager(), and G4RTWorkerInitialization::WorkerRunStart().

369  { return userSteppingAction; }
G4UserSteppingAction * userSteppingAction
const G4UserTrackingAction* G4RunManager::GetUserTrackingAction ( ) const
inline
const G4UserWorkerInitialization* G4RunManager::GetUserWorkerInitialization ( ) const
inline
const G4UserWorkerThreadInitialization* G4RunManager::GetUserWorkerThreadInitialization ( ) const
inline

Definition at line 356 of file G4RunManager.hh.

References userWorkerThreadInitialization.

Referenced by tbbTask::execute(), and G4MTRunManagerKernel::StartThread().

G4UserWorkerThreadInitialization * userWorkerThreadInitialization
G4int G4RunManager::GetVerboseLevel ( ) const
inline

Definition at line 487 of file G4RunManager.hh.

References verboseLevel.

Referenced by export_G4RunManager(), and G4RunMessenger::GetCurrentValue().

488  { return verboseLevel; }
G4int verboseLevel
const G4String& G4RunManager::GetVersionString ( ) const
inline

Definition at line 379 of file G4RunManager.hh.

References G4RunManagerKernel::GetVersionString(), and kernel.

Referenced by export_G4RunManager().

380  { return kernel->GetVersionString(); }
const G4String & GetVersionString() const
G4RunManagerKernel * kernel
void G4RunManager::Initialize ( void  )
virtual

Reimplemented in G4MTRunManager.

Definition at line 501 of file G4RunManager.cc.

References G4cerr, G4endl, G4State_Idle, G4State_PreInit, geometryInitialized, G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), initializedAtLeastOnce, InitializeGeometry(), InitializePhysics(), and physicsInitialized.

Referenced by ConfirmBeamOnCondition(), export_G4RunManager(), G4MTRunManager::Initialize(), main(), G4RunMessenger::SetNewValue(), and G4MTRunManagerKernel::StartThread().

502 {
504  G4ApplicationState currentState = stateManager->GetCurrentState();
505  if(currentState!=G4State_PreInit && currentState!=G4State_Idle)
506  {
507  G4cerr << "Illegal application state - "
508  << "G4RunManager::Initialize() ignored." << G4endl;
509  return;
510  }
511 
514  initializedAtLeastOnce = true;
515 }
G4bool physicsInitialized
virtual void InitializePhysics()
virtual void InitializeGeometry()
G4bool geometryInitialized
G4bool initializedAtLeastOnce
static G4StateManager * GetStateManager()
G4ApplicationState GetCurrentState() const
#define G4endl
Definition: G4ios.hh:61
G4ApplicationState
G4GLOB_DLL std::ostream G4cerr
void G4RunManager::InitializeEventLoop ( G4int  n_event,
const char *  macroFile = 0,
G4int  n_select = -1 
)
virtual

Reimplemented in G4MTRunManager.

Definition at line 363 of file G4RunManager.cc.

References msgText, n_select_msg, selectMacro, G4Timer::Start(), timer, and verboseLevel.

Referenced by G4WorkerRunManager::DoEventLoop(), and DoEventLoop().

364 {
365  if(verboseLevel>0)
366  { timer->Start(); }
367 
368  n_select_msg = n_select;
369  if(macroFile!=0)
370  {
371  if(n_select_msg<0) n_select_msg = n_event;
372  msgText = "/control/execute ";
373  msgText += macroFile;
374  selectMacro = macroFile;
375  }
376  else
377  {
378  n_select_msg = -1;
379  selectMacro = "";
380  }
381 }
G4Timer * timer
G4int n_select_msg
G4String msgText
G4String selectMacro
void Start()
G4int verboseLevel
void G4RunManager::InitializeGeometry ( )
virtual

Reimplemented in G4WorkerRunManager.

Definition at line 517 of file G4RunManager.cc.

References G4VUserDetectorConstruction::Construct(), G4VUserDetectorConstruction::ConstructParallelGeometries(), G4VUserDetectorConstruction::ConstructParallelSD(), G4VUserDetectorConstruction::ConstructSDandField(), G4RunManagerKernel::DefineWorldVolume(), FatalException, G4cout, G4endl, G4Exception(), geometryInitialized, kernel, nParallelWorlds, G4RunManagerKernel::SetNumberOfParallelWorld(), userDetector, and verboseLevel.

Referenced by Initialize().

518 {
519  if(!userDetector)
520  {
521  G4Exception("G4RunManager::InitializeGeometry", "Run0033",
522  FatalException, "G4VUserDetectorConstruction is not defined!");
523  return;
524  }
525 
526  if(verboseLevel>1) G4cout << "userDetector->Construct() start." << G4endl;
527 
533  geometryInitialized = true;
534 }
virtual G4VPhysicalVolume * Construct()=0
void SetNumberOfParallelWorld(G4int i)
G4bool geometryInitialized
G4GLOB_DLL std::ostream G4cout
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
G4int verboseLevel
void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
void G4RunManager::InitializePhysics ( )
virtual

Reimplemented in G4MTRunManager.

Definition at line 536 of file G4RunManager.cc.

References FatalException, G4Exception(), G4RunManagerKernel::InitializePhysics(), kernel, physicsInitialized, and physicsList.

Referenced by Initialize(), and G4MTRunManager::InitializePhysics().

537 {
538  if(physicsList)
539  {
541  }
542  else
543  {
544  G4Exception("G4RunManager::InitializePhysics()", "Run0034",
545  FatalException, "G4VUserPhysicsList is not defined!");
546  }
547  physicsInitialized = true;
548 
549 }
G4VUserPhysicsList * physicsList
G4bool physicsInitialized
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4RunManagerKernel * kernel
void G4RunManager::PhysicsHasBeenModified ( )
inline
void G4RunManager::ProcessOneEvent ( G4int  i_event)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 383 of file G4RunManager.cc.

References AnalyzeEvent(), G4UImanager::ApplyCommand(), currentEvent, eventManager, GenerateEvent(), G4UImanager::GetUIpointer(), msgText, n_select_msg, G4EventManager::ProcessOneEvent(), and UpdateScoring().

Referenced by DoEventLoop().

384 {
385  currentEvent = GenerateEvent(i_event);
388  UpdateScoring();
390 }
G4int n_select_msg
G4String msgText
G4Event * currentEvent
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:58
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:419
void G4RunManager::ReinitializeGeometry ( G4bool  destroyFirst = false,
G4bool  prop = true 
)

Definition at line 844 of file G4RunManager.cc.

References G4UImanager::ApplyCommand(), G4LogicalVolumeStore::Clean(), G4PhysicalVolumeStore::Clean(), G4SolidStore::Clean(), G4cout, G4endl, G4RunManagerKernel::GeometryHasBeenModified(), geometryInitialized, G4LogicalVolumeStore::GetInstance(), G4SolidStore::GetInstance(), G4PhysicalVolumeStore::GetInstance(), G4GeometryManager::GetInstance(), G4UImanager::GetUIpointer(), G4Threading::IsWorkerThread(), kernel, G4GeometryManager::OpenGeometry(), and verboseLevel.

Referenced by F03DetectorConstruction::SetAbsorberRadius(), F01DetectorConstruction::SetAbsorberRadius(), F02DetectorConstruction::SetAbsorberRadius(), DetectorConstruction::SetAbsorberSizeYZ(), DetectorConstruction::SetAbsorberThickness(), F03DetectorConstruction::SetAbsorberThickness(), F01DetectorConstruction::SetAbsorberThickness(), F02DetectorConstruction::SetAbsorberThickness(), DetectorConstruction::SetAbsorberXpos(), F03DetectorConstruction::SetAbsorberZpos(), F01DetectorConstruction::SetAbsorberZpos(), F02DetectorConstruction::SetAbsorberZpos(), DetectorConstruction::SetAbsorSizeYZ(), DetectorConstruction::SetAbsorThickness(), WLSDetectorConstruction::SetBarBase(), WLSDetectorConstruction::SetBarLength(), DetectorConstruction::SetCalorSizeYZ(), F04DetectorConstruction::SetCaptureMgntB1(), F04DetectorConstruction::SetCaptureMgntB2(), F04DetectorConstruction::SetCaptureMgntLength(), F04DetectorConstruction::SetCaptureMgntRadius(), WLSDetectorConstruction::SetClad1Radius(), WLSDetectorConstruction::SetClad2Radius(), WLSDetectorConstruction::SetCoatingRadius(), WLSDetectorConstruction::SetCoatingThickness(), LXeDetectorConstruction::SetDefaults(), F04DetectorConstruction::SetDegraderPos(), F04DetectorConstruction::SetDegraderRadius(), F04DetectorConstruction::SetDegraderThickness(), LXeDetectorConstruction::SetDimensions(), WLSDetectorConstruction::SetGap(), DetectorConstruction::SetGapThickness(), WLSDetectorConstruction::SetHoleRadius(), LXeDetectorConstruction::SetHousingReflectivity(), LXeDetectorConstruction::SetHousingThickness(), DetectorConstruction::SetLBining(), LXeDetectorConstruction::SetMainVolumeOn(), WLSDetectorConstruction::SetMirror(), WLSDetectorConstruction::SetMirrorPolish(), WLSDetectorConstruction::SetMirrorReflectivity(), DetectorConstruction::SetNbOfAbsor(), DetectorConstruction::SetNbOfDivisions(), DetectorConstruction::SetNbOfLayers(), G4RunMessenger::SetNewValue(), LXeDetectorConstruction::SetNFibers(), WLSDetectorConstruction::SetNumberOfCladding(), LXeDetectorConstruction::SetNX(), LXeDetectorConstruction::SetNY(), LXeDetectorConstruction::SetNZ(), WLSDetectorConstruction::SetPhotonDetAlignment(), WLSDetectorConstruction::SetPhotonDetGeometry(), WLSDetectorConstruction::SetPhotonDetHalfLength(), WLSDetectorConstruction::SetPhotonDetPolish(), WLSDetectorConstruction::SetPhotonDetReflectivity(), LXeDetectorConstruction::SetPMTRadius(), DetectorConstruction::SetRBining(), DetectorConstruction::SetSize(), LXeDetectorConstruction::SetSphereOn(), WLSDetectorConstruction::SetSurfaceRoughness(), F04DetectorConstruction::SetTargetAngle(), DetectorConstruction::SetTargetLength(), F04DetectorConstruction::SetTargetPos(), DetectorConstruction::SetTargetRadius(), F04DetectorConstruction::SetTargetRadius(), F04DetectorConstruction::SetTargetThickness(), F04DetectorConstruction::SetTransferMgntB(), F04DetectorConstruction::SetTransferMgntLength(), F04DetectorConstruction::SetTransferMgntPos(), F04DetectorConstruction::SetTransferMgntRadius(), WLSDetectorConstruction::SetWLSLength(), WLSDetectorConstruction::SetWLSRadius(), LXeDetectorConstruction::SetWLSSlabOn(), F03DetectorConstruction::SetWorldSizeR(), F02DetectorConstruction::SetWorldSizeR(), F01DetectorConstruction::SetWorldSizeR(), F04DetectorConstruction::SetWorldSizeR(), DetectorConstruction::SetWorldSizeX(), DetectorConstruction::SetWorldSizeYZ(), F03DetectorConstruction::SetWorldSizeZ(), F02DetectorConstruction::SetWorldSizeZ(), F01DetectorConstruction::SetWorldSizeZ(), F04DetectorConstruction::SetWorldSizeZ(), WLSDetectorConstruction::SetXYRatio(), and ElectronBenchmarkDetector::UpdateGeometry().

845 {
846  if(destroyFirst && !(G4Threading::IsWorkerThread()))
847  {
848  if(verboseLevel>0)
849  {
850  G4cout<<"#### G4PhysicalVolumeStore, G4LogicalVolumeStore and G4SolidStore\n"
851  <<"#### are wiped out. Command-based scorer, layerd mass geometry,\n"
852  <<"#### biasing with parallel world, etc. are not functioning any longer."
853  <<G4endl;
854  }
859  }
860  if(prop)
861  { G4UImanager::GetUIpointer()->ApplyCommand("/run/reinitializeGeometry"); }
862  else
863  {
865  geometryInitialized = false;
866  }
867 }
static void Clean()
Definition: G4SolidStore.cc:79
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:58
static G4PhysicalVolumeStore * GetInstance()
G4bool geometryInitialized
G4GLOB_DLL std::ostream G4cout
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
static G4GeometryManager * GetInstance()
G4bool IsWorkerThread()
Definition: G4Threading.cc:104
#define G4endl
Definition: G4ios.hh:61
void OpenGeometry(G4VPhysicalVolume *vol=0)
G4RunManagerKernel * kernel
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:419
G4int verboseLevel
void G4RunManager::ReOptimize ( G4LogicalVolume pLog)

Definition at line 749 of file G4RunManager.cc.

References G4cout, G4endl, G4LogicalVolume::GetName(), G4Timer::GetSystemElapsed(), G4Timer::GetUserElapsed(), G4LogicalVolume::GetVoxelHeader(), G4LogicalVolume::SetVoxelHeader(), G4Timer::Start(), G4Timer::Stop(), and verboseLevel.

Referenced by ReOptimizeMotherOf().

750 {
751  G4Timer localtimer;
752  if(verboseLevel>1)
753  { localtimer.Start(); }
754  G4SmartVoxelHeader* header = pLog->GetVoxelHeader();
755  delete header;
756  header = new G4SmartVoxelHeader(pLog);
757  pLog->SetVoxelHeader(header);
758  if(verboseLevel>1)
759  {
760  localtimer.Stop();
761  G4SmartVoxelStat stat(pLog,header,localtimer.GetSystemElapsed(),
762  localtimer.GetUserElapsed());
763  G4cout << G4endl << "Voxelisation of logical volume <"
764  << pLog->GetName() << ">" << G4endl;
765  G4cout << " heads : " << stat.GetNumberHeads() << " - nodes : "
766  << stat.GetNumberNodes() << " - pointers : "
767  << stat.GetNumberPointers() << G4endl;
768  G4cout << " Memory used : " << (stat.GetMemoryUse()+512)/1024
769  << "k - total time : " << stat.GetTotalTime()
770  << " - system time : " << stat.GetSysTime() << G4endl;
771  }
772 }
G4SmartVoxelHeader * GetVoxelHeader() const
G4double GetSystemElapsed() const
Definition: G4Timer.cc:119
G4String GetName() const
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()
G4int verboseLevel
void G4RunManager::ReOptimizeMotherOf ( G4VPhysicalVolume pPhys)

Definition at line 743 of file G4RunManager.cc.

References G4VPhysicalVolume::GetMotherLogical(), and ReOptimize().

744 {
745  G4LogicalVolume* pMotherL = pPhys->GetMotherLogical();
746  if(pMotherL) ReOptimize(pMotherL);
747 }
void ReOptimize(G4LogicalVolume *)
G4LogicalVolume * GetMotherLogical() const
void G4RunManager::RestoreRandomNumberStatus ( const G4String fileN)
virtual

Definition at line 636 of file G4RunManager.cc.

References G4cout, G4endl, G4String::index(), randomNumberStatusDir, and verboseLevel.

Referenced by export_G4RunManager(), and G4RunMessenger::SetNewValue().

637 {
638  G4String fileNameWithDirectory;
639  if(fileN.index("/")==std::string::npos)
640  { fileNameWithDirectory = randomNumberStatusDir+fileN; }
641  else
642  { fileNameWithDirectory = fileN; }
643 
644  G4Random::restoreEngineStatus(fileNameWithDirectory);
645  if(verboseLevel>0) G4cout << "RandomNumberEngineStatus restored from file: "
646  << fileNameWithDirectory << G4endl;
647  G4Random::showEngineStatus();
648 }
G4GLOB_DLL std::ostream G4cout
str_size index(const char *, G4int pos=0) const
G4String randomNumberStatusDir
#define G4endl
Definition: G4ios.hh:61
G4int verboseLevel
void G4RunManager::rndmSaveThisEvent ( )
virtual

Definition at line 615 of file G4RunManager.cc.

References G4UImanager::ApplyCommand(), currentEvent, currentRun, G4cerr, G4cout, G4endl, G4Event::GetEventID(), G4Run::GetRunID(), G4UImanager::GetUIpointer(), randomNumberStatusDir, storeRandomNumberStatus, and verboseLevel.

Referenced by LXeEventAction::EndOfEventAction(), export_G4RunManager(), and G4RunMessenger::SetNewValue().

616 {
618  G4cerr << "Warning from G4RunManager::rndmSaveThisEvent():"
619  << " there is no currentEvent or its RandomEngineStatus is not available."
620  << G4endl << "Command ignored." << G4endl;
621  return;
622  }
623 
624  G4String fileIn = randomNumberStatusDir + "currentEvent.rndm";
625 
626  std::ostringstream os;
627  os << "run" << currentRun->GetRunID() << "evt" << currentEvent->GetEventID()
628  << ".rndm" << '\0';
629  G4String fileOut = randomNumberStatusDir + os.str();
630 
631  G4String copCmd = "/control/shell cp "+fileIn+" "+fileOut;
633  if(verboseLevel>0) G4cout << "currentEvent.rndm is copied to file: " << fileOut << G4endl;
634 }
G4bool storeRandomNumberStatus
G4Event * currentEvent
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:58
G4int GetEventID() const
Definition: G4Event.hh:140
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:419
G4int verboseLevel
G4GLOB_DLL std::ostream G4cerr
void G4RunManager::rndmSaveThisRun ( )
virtual

Definition at line 593 of file G4RunManager.cc.

References G4UImanager::ApplyCommand(), currentRun, G4cerr, G4cout, G4endl, G4Run::GetRunID(), G4UImanager::GetUIpointer(), randomNumberStatusDir, storeRandomNumberStatus, and verboseLevel.

Referenced by export_G4RunManager(), and G4RunMessenger::SetNewValue().

594 {
595  G4int runNumber = 0;
596  if(currentRun) runNumber = currentRun->GetRunID();
598  G4cerr << "Warning from G4RunManager::rndmSaveThisRun():"
599  << " Random number status was not stored prior to this run."
600  << G4endl << "Command ignored." << G4endl;
601  return;
602  }
603 
604  G4String fileIn = randomNumberStatusDir + "currentRun.rndm";
605 
606  std::ostringstream os;
607  os << "run" << runNumber << ".rndm" << '\0';
608  G4String fileOut = randomNumberStatusDir + os.str();
609 
610  G4String copCmd = "/control/shell cp "+fileIn+" "+fileOut;
612  if(verboseLevel>0) G4cout << "currentRun.rndm is copied to file: " << fileOut << G4endl;
613 }
G4bool storeRandomNumberStatus
int G4int
Definition: G4Types.hh:78
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:58
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:419
G4int verboseLevel
G4GLOB_DLL std::ostream G4cerr
void G4RunManager::RunInitialization ( )
virtual

Reimplemented in G4WorkerRunManager.

Definition at line 302 of file G4RunManager.cc.

References G4UserRunAction::BeginOfRunAction(), currentRun, DCtable, fakeRun, G4cout, G4endl, G4UserRunAction::GenerateRun(), G4SDManager::GetHCtable(), G4Run::GetRunID(), G4SDManager::GetSDMpointerIfExist(), kernel, n_perviousEventsToBeStored, numberOfEventProcessed, numberOfEventToBeProcessed, previousEvents, printModulo, randomNumberStatusForThisRun, rngStatusEventsFlag, runAborted, runIDCounter, G4RunManagerKernel::RunInitialization(), G4Run::SetDCtable(), G4Run::SetHCtable(), G4Run::SetNumberOfEventToBeProcessed(), G4Run::SetRandomNumberStatus(), G4Run::SetRunID(), storeRandomNumberStatus, StoreRNGStatus(), userRunAction, and verboseLevel.

Referenced by BeamOn().

303 {
304  if(!(kernel->RunInitialization(fakeRun))) return;
305  if(fakeRun) return;
306 
307  if(currentRun) delete currentRun;
308  currentRun = 0;
309 
311  if(!currentRun) currentRun = new G4Run();
312 
315 
318  if(fSDM)
319  { currentRun->SetHCtable(fSDM->GetHCtable()); }
320 
321  std::ostringstream oss;
322  G4Random::saveFullState(oss);
323  randomNumberStatusForThisRun = oss.str();
325 
326  previousEvents->clear();
327  for(G4int i_prev=0;i_prev<n_perviousEventsToBeStored;i_prev++)
328  { previousEvents->push_back((G4Event*)0); }
329 
330  if(printModulo>=0 || verboseLevel>0)
331  { G4cout << "### Run " << currentRun->GetRunID() << " starts." << G4endl; }
333 
335  G4String fileN = "currentRun";
336  if ( rngStatusEventsFlag ) {
337  std::ostringstream os;
338  os << "run" << currentRun->GetRunID();
339  fileN = os.str();
340  }
341  StoreRNGStatus(fileN);
342  }
343 
344  runAborted = false;
346 }
void SetNumberOfEventToBeProcessed(G4int n_ev)
Definition: G4Run.hh:97
G4int numberOfEventToBeProcessed
void SetDCtable(G4DCtable *DCtbl)
Definition: G4Run.hh:101
G4int numberOfEventProcessed
G4String randomNumberStatusForThisRun
G4bool storeRandomNumberStatus
int G4int
Definition: G4Types.hh:78
G4bool runAborted
G4bool RunInitialization(G4bool fakeRun=false)
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
G4UserRunAction * userRunAction
void SetHCtable(G4HCtable *HCtbl)
Definition: G4Run.hh:99
G4int runIDCounter
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()
std::vector< G4Event * > * previousEvents
G4DCtable * DCtable
G4int n_perviousEventsToBeStored
G4int verboseLevel
static G4SDManager * GetSDMpointerIfExist()
Definition: G4SDManager.cc:49
void G4RunManager::RunTermination ( )
virtual

Reimplemented in G4MTRunManager, G4WorkerRunManager, and tbbMasterRunManager.

Definition at line 463 of file G4RunManager.cc.

References currentRun, G4UserRunAction::EndOfRunAction(), fakeRun, G4VPersistencyManager::GetPersistencyManager(), kernel, n_perviousEventsToBeStored, previousEvents, runIDCounter, G4RunManagerKernel::RunTermination(), G4VPersistencyManager::Store(), G4Event::ToBeKept(), and userRunAction.

Referenced by BeamOn(), G4WorkerRunManager::RunTermination(), and G4MTRunManager::RunTermination().

464 {
465  if(!fakeRun)
466  {
467  for(size_t itr=0;itr<previousEvents->size();itr++)
468  {
469  G4Event* prevEv = (*previousEvents)[itr];
470  if((prevEv) && !(prevEv->ToBeKept())) delete prevEv;
471  }
472  previousEvents->clear();
473  for(G4int i_prev=0;i_prev<n_perviousEventsToBeStored;i_prev++)
474  { previousEvents->push_back((G4Event*)0); }
475 
477 
479  if(fPersM) fPersM->Store(currentRun);
480  runIDCounter++;
481  }
482 
484 }
virtual void EndOfRunAction(const G4Run *aRun)
int G4int
Definition: G4Types.hh:78
virtual G4bool Store(const G4Event *anEvent)=0
G4bool ToBeKept() const
Definition: G4Event.hh:136
G4UserRunAction * userRunAction
G4int runIDCounter
G4Run * currentRun
G4RunManagerKernel * kernel
std::vector< G4Event * > * previousEvents
G4int n_perviousEventsToBeStored
static G4VPersistencyManager * GetPersistencyManager()
void G4RunManager::SetDCtable ( G4DCtable DCtbl)
inline

Definition at line 549 of file G4RunManager.hh.

References DCtable.

Referenced by G4DigiManager::AddNewModule().

550  { DCtable = DCtbl; }
G4DCtable * DCtable
void G4RunManager::SetGeometryToBeOptimized ( G4bool  vl)
inline

Definition at line 494 of file G4RunManager.hh.

References G4RunManagerKernel::GeometryHasBeenModified(), geometryToBeOptimized, kernel, and G4RunManagerKernel::SetGeometryToBeOptimized().

Referenced by G4RunMessenger::SetNewValue().

495  {
496  if(geometryToBeOptimized != vl)
497  {
501  }
502  }
void SetGeometryToBeOptimized(G4bool vl)
G4bool geometryToBeOptimized
G4RunManagerKernel * kernel
void G4RunManager::SetNumberOfAdditionalWaitingStacks ( G4int  iAdd)
inline

Definition at line 372 of file G4RunManager.hh.

References eventManager, and G4EventManager::SetNumberOfAdditionalWaitingStacks().

G4EventManager * eventManager
void SetNumberOfAdditionalWaitingStacks(G4int iAdd)
void G4RunManager::SetNumberOfEventsToBeProcessed ( G4int  val)
inline

Definition at line 541 of file G4RunManager.hh.

References numberOfEventToBeProcessed.

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

Definition at line 507 of file G4RunManager.hh.

References n_perviousEventsToBeStored.

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

Definition at line 382 of file G4RunManager.hh.

References kernel, and G4RunManagerKernel::SetPrimaryTransformer().

383  { kernel->SetPrimaryTransformer(pt); }
void SetPrimaryTransformer(G4PrimaryTransformer *pt)
G4RunManagerKernel * kernel
void G4RunManager::SetPrintProgress ( G4int  i)
inline
void G4RunManager::SetRandomNumberStore ( G4bool  flag)
inline
void G4RunManager::SetRandomNumberStoreDir ( const G4String dir)
inline

Definition at line 402 of file G4RunManager.hh.

References G4cerr, G4endl, G4Exception(), JustWarning, and randomNumberStatusDir.

Referenced by F04RunAction::BeginOfRunAction(), WLSRunAction::BeginOfRunAction(), ExG4RunAction01::BeginOfRunAction(), export_G4RunManager(), G4RunMessenger::SetNewValue(), and LXeEventAction::SetSaveThreshold().

403  {
404  G4String dirStr = dir;
405  if( dirStr(dirStr.length()-1) != '/' ) dirStr += "/";
406 #ifndef WIN32
407  G4String shellCmd = "mkdir -p ";
408 #else
409  std::replace(dirStr.begin(), dirStr.end(),'/','\\');
410  G4String shellCmd = "if not exist " + dirStr + " mkdir ";
411 #endif
412  shellCmd += dirStr;
413  randomNumberStatusDir = dirStr;
414  G4int sysret = system(shellCmd);
415  if(sysret!=0)
416  {
417  G4String errmsg = "\"" + shellCmd + "\" returns non-zero value. Directory creation failed.";
418  G4Exception("GrRunManager::SetRandomNumberStoreDir","Run0071",JustWarning,errmsg);
419  G4cerr << " return value = " << sysret << G4endl;
420  }
421  }
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
void G4RunManager::SetRandomNumberStorePerEvent ( G4bool  flag)
inline

Definition at line 434 of file G4RunManager.hh.

References rngStatusEventsFlag.

Referenced by G4RunMessenger::SetNewValue().

435  { rngStatusEventsFlag = flag; }
G4bool rngStatusEventsFlag
void G4RunManager::SetRunIDCounter ( G4int  i)
inline
void G4RunManager::SetUserAction ( G4UserRunAction userAction)
virtual
void G4RunManager::SetUserAction ( G4VUserPrimaryGeneratorAction userAction)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 804 of file G4RunManager.cc.

References userPrimaryGeneratorAction.

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

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 807 of file G4RunManager.cc.

References eventManager, G4EventManager::SetUserAction(), and userEventAction.

808 {
809  eventManager->SetUserAction(userAction);
810  userEventAction = userAction;
811 }
G4UserEventAction * userEventAction
void SetUserAction(G4UserEventAction *userAction)
G4EventManager * eventManager
void G4RunManager::SetUserAction ( G4UserStackingAction userAction)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 813 of file G4RunManager.cc.

References eventManager, G4EventManager::SetUserAction(), and userStackingAction.

814 {
815  eventManager->SetUserAction(userAction);
816  userStackingAction = userAction;
817 }
void SetUserAction(G4UserEventAction *userAction)
G4EventManager * eventManager
G4UserStackingAction * userStackingAction
void G4RunManager::SetUserAction ( G4UserTrackingAction userAction)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 819 of file G4RunManager.cc.

References eventManager, G4EventManager::SetUserAction(), and userTrackingAction.

820 {
821  eventManager->SetUserAction(userAction);
822  userTrackingAction = userAction;
823 }
G4UserTrackingAction * userTrackingAction
void SetUserAction(G4UserEventAction *userAction)
G4EventManager * eventManager
void G4RunManager::SetUserAction ( G4UserSteppingAction userAction)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 825 of file G4RunManager.cc.

References eventManager, G4EventManager::SetUserAction(), and userSteppingAction.

826 {
827  eventManager->SetUserAction(userAction);
828  userSteppingAction = userAction;
829 }
void SetUserAction(G4UserEventAction *userAction)
G4EventManager * eventManager
G4UserSteppingAction * userSteppingAction
void G4RunManager::SetUserInitialization ( G4VUserDetectorConstruction userInit)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 774 of file G4RunManager.cc.

References userDetector.

Referenced by main(), XrayFluoSimulation::RunSimulation(), G4WorkerRunManager::SetUserInitialization(), and G4MTRunManager::SetUserInitialization().

775 { userDetector = userInit; }
G4VUserDetectorConstruction * userDetector
void G4RunManager::SetUserInitialization ( G4VUserPhysicsList userInit)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 777 of file G4RunManager.cc.

References kernel, physicsList, and G4RunManagerKernel::SetPhysics().

778 {
779  physicsList = userInit;
780  kernel->SetPhysics(userInit);
781 }
void SetPhysics(G4VUserPhysicsList *uPhys)
G4VUserPhysicsList * physicsList
G4RunManagerKernel * kernel
void G4RunManager::SetUserInitialization ( G4VUserActionInitialization userInit)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 795 of file G4RunManager.cc.

References G4VUserActionInitialization::Build(), and userActionInitialization.

796 {
797  userActionInitialization = userInit;
799 }
G4VUserActionInitialization * userActionInitialization
virtual void Build() const =0
void G4RunManager::SetUserInitialization ( G4UserWorkerInitialization userInit)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 783 of file G4RunManager.cc.

References FatalException, and G4Exception().

784 {
785  G4Exception("G4RunManager::SetUserInitialization()", "Run3001", FatalException,
786  "Base-class G4RunManager cannot take G4UserWorkerInitialization. Use G4MTRunManager.");
787 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
void G4RunManager::SetUserInitialization ( G4UserWorkerThreadInitialization userInit)
virtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 789 of file G4RunManager.cc.

References FatalException, and G4Exception().

790 {
791  G4Exception("G4RunManager::SetUserThreadInitialization()", "Run3001", FatalException,
792  "Base-class G4RunManager cannot take G4UserWorkerThreadInitialization. Use G4MTRunManager.");
793 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
void G4RunManager::SetVerboseLevel ( G4int  vl)
inline

Definition at line 484 of file G4RunManager.hh.

References kernel, G4RunManagerKernel::SetVerboseLevel(), and verboseLevel.

Referenced by export_G4RunManager(), and G4RunMessenger::SetNewValue().

485  { verboseLevel = vl;
486  kernel->SetVerboseLevel(vl); }
G4RunManagerKernel * kernel
void SetVerboseLevel(G4int vl)
G4int verboseLevel
void G4RunManager::StackPreviousEvent ( G4Event anEvent)
protected

Definition at line 486 of file G4RunManager.cc.

References currentRun, n_perviousEventsToBeStored, previousEvents, G4Run::StoreEvent(), and G4Event::ToBeKept().

Referenced by TerminateOneEvent().

487 {
488  if(anEvent->ToBeKept()) currentRun->StoreEvent(anEvent);
489  G4Event* evt;
491  { evt = anEvent; }
492  else
493  {
494  previousEvents->insert(previousEvents->begin(),anEvent);
495  evt = previousEvents->back();
496  previousEvents->pop_back();
497  }
498  if(evt && !(evt->ToBeKept())) delete evt;
499 }
G4bool ToBeKept() const
Definition: G4Event.hh:136
void StoreEvent(G4Event *evt)
Definition: G4Run.cc:62
G4Run * currentRun
std::vector< G4Event * > * previousEvents
G4int n_perviousEventsToBeStored
void G4RunManager::StoreRandomNumberStatusToG4Event ( G4int  vl)
inline

Definition at line 385 of file G4RunManager.hh.

References eventManager, G4EventManager::StoreRandomNumberStatusToG4Event(), and storeRandomNumberStatusToG4Event.

Referenced by G4RunMessenger::SetNewValue().

390  {
393  }
G4int storeRandomNumberStatusToG4Event
void StoreRandomNumberStatusToG4Event(G4int vl)
G4EventManager * eventManager
void G4RunManager::StoreRNGStatus ( const G4String filenamePrefix)
protectedvirtual

Reimplemented in G4MTRunManager, and G4WorkerRunManager.

Definition at line 450 of file G4RunManager.cc.

References randomNumberStatusDir.

Referenced by GenerateEvent(), and RunInitialization().

451 {
452  G4String fileN = randomNumberStatusDir + fnpref+".rndm";
453  G4Random::saveEngineStatus(fileN);
454 }
G4String randomNumberStatusDir
void G4RunManager::TerminateEventLoop ( )
virtual

Reimplemented in G4MTRunManager.

Definition at line 399 of file G4RunManager.cc.

References G4cout, G4endl, numberOfEventProcessed, runAborted, G4Timer::Stop(), timer, and verboseLevel.

Referenced by G4WorkerRunManager::DoEventLoop(), and DoEventLoop().

400 {
401  if(verboseLevel>0)
402  {
403  timer->Stop();
404  G4cout << "Run terminated." << G4endl;
405  G4cout << "Run Summary" << G4endl;
406  if(runAborted)
407  { G4cout << " Run Aborted after " << numberOfEventProcessed << " events processed." << G4endl; }
408  else
409  { G4cout << " Number of events processed : " << numberOfEventProcessed << G4endl; }
410  G4cout << " " << *timer << G4endl;
411  }
412  //////////////// G4ProductionCutsTable::GetProductionCutsTable()->PhysicsTableUpdated();
413 }
G4Timer * timer
G4int numberOfEventProcessed
G4bool runAborted
G4GLOB_DLL std::ostream G4cout
void Stop()
#define G4endl
Definition: G4ios.hh:61
G4int verboseLevel
void G4RunManager::TerminateOneEvent ( )
virtual

Reimplemented in G4MTRunManager.

Definition at line 392 of file G4RunManager.cc.

References currentEvent, numberOfEventProcessed, and StackPreviousEvent().

Referenced by G4WorkerRunManager::DoEventLoop(), and DoEventLoop().

393 {
395  currentEvent = 0;
397 }
G4int numberOfEventProcessed
G4Event * currentEvent
void StackPreviousEvent(G4Event *anEvent)
void G4RunManager::UpdateScoring ( )
protected

Definition at line 721 of file G4RunManager.cc.

References G4ScoringManager::Accumulate(), currentEvent, G4HCofThisEvent::GetCapacity(), G4HCofThisEvent::GetHC(), G4Event::GetHCofThisEvent(), G4ScoringManager::GetNumberOfMesh(), and G4ScoringManager::GetScoringManagerIfExist().

Referenced by G4WorkerRunManager::ProcessOneEvent(), and ProcessOneEvent().

722 {
724  if(!ScM) return;
725  G4int nPar = ScM->GetNumberOfMesh();
726  if(nPar<1) return;
727 
729  if(!HCE) return;
730  G4int nColl = HCE->GetCapacity();
731  for(G4int i=0;i<nColl;i++)
732  {
733  G4VHitsCollection* HC = HCE->GetHC(i);
734  if(HC) ScM->Accumulate(HC);
735  }
736 }
int G4int
Definition: G4Types.hh:78
G4Event * currentEvent
static G4ScoringManager * GetScoringManagerIfExist()
void Accumulate(G4VHitsCollection *map)
G4HCofThisEvent * GetHCofThisEvent() const
Definition: G4Event.hh:174
size_t GetNumberOfMesh() const

Field Documentation

G4Event* G4RunManager::currentEvent
protected
G4Run* G4RunManager::currentRun
protected
G4VPhysicalVolume* G4RunManager::currentWorld
protected

Definition at line 317 of file G4RunManager.hh.

G4DCtable* G4RunManager::DCtable
protected
G4EventManager* G4RunManager::eventManager
protected
G4bool G4RunManager::fakeRun
protected
G4bool G4RunManager::geometryInitialized
protected
G4bool G4RunManager::geometryToBeOptimized
protected

Definition at line 295 of file G4RunManager.hh.

Referenced by GetGeometryToBeOptimized(), and SetGeometryToBeOptimized().

G4bool G4RunManager::initializedAtLeastOnce
protected

Definition at line 294 of file G4RunManager.hh.

Referenced by ConfirmBeamOnCondition(), and Initialize().

G4RunManagerKernel* G4RunManager::kernel
protected
G4String G4RunManager::msgText
protected
G4int G4RunManager::n_perviousEventsToBeStored
protected
G4int G4RunManager::n_select_msg
protected
G4int G4RunManager::nParallelWorlds
protected

Definition at line 319 of file G4RunManager.hh.

Referenced by GetNumberOfParallelWorld(), and InitializeGeometry().

G4int G4RunManager::numberOfEventProcessed
protected
G4int G4RunManager::numberOfEventToBeProcessed
protected
G4bool G4RunManager::physicsInitialized
protected

Definition at line 292 of file G4RunManager.hh.

Referenced by ConfirmBeamOnCondition(), Initialize(), and InitializePhysics().

G4VUserPhysicsList* G4RunManager::physicsList
protected
std::vector<G4Event*>* G4RunManager::previousEvents
protected
G4int G4RunManager::printModulo
protected
G4String G4RunManager::randomNumberStatusDir
protected
G4String G4RunManager::randomNumberStatusForThisEvent
protected
G4String G4RunManager::randomNumberStatusForThisRun
protected
G4bool G4RunManager::rngStatusEventsFlag
protected
G4bool G4RunManager::runAborted
protected
G4int G4RunManager::runIDCounter
protected
RMType G4RunManager::runManagerType
protected

Definition at line 557 of file G4RunManager.hh.

Referenced by G4RunManager(), and GetRunManagerType().

G4String G4RunManager::selectMacro
protected
G4bool G4RunManager::storeRandomNumberStatus
protected
G4int G4RunManager::storeRandomNumberStatusToG4Event
protected
G4Timer* G4RunManager::timer
protected
G4VUserActionInitialization* G4RunManager::userActionInitialization
protected
G4VUserDetectorConstruction* G4RunManager::userDetector
protected
G4UserEventAction* G4RunManager::userEventAction
protected
G4VUserPrimaryGeneratorAction* G4RunManager::userPrimaryGeneratorAction
protected
G4UserRunAction* G4RunManager::userRunAction
protected
G4UserStackingAction* G4RunManager::userStackingAction
protected

Definition at line 283 of file G4RunManager.hh.

Referenced by GetUserStackingAction(), and SetUserAction().

G4UserSteppingAction* G4RunManager::userSteppingAction
protected

Definition at line 285 of file G4RunManager.hh.

Referenced by GetUserSteppingAction(), and SetUserAction().

G4UserTrackingAction* G4RunManager::userTrackingAction
protected

Definition at line 284 of file G4RunManager.hh.

Referenced by GetUserTrackingAction(), and SetUserAction().

G4UserWorkerInitialization* G4RunManager::userWorkerInitialization
protected
G4UserWorkerThreadInitialization* G4RunManager::userWorkerThreadInitialization
protected
G4int G4RunManager::verboseLevel
protected

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