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)
virtual ~F03RunMessenger()
G4GLOB_DLL std::ostream G4cout
void SetRndmFreq(G4int val)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
Definition of the F03RunAction class.
F03RunMessenger(F03RunAction *)
void SetDefaultValue(const char *defVal)
Definition of the F03RunMessenger class.
virtual void SetNewValue(G4UIcommand *, G4String)