4 #include "G4UIdirectory.hh"
5 #include "G4UIcommand.hh"
6 #include "G4UIparameter.hh"
7 #include "G4UIcmdWithADouble.hh"
8 #include "G4UIcmdWithABool.hh"
12 WCSimDir =
new G4UIdirectory(
"/WCSim/tuning/");
13 WCSimDir->SetGuidance(
"Commands to change tuning parameters");
15 Rayff =
new G4UIcmdWithADouble(
"/WCSim/tuning/rayff",
this);
16 Rayff->SetGuidance(
"Set the Rayleigh scattering parameter");
17 Rayff->SetParameterName(
"Rayff",
true);
18 Rayff->SetDefaultValue(0.75);
20 Bsrff =
new G4UIcmdWithADouble(
"/WCSim/tuning/bsrff",
this);
21 Bsrff->SetGuidance(
"Set the Blacksheet reflection parameter");
22 Bsrff->SetParameterName(
"Bsrff",
true);
23 Bsrff->SetDefaultValue(2.50);
25 Abwff =
new G4UIcmdWithADouble(
"/WCSim/tuning/abwff",
this);
26 Abwff->SetGuidance(
"Set the water attenuation parameter");
27 Abwff->SetParameterName(
"Abwff",
true);
28 Abwff->SetDefaultValue(1.30);
30 Rgcff =
new G4UIcmdWithADouble(
"/WCSim/tuning/rgcff",
this);
31 Rgcff->SetGuidance(
"Set the cathode reflectivity parameter");
32 Rgcff->SetParameterName(
"Rgcff",
true);
33 Rgcff->SetDefaultValue(0.32);
35 Mieff =
new G4UIcmdWithADouble(
"/WCSim/tuning/mieff",
this);
36 Mieff->SetGuidance(
"Set the Mie scattering parameter");
37 Mieff->SetParameterName(
"Mieff",
true);
38 Mieff->SetDefaultValue(0.0);
41 TVSpacing =
new G4UIcmdWithADouble(
"/WCSim/tuning/tvspacing",
this);
42 TVSpacing->SetGuidance(
"Set the Top Veto PMT Spacing, in cm.");
43 TVSpacing->SetParameterName(
"TVSpacing",
true);
46 TopVeto =
new G4UIcmdWithABool(
"/WCSim/tuning/topveto",
this);
47 TopVeto->SetGuidance(
"Turn Top Veto simulation on/off");
48 TopVeto->SetParameterName(
"TopVeto",
true);
71 if(command ==
Rayff) {
77 printf(
"Setting Rayleigh scattering parameter %f\n",
Rayff->GetNewDoubleValue(newValue));
81 if(command ==
Bsrff) {
87 printf(
"Setting blacksheet reflection parameter %f\n",
Bsrff->GetNewDoubleValue(newValue));
91 if(command ==
Abwff) {
97 printf(
"Setting water attenuation parameter %f\n",
Abwff->GetNewDoubleValue(newValue));
101 if(command ==
Rgcff) {
107 printf(
"Setting cathode reflectivity parameter %f\n",
Rgcff->GetNewDoubleValue(newValue));
111 if(command ==
Mieff) {
117 printf(
"Setting Mie scattering parameter %f\n",
Mieff->GetNewDoubleValue(newValue));
126 printf(
"Setting Top Veto PMT Spacing %f\n",
TVSpacing->GetNewDoubleValue(newValue));
132 if(
TopVeto->GetNewBoolValue(newValue))
133 printf(
"Setting Top Veto On\n");
135 printf(
"Setting Top Veto Off\n");
WCSimTuningParameters * WCSimTuningParams
G4UIcmdWithADouble * Abwff
void SetRgcff(G4double rparam)
G4UIcmdWithADouble * TVSpacing
void SetTopVeto(G4double tparam)
void SetAbwff(G4double rparam)
G4UIcmdWithADouble * Mieff
void SetBsrff(G4double rparam)
WCSimTuningMessenger(WCSimTuningParameters *)
void SetMieff(G4double rparam)
G4UIcmdWithADouble * Bsrff
void SetRayff(G4double rparam)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4UIcmdWithABool * TopVeto
G4UIcmdWithADouble * Rayff
G4UIcmdWithADouble * Rgcff
void SetTVSpacing(G4double tparam)