9 #include <Geant4/G4ApplicationState.hh>
10 #include <Geant4/G4String.hh>
11 #include <Geant4/G4UIcmdWithADoubleAndUnit.hh>
12 #include <Geant4/G4UIcmdWithAString.hh>
13 #include <Geant4/G4UIcmdWithoutParameter.hh>
14 #include <Geant4/G4UIdirectory.hh>
19 : fPHG4HcalPrototypeDetector(Det)
21 sPhnxDir =
new G4UIdirectory(
"/sPhnx/");
22 sPhnxDir->SetGuidance(
"UI commands for modifying the prototype detector properties.");
24 detDir =
new G4UIdirectory(
"/sPhnx/det/");
25 detDir->SetGuidance(
"UI commands for changing the detector geometry.");
27 fMaterCmd =
new G4UIcmdWithAString(
"/sPhnx/det/setMat",
this);
28 fMaterCmd->SetGuidance(
"Select material of the world.");
29 fMaterCmd->SetParameterName(
"choice",
false);
30 fMaterCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
32 fUpdateCmd =
new G4UIcmdWithoutParameter(
"/sPhnx/det/update",
this);
34 fUpdateCmd->SetGuidance(
"This command MUST be applied before \"beamOn\" ");
35 fUpdateCmd->SetGuidance(
"if you changed geometrical value(s).");
38 outerHcalDPhiCmd =
new G4UIcmdWithADoubleAndUnit(
"/sPhnx/det/setOuterHcalAngularSpan",
this);
39 outerHcalDPhiCmd->SetGuidance(
"Change the outer hcal angular span (default: 0.28 rad).");
40 outerHcalDPhiCmd->SetGuidance(
"Need to run the detector update command after running this command!");
47 outerPlateTiltAngleCmd->SetGuidance(
"Need to run the detector update command after running this command!");
52 innerHcalDPhiCmd =
new G4UIcmdWithADoubleAndUnit(
"/sPhnx/det/setInnerHcalAngularSpan",
this);
53 innerHcalDPhiCmd->SetGuidance(
"Change the inner hcal angular span (default: 0.28 rad).");
54 innerHcalDPhiCmd->SetGuidance(
"Need to run the detector update command after running this command!");
61 innerPlateTiltAngleCmd->SetGuidance(
"Need to run the detector update command after running this command!");