20#include <G4UIcmdWithABool.hh>
21#include <G4UIcmdWithAString.hh>
22#include <G4UIcmdWithoutParameter.hh>
23#include <G4UIdirectory.hh>
28 fRunManager(runManager),
39 fDirectory->SetGuidance(
"TGeant4 control commands.");
41 fRootCmd =
new G4UIcmdWithoutParameter(
"/mcControl/root",
this);
42 fRootCmd->SetGuidance(
"Switch to Root interactive shell.");
43 fRootCmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle,
44 G4State_GeomClosed, G4State_EventProc);
46 fRootMacroCmd =
new G4UIcmdWithAString(
"/mcControl/rootMacro",
this);
48 "Process Root macro with given name (from file name.C)");
50 fRootMacroCmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle,
51 G4State_GeomClosed, G4State_EventProc);
58 G4State_Idle, G4State_GeomClosed, G4State_EventProc);
62 "(In)Activate passing the random number seed from Root to Geant4");
66 fG3DefaultsCmd =
new G4UIcmdWithoutParameter(
"/mcControl/g3Defaults",
this);
67 fG3DefaultsCmd->SetGuidance(
"Set G3 default parameters (cut values,");
68 fG3DefaultsCmd->SetGuidance(
"tracking media max step values, ...)");
Definition of the TG4Globals class and basic container types.
Definition of the TG4RunManager.h class.
Definition of the TG4RunMessenger class.
Definition of the TG4UICmdWithAComplexString class.
Geant4 implementation of the TVirtualMC interface methods for access to Geant4 at run level.
void UseRootRandom(G4bool useRootRandom)
void ProcessRootCommand(G4String command)
void ProcessRootMacro(G4String macroName)
TG4RunMessenger()
Not implemented.
G4UIcmdWithoutParameter * fG3DefaultsCmd
command: g3Defaults
TG4RunManager * fRunManager
associated class
G4UIcmdWithoutParameter * fRootCmd
command: root
virtual void SetNewValue(G4UIcommand *command, G4String string)
virtual ~TG4RunMessenger()
G4UIdirectory * fDirectory
command directory
TG4UICmdWithAComplexString * fRootCommandCmd
command: rootCmd
G4UIcmdWithABool * fUseRootRandomCmd
command: useRootRandom
G4UIcmdWithAString * fRootMacroCmd
command: rootMacro
G4 command that takes up to three string values.
void SetDefaultValue(const G4String &defVal)
void SetParameterName(const G4String &name, G4bool omittable)