46 : fRunAction (runAction)
53 SetGuidance(
"set frequency to save rndm status on external files.");
55 fRndmSaveCmd->
SetGuidance(
"freq > 0 saved on: beginOfRun.rndm");
56 fRndmSaveCmd->
SetGuidance(
"freq = 1 saved on: endOfRun.rndm");
57 fRndmSaveCmd->
SetGuidance(
"freq = 2 saved on: endOfEvent.rndm");
59 fRndmSaveCmd->
SetRange(
"frequency>=0 && frequency<=2");
63 fRndmReadCmd->
SetGuidance(
"get rndm status from an external file.");
69 fSetAutoSeedCmd->
SetGuidance(
"Switch on/off time-based random seeds");
70 fSetAutoSeedCmd->
SetGuidance(
" true: run seeds determined by system time");
71 fSetAutoSeedCmd->
SetGuidance(
"false: use command 'random/resetEngineFrom'");
81 delete fRndmDir;
delete fRndmSaveCmd;
82 delete fRndmReadCmd;
delete fSetAutoSeedCmd;
89 if (command == fRndmSaveCmd)
92 if (command == fRndmReadCmd)
93 {
G4cout <<
"\n---> rndm status restored from file: " << newValue <<
G4endl;
94 G4Random::restoreEngineStatus(newValue);
95 G4Random::showEngineStatus();
98 if(command == fSetAutoSeedCmd)
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)
void SetRndmFreq(G4int val)
static G4bool GetNewBoolValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
Definition of the F04RunActionMessenger class.
G4GLOB_DLL std::ostream G4cout
virtual ~F04RunActionMessenger()
void SetAutoSeed(const G4bool val)
virtual void SetNewValue(G4UIcommand *, G4String)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
Definition of the F04RunAction class.
void AvailableForStates(G4ApplicationState s1)
void SetDefaultValue(const char *defVal)
F04RunActionMessenger(F04RunAction *)