37 #include "RunMessenger.hh"
39 #include "RunAction.hh"
50 fRunAction(runAction),
51 fRndmDir(0), fRndmSaveCmd(0), fRndmReadCmd(0)
57 fRndmSaveCmd->
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) {
90 if (command == fRndmReadCmd) {
91 G4cout <<
"\n---> rndm status restored from file: " << newValues <<
G4endl;
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static void restoreEngineStatus(const char filename[]="Config.conf")
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
RunMessenger(RunAction *runAction)
G4GLOB_DLL std::ostream G4cout
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
static void showEngineStatus()
void SetDefaultValue(const char *defVal)
void SetRndmFreq(G4int val)
virtual void SetNewValue(G4UIcommand *, G4String)