32 #include "ExN04StackingActionMessenger.hh"
33 #include "ExN04StackingAction.hh"
44 muonCmd->SetGuidance(
"Number of muon for the trigger.");
45 muonCmd->SetParameterName(
"N",
true);
46 muonCmd->SetDefaultValue(2);
47 muonCmd->SetRange(
"N>=0");
50 isomuonCmd->SetGuidance(
"Number of isolated muon for the trigger.");
51 isomuonCmd->SetParameterName(
"N",
true);
52 isomuonCmd->SetDefaultValue(2);
53 isomuonCmd->SetRange(
"N>=0");
56 isoCmd->SetGuidance(
"Maximum allowed number of hits in tracker");
57 isoCmd->SetGuidance(
" for an isolated muon track (includes hits by muon)");
58 isoCmd->SetParameterName(
"N",
true);
59 isoCmd->SetDefaultValue(10);
60 isoCmd->SetRange(
"N>=0");
63 roiCmd->SetGuidance(
"Define RoI angle");
64 roiCmd->SetParameterName(
"theta",
true,
true);
65 roiCmd->SetDefaultUnit(
"deg");
81 if( command==muonCmd )
82 { myAction->SetNRequestMuon(muonCmd->GetNewIntValue(newValue)); }
83 else if( command==isomuonCmd )
84 { myAction->SetNRequestIsoMuon(isomuonCmd->GetNewIntValue(newValue)); }
85 else if( command==isoCmd )
86 { myAction->SetNIsolation(isoCmd->GetNewIntValue(newValue)); }
87 else if( command==roiCmd )
88 { myAction->SetRoIAngle(roiCmd->GetNewDoubleValue(newValue)); }
100 else if( command==
isoCmd )
102 else if( command==
roiCmd )
G4int GetNRequestMuon() const
G4double GetRoIAngle() const
void SetNewValue(G4UIcommand *command, G4String newValues)
G4int GetNIsolation() const
ExN04StackingAction * myAction
G4UIcmdWithAnInteger * isoCmd
~ExN04StackingActionMessenger()
static G4String ConvertToString(G4bool boolVal)
ExN04StackingActionMessenger(ExN04StackingAction *msa)
G4UIcmdWithAnInteger * isomuonCmd
G4String GetCurrentValue(G4UIcommand *command)
G4UIcmdWithAnInteger * muonCmd
G4int GetNRequestIsoMuon() const
G4UIcmdWithADoubleAndUnit * roiCmd