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.");
86 if (command == fRndmSaveCmd)
89 if (command == fRndmReadCmd)
90 {
G4cout <<
"\n---> rndm status restored from file: " << newValues <<
G4endl;
91 G4Random::restoreEngineStatus(newValues);
92 G4Random::showEngineStatus();
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
F02RunMessenger(F02RunAction *)
void SetRndmFreq(G4int val)
G4GLOB_DLL std::ostream G4cout
Definition of the F02RunMessenger class.
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
Definition of the F02RunAction class.
void SetDefaultValue(const char *defVal)
virtual ~F02RunMessenger()
virtual void SetNewValue(G4UIcommand *, G4String)