#include <WLSRunActionMessenger.hh>
Definition at line 51 of file WLSRunActionMessenger.hh.
WLSRunActionMessenger::WLSRunActionMessenger |
( |
WLSRunAction * |
runaction | ) |
|
Definition at line 49 of file WLSRunActionMessenger.cc.
50 : fRunAction (runaction)
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.");
73 fSetAutoSeedCmd->
SetGuidance(
"Switch on/off time-based random seeds");
74 fSetAutoSeedCmd->
SetGuidance(
" true: run seeds determined by system time");
75 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)
WLSRunActionMessenger::~WLSRunActionMessenger |
( |
| ) |
|
|
virtual |
Definition at line 83 of file WLSRunActionMessenger.cc.
85 delete fRndmDir;
delete fRndmSaveCmd;
86 delete fRndmReadCmd;
delete fSetAutoSeedCmd;
Reimplemented from G4UImessenger.
Definition at line 91 of file WLSRunActionMessenger.cc.
93 if (command == fRndmSaveCmd)
96 if (command == fRndmReadCmd)
97 {
G4cout <<
"\n---> rndm status restored from file: " << newValue <<
G4endl;
98 G4Random::restoreEngineStatus(newValue);
99 G4Random::showEngineStatus();
102 if(command == fSetAutoSeedCmd)
void SetAutoSeed(const G4bool val)
static G4int GetNewIntValue(const char *paramString)
void SetRndmFreq(G4int val)
static G4bool GetNewBoolValue(const char *paramString)
G4GLOB_DLL std::ostream G4cout
The documentation for this class was generated from the following files: