19#include <G4UIcmdWithABool.hh>
20#include <G4UIcmdWithADoubleAndUnit.hh>
21#include <G4UIcmdWithAString.hh>
22#include <G4UIcmdWithAnInteger.hh>
23#include <G4UIdirectory.hh>
28 fRunAction(runAction),
30 fSaveRandomStatusCmd(0),
31 fReadRandomStatusCmd(0),
32 fRandomStatusFileCmd(0),
33 fSetLooperThresholdWarningEnergyCmd(0),
34 fSetLooperThresholdImportantEnergyCmd(0),
35 fSetNumberOfLooperThresholdTrialsCmd(0)
45 "Save random engine status in start of event");
48 G4State_PreInit, G4State_Init, G4State_Idle);
52 "Read random engine status from a file in start of event");
55 G4State_PreInit, G4State_Init, G4State_Idle);
59 "Set the name of the random engine status file to be read in");
62 G4State_PreInit, G4State_Init, G4State_Idle);
65 "/mcRun/setLooperThresholdWarningEnergy",
this);
67 "Set energy threshold for warnings about killing looping tracks";
71 "LooperThresholdWarningEnergy",
false);
75 "/mcRun/setLooperThresholdImportantEnergy",
this);
76 guidance =
"Set important energy threshold: ";
79 "it enables tracks above its value to survive a chosen number of "
84 "LooperThresholdImportantEnergy",
false);
88 new G4UIcmdWithAnInteger(
"/mcRun/setNumberOfLooperThresholdTrials",
this);
89 guidance =
"Set number of trials to propagate a looping track";
92 "NumberOfLooperThresholdTrials",
false);
131 G4double value = G4UIcommand::ConvertToDouble(newValue);
135 G4double value = G4UIcommand::ConvertToDouble(newValue);
139 G4double value = G4UIcommand::ConvertToInt(newValue);
Definition of the TG4Globals class and basic container types.
Definition of the TG4RunActionMessenger class.
Definition of the TG4RunAction class.
G4UIcmdWithABool * fSaveRandomStatusCmd
command: saveRandom
G4UIcmdWithAString * fRandomStatusFileCmd
command: setRandomFile
TG4RunAction * fRunAction
associated class
G4UIcmdWithADoubleAndUnit * fSetLooperThresholdWarningEnergyCmd
setLooperThresholdWarningEnergy command
G4UIcmdWithAnInteger * fSetNumberOfLooperThresholdTrialsCmd
setNumberOfLooperThresholdTrials
virtual ~TG4RunActionMessenger()
G4UIcmdWithABool * fReadRandomStatusCmd
command: readRandom
TG4RunActionMessenger()
Not implemented.
G4UIdirectory * fRunDirectory
command directory
G4UIcmdWithADoubleAndUnit * fSetLooperThresholdImportantEnergyCmd
setLooperThresholImportantEnergy command
virtual void SetNewValue(G4UIcommand *command, G4String string)
Actions at the beginning and the end of run.
void SetNumberOfThresholdTrials(G4int value)
void SetThresholdWarningEnergy(G4double value)
void SetReadRandomStatus(G4bool readRandomStatus)
void SetSaveRandomStatus(G4bool saveRandomStatus)
void SetThresholdImportantEnergy(G4double value)
void SetRandomStatusFile(G4String RandomStatusFile)