13#include "G4UIdirectory.hh"
14#include "G4UIcommand.hh"
15#include "G4UIcmdWithAnInteger.hh"
16#include "G4UIcmdWithAString.hh"
20:m_runAction(runAction)
22 m_runActionDirectory =
new G4UIdirectory(
"/runAction/");
23 m_runActionDirectory->SetGuidance(
"BESIII run action");
26 m_MCTruthCmd =
new G4UIcmdWithAnInteger(
"/runAction/MCTruth",
this);
27 m_MCTruthCmd->SetGuidance(
"whether to save MC Truth information.");
28 m_MCTruthCmd->SetParameterName(
"MCTruthFlag",
true);
29 m_MCTruthCmd->SetRange(
"MCTruthFlag>=0");
30 m_MCTruthCmd->SetDefaultValue(0);
113 delete m_runActionDirectory;
120 if( command == m_MCTruthCmd)
121 m_runAction->
SetMCTruthFlag(m_MCTruthCmd->GetNewIntValue(newValue));
BesRunActionMessenger(BesRunAction *runAction)
void SetNewValue(G4UIcommand *command, G4String newValues)
void SetMCTruthFlag(G4int flag)