17 #include "G4UIdirectory.hh" 18 #include "G4UIcmdWithAString.hh" 19 #include "G4UIcmdWithAnInteger.hh" 29 eventDir =
new G4UIdirectory(
"/ActarSim/event/");
30 eventDir->SetGuidance(
"event control");
32 DrawCmd =
new G4UIcmdWithAString(
"/ActarSim/event/drawTracks",
this);
33 DrawCmd->SetGuidance(
"Draw the tracks in the event");
34 DrawCmd->SetGuidance(
" Choice : none, charged, neutral, all(default)");
35 DrawCmd->SetParameterName(
"choice",
true);
36 DrawCmd->SetDefaultValue(
"all");
37 DrawCmd->SetCandidates(
"none charged neutral all");
38 DrawCmd->AvailableForStates(G4State_Idle);
40 PrintCmd =
new G4UIcmdWithAnInteger(
"/ActarSim/event/printModulo",
this);
41 PrintCmd->SetGuidance(
"Print events modulo n");
42 PrintCmd->SetParameterName(
"EventNb",
false);
44 PrintCmd->AvailableForStates(G4State_Idle);
void SetDrawFlag(G4String val)
void SetPrintModulo(G4int val)
~ActarSimEventActionMessenger()
Destructor.
G4UIcmdWithAnInteger * PrintCmd
Print events modulo n.
G4UIdirectory * eventDir
Directory for the commands.
ActarSimEventActionMessenger(ActarSimEventAction *)
void SetNewValue(G4UIcommand *, G4String)
Setting the values using the ActarSimEventAction interface.
G4UIcmdWithAString * DrawCmd
Draw the tracks in the event.
ActarSimEventAction * eventAction
Pointer to event action class.