50 : fRunAction (runaction)
57 SetGuidance(
"set frequency to save rndm status on external files.");
59 fRndmSaveCmd->
SetGuidance(
"freq > 0 saved on: beginOfRun.rndm");
60 fRndmSaveCmd->
SetGuidance(
"freq = 1 saved on: endOfRun.rndm");
61 fRndmSaveCmd->
SetGuidance(
"freq = 2 saved on: endOfEvent.rndm");
63 fRndmSaveCmd->
SetRange(
"frequency>=0 && frequency<=2");
67 fRndmReadCmd->
SetGuidance(
"get rndm status from an external file.");
73 fSetAutoSeedCmd->
SetGuidance(
"Switch on/off time-based random seeds");
74 fSetAutoSeedCmd->
SetGuidance(
" true: run seeds determined by system time");
75 fSetAutoSeedCmd->
SetGuidance(
"false: use command 'random/resetEngineFrom'");
85 delete fRndmDir;
delete fRndmSaveCmd;
86 delete fRndmReadCmd;
delete fSetAutoSeedCmd;
93 if (command == fRndmSaveCmd)
96 if (command == fRndmReadCmd)
97 {
G4cout <<
"\n---> rndm status restored from file: " << newValue <<
G4endl;
98 G4Random::restoreEngineStatus(newValue);
99 G4Random::showEngineStatus();
102 if(command == fSetAutoSeedCmd)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetAutoSeed(const G4bool val)
virtual ~WLSRunActionMessenger()
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetRndmFreq(G4int val)
static G4bool GetNewBoolValue(const char *paramString)
virtual void SetNewValue(G4UIcommand *, G4String)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4GLOB_DLL std::ostream G4cout
Definition of the WLSRunAction class.
WLSRunActionMessenger(WLSRunAction *)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetDefaultValue(const char *defVal)
Definition of the WLSRunActionMessenger class.