#include <F04RunActionMessenger.hh>
Definition at line 46 of file F04RunActionMessenger.hh.
F04RunActionMessenger::F04RunActionMessenger |
( |
F04RunAction * |
runAction | ) |
|
Definition at line 45 of file F04RunActionMessenger.cc.
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'");
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetDefaultValue(const char *defVal)
F04RunActionMessenger::~F04RunActionMessenger |
( |
| ) |
|
|
virtual |
Definition at line 79 of file F04RunActionMessenger.cc.
81 delete fRndmDir;
delete fRndmSaveCmd;
82 delete fRndmReadCmd;
delete fSetAutoSeedCmd;
Reimplemented from G4UImessenger.
Definition at line 87 of file F04RunActionMessenger.cc.
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)
static G4int GetNewIntValue(const char *paramString)
void SetRndmFreq(G4int val)
static G4bool GetNewBoolValue(const char *paramString)
G4GLOB_DLL std::ostream G4cout
void SetAutoSeed(const G4bool val)
The documentation for this class was generated from the following files: