34 #include "HGCal/TBStandaloneSimulator/interface/EventActionMessenger.hh"
35 #include "HGCal/TBStandaloneSimulator/interface/EventAction.hh"
37 #include "G4UIdirectory.hh"
38 #include "G4UIcmdWithAnInteger.hh"
43 EventActionMessenger::EventActionMessenger(EventAction* EvAct)
46 eventDir =
new G4UIdirectory(
"/N03/event/");
47 eventDir->SetGuidance(
"event control");
49 PrintCmd =
new G4UIcmdWithAnInteger(
"/N03/event/printModulo",
this);
50 PrintCmd->SetGuidance(
"Print events modulo n");
51 PrintCmd->SetParameterName(
"EventNb",
false);
52 PrintCmd->SetRange(
"EventNb>0");
57 EventActionMessenger::~EventActionMessenger()
65 void EventActionMessenger::SetNewValue(
66 G4UIcommand* command, G4String newValue)
68 if(command == PrintCmd) {
69 eventAction->SetPrintModulo(PrintCmd->GetNewIntValue(newValue));