Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4RunMessenger Class Reference

#include <G4RunMessenger.hh>

Inheritance diagram for G4RunMessenger:
G4UImessenger

Public Member Functions

 G4RunMessenger (G4RunManager *runMgr)
 
 ~G4RunMessenger ()
 
void SetNewValue (G4UIcommand *command, G4String newValues)
 
G4String GetCurrentValue (G4UIcommand *command)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
G4bool operator== (const G4UImessenger &messenger) const
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 

Detailed Description

Definition at line 69 of file G4RunMessenger.hh.

Constructor & Destructor Documentation

G4RunMessenger::G4RunMessenger ( G4RunManager runMgr)

Definition at line 48 of file G4RunMessenger.cc.

References G4UIcommand::AvailableForStates(), G4State_EventProc, G4State_GeomClosed, G4State_Idle, G4State_PreInit, G4UIcmdWithAnInteger::SetDefaultValue(), G4UIcmdWithAString::SetDefaultValue(), G4UIcmdWithABool::SetDefaultValue(), G4UIparameter::SetDefaultValue(), G4UIcommand::SetGuidance(), G4UIcommand::SetParameter(), G4UIcmdWithAString::SetParameterName(), G4UIcmdWithAnInteger::SetParameterName(), G4UIcmdWithABool::SetParameterName(), G4UIparameter::SetParameterRange(), G4UIcommand::SetRange(), and G4UIcommand::SetToBeBroadcasted().

49 :runManager(runMgr)
50 {
51  runDirectory = new G4UIdirectory("/run/");
52  runDirectory->SetGuidance("Run control commands.");
53 
54  initCmd = new G4UIcmdWithoutParameter("/run/initialize",this);
55  initCmd->SetGuidance("Initialize G4 kernel.");
57 
58  beamOnCmd = new G4UIcommand("/run/beamOn",this);
59  beamOnCmd->SetGuidance("Start a Run.");
60  beamOnCmd->SetGuidance("If G4 kernel is not initialized, it will be initialized.");
61  beamOnCmd->SetGuidance("Default number of events to be processed is 1.");
62  beamOnCmd->SetGuidance("The second and third arguments can be used for");
63  beamOnCmd->SetGuidance("executing a macro file at the end of each event.");
64  beamOnCmd->SetGuidance("If the second argument, i.e. name of the macro");
65  beamOnCmd->SetGuidance("file, is given but the third argument is not,");
66  beamOnCmd->SetGuidance("the macro file will be executed for all of the");
67  beamOnCmd->SetGuidance("event.");
68  beamOnCmd->SetGuidance("If the third argument (nSelect) is given, the");
69  beamOnCmd->SetGuidance("macro file will be executed only for the first");
70  beamOnCmd->SetGuidance("nSelect events.");
72  beamOnCmd->SetToBeBroadcasted(false);
73  G4UIparameter* p1 = new G4UIparameter("numberOfEvent",'i',true);
74  p1->SetDefaultValue(1);
75  p1->SetParameterRange("numberOfEvent >= 0");
76  beamOnCmd->SetParameter(p1);
77  G4UIparameter* p2 = new G4UIparameter("macroFile",'s',true);
78  p2->SetDefaultValue("***NULL***");
79  beamOnCmd->SetParameter(p2);
80  G4UIparameter* p3 = new G4UIparameter("nSelect",'i',true);
81  p3->SetDefaultValue(-1);
82  p3->SetParameterRange("nSelect>=-1");
83  beamOnCmd->SetParameter(p3);
84  //beamOnCmd->SetToBeBroadcasted(false);
85 
86  verboseCmd = new G4UIcmdWithAnInteger("/run/verbose",this);
87  verboseCmd->SetGuidance("Set the Verbose level of G4RunManager.");
88  verboseCmd->SetGuidance(" 0 : Silent (default)");
89  verboseCmd->SetGuidance(" 1 : Display main topics");
90  verboseCmd->SetGuidance(" 2 : Display main topics and run summary");
91  verboseCmd->SetParameterName("level",true);
92  verboseCmd->SetDefaultValue(0);
93  verboseCmd->SetRange("level >=0 && level <=2");
94 
95  printProgCmd = new G4UIcmdWithAnInteger("/run/printProgress",this);
96  printProgCmd->SetGuidance("Display begin_of_event information at given frequency.");
97  printProgCmd->SetGuidance("If it is set to zero, only the begin_of_run is shown.");
98  printProgCmd->SetGuidance("If it is set to -1, no print-out is shown.");
99  printProgCmd->SetParameterName("mod",true);
100  printProgCmd->SetDefaultValue(-1);
101  printProgCmd->SetRange("mod>=-1");
102 
103  nThreadsCmd = new G4UIcmdWithAnInteger("/run/numberOfThreads",this);
104  nThreadsCmd->SetGuidance("Set the number of threads to be used.");
105  nThreadsCmd->SetGuidance("This command is valid only for multi-threaded mode.");
106  nThreadsCmd->SetGuidance("This command works only in PreInit state.");
107  nThreadsCmd->SetGuidance("The command is ignored if it is issued in sequential mode.");
108  nThreadsCmd->SetParameterName("nThreads",true);
109  nThreadsCmd->SetDefaultValue(2);
110  nThreadsCmd->SetRange("nThreads >0");
111  nThreadsCmd->SetToBeBroadcasted(false);
112  nThreadsCmd->AvailableForStates(G4State_PreInit);
113 
114  evModCmd = new G4UIcmdWithAnInteger("/run/eventModulo",this);
115  evModCmd->SetGuidance("Set the event modulo for dispatching events to worker threads");
116  evModCmd->SetGuidance("i.e. each worker thread is ordered to simulate N events and then");
117  evModCmd->SetGuidance("comes back to G4MTRunManager for next set.");
118  evModCmd->SetGuidance("If it is set to zero (default value), N is roughly given by this.");
119  evModCmd->SetGuidance(" N = int( sqrt( number_of_events / number_of_threads ) )");
120  evModCmd->SetGuidance("The value N may affect on the computing performance in particular");
121  evModCmd->SetGuidance("if N is too small compared to the total number of events.");
122  evModCmd->SetGuidance("This command is valid only for multi-threaded mode.");
123  evModCmd->SetGuidance("This command is ignored if it is issued in sequential mode.");
124  evModCmd->SetParameterName("nev",true);
125  evModCmd->SetDefaultValue(0);
126  evModCmd->SetRange("nev>=0");
127  evModCmd->SetToBeBroadcasted(false);
129 
130  dumpRegCmd = new G4UIcmdWithAString("/run/dumpRegion",this);
131  dumpRegCmd->SetGuidance("Dump region information.");
132  dumpRegCmd->SetGuidance("In case name of a region is not given, all regions will be displayed.");
133  dumpRegCmd->SetParameterName("regionName", true);
134  dumpRegCmd->SetDefaultValue("**ALL**");
135  dumpRegCmd->AvailableForStates(G4State_Idle);
136 
137  dumpCoupleCmd = new G4UIcmdWithoutParameter("/run/dumpCouples",this);
138  dumpCoupleCmd->SetGuidance("Dump material-cuts-couple information.");
139  dumpCoupleCmd->SetGuidance("Note that material-cuts-couple information is updated");
140  dumpCoupleCmd->SetGuidance("after BeamOn has started.");
141  dumpCoupleCmd->AvailableForStates(G4State_Idle);
142 
143  optCmd = new G4UIcmdWithABool("/run/optimizeGeometry",this);
144  optCmd->SetGuidance("Set the optimization flag for geometry.");
145  optCmd->SetGuidance("If it is set to TRUE, G4GeometryManager will optimize");
146  optCmd->SetGuidance("the geometry definitions.");
147  optCmd->SetGuidance("GEANT4 is initialized with this flag as TRUE.");
148  optCmd->SetParameterName("optimizeFlag",true);
149  optCmd->SetDefaultValue(true);
151 
152  brkBoECmd = new G4UIcmdWithABool("/run/breakAtBeginOfEvent",this);
153  brkBoECmd->SetGuidance("Set a break point at the begining of every event.");
154  brkBoECmd->SetParameterName("flag",true);
155  brkBoECmd->SetDefaultValue(true);
156 
157  brkEoECmd = new G4UIcmdWithABool("/run/breakAtEndOfEvent",this);
158  brkEoECmd->SetGuidance("Set a break point at the end of every event.");
159  brkEoECmd->SetParameterName("flag",true);
160  brkEoECmd->SetDefaultValue(true);
161 
162  abortCmd = new G4UIcmdWithABool("/run/abort",this);
163  abortCmd->SetGuidance("Abort current run processing.");
164  abortCmd->SetGuidance("If softAbort is false (default), currently processing event will be immediately aborted,");
165  abortCmd->SetGuidance("while softAbort is true, abortion occurs after processing the current event.");
167  abortCmd->SetParameterName("softAbort",true);
168  abortCmd->SetDefaultValue(false);
169 
170  abortEventCmd = new G4UIcmdWithoutParameter("/run/abortCurrentEvent",this);
171  abortEventCmd->SetGuidance("Abort currently processing event.");
172  abortEventCmd->AvailableForStates(G4State_EventProc);
173 
174  geomCmd = new G4UIcmdWithoutParameter("/run/geometryModified",this);
175  geomCmd->SetGuidance("Force geometry to be closed (re-voxellized) again.");
176  geomCmd->SetGuidance("This command must be applied if geometry has been modified");
177  geomCmd->SetGuidance(" after the first initialization (or BeamOn).");
179 
180  geomRebCmd = new G4UIcmdWithABool("/run/reinitializeGeometry",this);
181  geomRebCmd->SetGuidance("Force geometry to be rebuilt once again.");
182  geomRebCmd->SetGuidance("This command must be applied if the user needs his/her");
183  geomRebCmd->SetGuidance(" detector construction to be reinvoked.");
184  geomRebCmd->SetGuidance("/run/geometryModified is automatically issued with this command.");
185  geomRebCmd->SetParameterName("destroyFirst",true);
186  geomRebCmd->SetDefaultValue(false);
188 
189  physCmd = new G4UIcmdWithoutParameter("/run/physicsModified",this);
190  physCmd->SetGuidance("Force all physics tables recalculated again.");
191  physCmd->SetGuidance("This command must be applied");
192  physCmd->SetGuidance(" if physics process has been modified after the");
193  physCmd->SetGuidance(" first initialization (or BeamOn).");
195 
196  constScoreCmd = new G4UIcmdWithoutParameter("/run/constructScoringWorlds",this);
197  constScoreCmd->SetGuidance("Constrct scoring parallel world(s) if defined.");
198  constScoreCmd->SetGuidance("This command is not mandatory, but automatically called when a run starts.");
199  constScoreCmd->SetGuidance("But the user may use this to visualize the scoring world(s) before a run to start.");
200  constScoreCmd->AvailableForStates(G4State_Idle);
201 
202  materialScanner = new G4MaterialScanner();
203 
204  randomDirectory = new G4UIdirectory("/random/");
205  randomDirectory->SetGuidance("Random number status control commands.");
206 
207  seedCmd = new G4UIcmdWithAString("/random/setSeeds",this);
208  seedCmd->SetGuidance("Initialize the random number generator with integer seed stream.");
209  seedCmd->SetGuidance("Number of integers should be more than 1.");
210  seedCmd->SetGuidance("Actual number of integers to be used depends on the individual random number engine.");
211  seedCmd->SetParameterName("IntArray",false);
213 
214  randDirCmd = new G4UIcmdWithAString("/random/setDirectoryName",this);
215  randDirCmd->SetGuidance("Define the directory name of the rndm status files.");
216  randDirCmd->SetGuidance("Directory will be created if it does not exist.");
217  randDirCmd->SetParameterName("fileName",true);
218  randDirCmd->SetDefaultValue("./");
220 
221  savingFlagCmd = new G4UIcmdWithABool("/random/setSavingFlag",this);
222  savingFlagCmd->SetGuidance("The randomNumberStatus will be saved at :");
223  savingFlagCmd->SetGuidance("begining of run (currentRun.rndm) and "
224  "begining of event (currentEvent.rndm) ");
225  savingFlagCmd->SetParameterName("flag",true);
226  savingFlagCmd->SetDefaultValue(true);
227 
228  saveThisRunCmd = new G4UIcmdWithoutParameter("/random/saveThisRun",this);
229  saveThisRunCmd->SetGuidance("copy currentRun.rndm to runXXX.rndm");
231 
232  saveThisEventCmd = new G4UIcmdWithoutParameter("/random/saveThisEvent",this);
233  saveThisEventCmd->SetGuidance("copy currentEvent.rndm to runXXXevtYYY.rndm");
234  saveThisEventCmd->AvailableForStates(G4State_EventProc);
235 
236  restoreRandCmd = new G4UIcmdWithAString("/random/resetEngineFrom",this);
237  restoreRandCmd->SetGuidance("Reset the status of the rndm engine from a file.");
238  restoreRandCmd->SetGuidance("See CLHEP manual for detail.");
239  restoreRandCmd->SetGuidance("The engine status must be stored beforehand.");
240  restoreRandCmd->SetGuidance("Directory of the status file should be set by"
241  " /random/setDirectoryName.");
242  restoreRandCmd->SetParameterName("fileName",true);
243  restoreRandCmd->SetDefaultValue("currentRun.rndm");
245  restoreRandCmd->SetToBeBroadcasted(false);
246 
247  saveEachEventCmd = new G4UIcmdWithABool("/random/saveEachEventFlag",this);
248  saveEachEventCmd->SetGuidance("Save random number status at beginning of each event.");
249  saveEachEventCmd->SetGuidance("File name contains run and event numbers: runXXXevtYYY.rndm");
250  saveEachEventCmd->SetParameterName("flag",true);
251  saveEachEventCmd->SetDefaultValue(true);
252 
253  randEvtCmd = new G4UIcmdWithAnInteger("/run/storeRndmStatToEvent",this);
254  randEvtCmd->SetGuidance("Flag to store rndm status to G4Event object.");
255  randEvtCmd->SetGuidance(" flag = 0 : not store (default)");
256  randEvtCmd->SetGuidance(" flag = 1 : status before primary particle generation is stored");
257  randEvtCmd->SetGuidance(" flag = 2 : status before event processing (after primary particle generation) is stored");
258  randEvtCmd->SetGuidance(" flag = 3 : both are stored");
259  randEvtCmd->SetGuidance("Note: Some performance overhead may be seen by storing rndm status, in particular");
260  randEvtCmd->SetGuidance("for the case of simplest geometry and small number of tracks per event.");
261  randEvtCmd->SetParameterName("flag",true);
262  randEvtCmd->SetDefaultValue(0);
263  randEvtCmd->SetRange("flag>=0 && flag<3");
265 
266 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameter(G4UIparameter *const newParameter)
Definition: G4UIcommand.hh:152
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterRange(const char *theRange)
void SetToBeBroadcasted(G4bool val)
Definition: G4UIcommand.hh:184
void SetDefaultValue(const char *theDefaultValue)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:225
void SetDefaultValue(const char *defVal)
void SetDefaultValue(G4int defVal)
G4RunMessenger::~G4RunMessenger ( )

Definition at line 268 of file G4RunMessenger.cc.

269 {
270  delete materialScanner;
271  delete beamOnCmd;
272  delete verboseCmd;
273  delete printProgCmd;
274  delete nThreadsCmd;
275  delete evModCmd;
276  delete optCmd;
277  delete dumpRegCmd;
278  delete dumpCoupleCmd;
279  delete brkBoECmd;
280  delete brkEoECmd;
281  delete abortCmd;
282  delete abortEventCmd;
283  delete initCmd;
284  delete geomCmd;
285  delete geomRebCmd;
286  delete physCmd;
287  delete randEvtCmd;
288  delete constScoreCmd;
289 
290  delete seedCmd;
291  delete savingFlagCmd;
292  delete saveThisRunCmd;
293  delete saveThisEventCmd;
294  delete restoreRandCmd;
295  delete randomDirectory;
296  delete saveEachEventCmd;
297 
298  delete randDirCmd;
299  delete runDirectory;
300 }

Member Function Documentation

G4String G4RunMessenger::GetCurrentValue ( G4UIcommand command)
virtual

Reimplemented from G4UImessenger.

Definition at line 421 of file G4RunMessenger.cc.

References G4UIcommand::ConvertToString(), G4RunManager::GetFlagRandomNumberStatusToG4Event(), G4RunManager::GetPrintProgress(), G4RunManager::GetRandomNumberStoreDir(), G4RunManager::GetRunManagerType(), G4RunManager::GetVerboseLevel(), G4RunManager::masterRM, and G4RunManager::sequentialRM.

422 {
423  G4String cv;
424 
425  if( command==verboseCmd )
426  { cv = verboseCmd->ConvertToString(runManager->GetVerboseLevel()); }
427  else if( command == printProgCmd )
428  { cv = printProgCmd->ConvertToString(runManager->GetPrintProgress()); }
429  else if( command==randDirCmd )
430  { cv = runManager->GetRandomNumberStoreDir(); }
431  else if( command==randEvtCmd )
432  { cv = randEvtCmd->ConvertToString(runManager->GetFlagRandomNumberStatusToG4Event()); }
433  else if( command==nThreadsCmd )
434  {
435  G4RunManager::RMType rmType = runManager->GetRunManagerType();
436  if( rmType==G4RunManager::masterRM )
437  {
438  cv = nThreadsCmd->ConvertToString(
439  static_cast<G4MTRunManager*>(runManager)->GetNumberOfThreads());
440  }
441  else if ( rmType==G4RunManager::sequentialRM )
442  {
443  cv = "0";
444  }
445  }
446 
447  return cv;
448 }
G4int GetVerboseLevel() const
G4int GetPrintProgress()
const G4String & GetRandomNumberStoreDir() const
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:357
G4int GetFlagRandomNumberStatusToG4Event() const
RMType GetRunManagerType() const
void G4RunMessenger::SetNewValue ( G4UIcommand command,
G4String  newValues 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 302 of file G4RunMessenger.cc.

References G4RunManager::AbortEvent(), G4RunManager::AbortRun(), G4RunManager::BeamOn(), G4RunManager::ConstructScoringWorlds(), G4ProductionCutsTable::DumpCouples(), G4RunManager::DumpRegion(), FatalException, G4cerr, G4cout, G4endl, G4Exception(), G4RunManager::GeometryHasBeenModified(), G4UIcmdWithABool::GetNewBoolValue(), G4UIcmdWithAnInteger::GetNewIntValue(), G4ProductionCutsTable::GetProductionCutsTable(), G4RunManager::GetRunManagerType(), G4UImanager::GetUIpointer(), G4RunManager::Initialize(), G4RunManager::masterRM, G4RunManager::PhysicsHasBeenModified(), G4RunManager::ReinitializeGeometry(), G4RunManager::RestoreRandomNumberStatus(), G4RunManager::rndmSaveThisEvent(), G4RunManager::rndmSaveThisRun(), G4RunManager::sequentialRM, G4RunManager::SetGeometryToBeOptimized(), G4UImanager::SetPauseAtBeginOfEvent(), G4UImanager::SetPauseAtEndOfEvent(), G4RunManager::SetPrintProgress(), G4RunManager::SetRandomNumberStore(), G4RunManager::SetRandomNumberStoreDir(), G4RunManager::SetRandomNumberStorePerEvent(), CLHEP::HepRandom::setTheSeeds(), G4RunManager::SetVerboseLevel(), G4UImessenger::StoI(), and G4RunManager::StoreRandomNumberStatusToG4Event().

303 {
304  if( command==beamOnCmd )
305  {
306  G4int nev;
307  G4int nst;
308  const char* nv = (const char*)newValue;
309  std::istringstream is(nv);
310  is >> nev >> macroFileName >> nst;
311  if(macroFileName=="***NULL***")
312  { runManager->BeamOn(nev); }
313  else
314  { runManager->BeamOn(nev,macroFileName,nst); }
315  }
316  else if( command==verboseCmd )
317  { runManager->SetVerboseLevel(verboseCmd->GetNewIntValue(newValue)); }
318  else if( command == printProgCmd )
319  { runManager->SetPrintProgress(printProgCmd->GetNewIntValue(newValue)); }
320  else if( command==nThreadsCmd )
321  {
322  G4RunManager::RMType rmType = runManager->GetRunManagerType();
323  if( rmType==G4RunManager::masterRM )
324  {
325  static_cast<G4MTRunManager*>(runManager)->SetNumberOfThreads(
326  nThreadsCmd->GetNewIntValue(newValue));
327  }
328  else if ( rmType==G4RunManager::sequentialRM )
329  {
330  G4cout<<"*** /run/numberOfThreads command is issued in sequential mode."
331  <<"\nCommand is ignored."<<G4endl;
332  }
333  else
334  {
335  G4Exception("G4RunMessenger::ApplyNewCommand","Run0901",FatalException,
336  "/run/numberOfThreads command is issued to local thread.");
337  }
338  }
339  else if( command==evModCmd)
340  {
341  G4RunManager::RMType rmType = runManager->GetRunManagerType();
342  if( rmType==G4RunManager::masterRM )
343  {
344  static_cast<G4MTRunManager*>(runManager)->SetEventModulo(evModCmd->GetNewIntValue(newValue));
345  }
346  else if ( rmType==G4RunManager::sequentialRM )
347  {
348  G4cout<<"*** /run/eventModulo command is issued in sequential mode."
349  <<"\nCommand is ignored."<<G4endl;
350  }
351  else
352  {
353  G4Exception("G4RunMessenger::ApplyNewCommand","Run0902",FatalException,
354  "/run/eventModulo command is issued to local thread.");
355  }
356  }
357  else if( command==dumpRegCmd )
358  {
359  if(newValue=="**ALL**")
360  { runManager->DumpRegion(); }
361  else
362  { runManager->DumpRegion(newValue); }
363  }
364  else if( command==dumpCoupleCmd)
365  {
367  }
368  else if( command==optCmd )
369  { runManager->SetGeometryToBeOptimized(optCmd->GetNewBoolValue(newValue)); }
370  else if( command==brkBoECmd )
372  else if( command==brkEoECmd )
374  else if( command==abortCmd )
375  { runManager->AbortRun(abortCmd->GetNewBoolValue(newValue)); }
376  else if( command==abortEventCmd )
377  { runManager->AbortEvent(); }
378  else if( command==initCmd )
379  { runManager->Initialize(); }
380  else if( command==geomCmd )
381  { runManager->GeometryHasBeenModified(false); }
382  else if( command==geomRebCmd )
383  { runManager->ReinitializeGeometry(geomRebCmd->GetNewBoolValue(newValue),false); }
384  else if( command==physCmd )
385  { runManager->PhysicsHasBeenModified(); }
386  else if( command==seedCmd )
387  {
388  G4Tokenizer next(newValue);
389  G4int idx=0;
390  long seeds[100];
391  G4String vl;
392  while(!(vl=next()).isNull())
393  { seeds[idx] = (long)(StoI(vl)); idx++; }
394  if(idx<2)
395  { G4cerr << "/random/setSeeds should have at least two integers. Command ignored." << G4endl; }
396  else
397  {
398  seeds[idx] = 0;
400  }
401  }
402  else if( command==randDirCmd )
403  { runManager->SetRandomNumberStoreDir(newValue); }
404  else if( command==savingFlagCmd )
405  { runManager->SetRandomNumberStore(savingFlagCmd->GetNewBoolValue(newValue)); }
406  else if( command==saveThisRunCmd )
407  { runManager->rndmSaveThisRun(); }
408  else if( command==saveThisEventCmd )
409  { runManager->rndmSaveThisEvent(); }
410  else if( command==restoreRandCmd )
411  { runManager->RestoreRandomNumberStatus(newValue); }
412  else if( command==randEvtCmd )
413  { runManager->StoreRandomNumberStatusToG4Event(randEvtCmd->GetNewIntValue(newValue)); }
414  else if( command==saveEachEventCmd)
415  { runManager->SetRandomNumberStorePerEvent(saveEachEventCmd->GetNewBoolValue(newValue)); }
416  else if( command==constScoreCmd )
417  { runManager->ConstructScoringWorlds(); }
418 
419 }
void GeometryHasBeenModified(G4bool prop=true)
virtual void AbortRun(G4bool softAbort=false)
void SetVerboseLevel(G4int vl)
static G4int GetNewIntValue(const char *paramString)
static void setTheSeeds(const long *seeds, int aux=-1)
Definition: Random.cc:141
void SetPrintProgress(G4int i)
void SetGeometryToBeOptimized(G4bool vl)
void SetRandomNumberStorePerEvent(G4bool flag)
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
void SetRandomNumberStore(G4bool flag)
int G4int
Definition: G4Types.hh:78
static G4bool GetNewBoolValue(const char *paramString)
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:58
virtual void RestoreRandomNumberStatus(const G4String &fileN)
virtual void rndmSaveThisRun()
G4GLOB_DLL std::ostream G4cout
void StoreRandomNumberStatusToG4Event(G4int vl)
void PhysicsHasBeenModified()
RMType GetRunManagerType() const
virtual void ConstructScoringWorlds()
virtual void rndmSaveThisEvent()
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
G4int StoI(G4String s)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
static G4ProductionCutsTable * GetProductionCutsTable()
void SetPauseAtEndOfEvent(G4bool vl)
Definition: G4UImanager.hh:196
void SetPauseAtBeginOfEvent(G4bool vl)
Definition: G4UImanager.hh:192
virtual void Initialize()
#define G4endl
Definition: G4ios.hh:61
virtual void AbortEvent()
void SetRandomNumberStoreDir(const G4String &dir)
void DumpRegion(const G4String &rname) const
G4GLOB_DLL std::ostream G4cerr

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