#include "SolidEventMessenger.hh" #include "SolidEventAction.hh" #include "G4UIdirectory.hh" //#include "G4UIcmdWithAString.hh" //#include "G4UIcmdWithADouble.hh" //#include "G4UIcmdWithAnInteger.hh" //#include "G4UIcmdWithoutParameter.hh" //#include "G4UIcmdWithABool.hh" //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... SolidEventMessenger::SolidEventMessenger(SolidEventAction * SolidEA) :SolidEvAct(SolidEA) { VerboseCmd = new G4UIcmdWithABool("/Solid/verbose",this); VerboseCmd->SetGuidance("Set verbose output"); VerboseCmd->SetGuidance("Default = false"); VerboseCmd->SetParameterName("verbose", false); VerboseCmd->AvailableForStates(G4State_Idle); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... SolidEventMessenger::~SolidEventMessenger() { delete VerboseCmd; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... void SolidEventMessenger::SetNewValue(G4UIcommand* command,G4String newValue) { if(command == VerboseCmd) SolidEvAct->SetVerbose(VerboseCmd->GetNewBoolValue(newValue)); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....