34 #include "DetectorMessenger.hh"
38 #include "DetectorConstruction.hh"
52 fTestemDir->
SetGuidance(
"UI commands specific to this example");
55 fDetDir->
SetGuidance(
"detector construction commands");
58 fSizeYZCmd->
SetGuidance(
"Set tranverse size of the calorimeter");
67 fNbLayersCmd->
SetRange(
"NbLayers>0");
71 fNbAbsorCmd->
SetGuidance(
"Set number of Absorbers.");
76 fAbsorCmd =
new G4UIcommand(
"/testem/det/setAbsor",
this);
77 fAbsorCmd->
SetGuidance(
"Set the absor nb, the material, the thickness.");
78 fAbsorCmd->
SetGuidance(
" absor number : from 1 to NbOfAbsor");
80 fAbsorCmd->
SetGuidance(
" thickness (with unit) : t>0.");
83 AbsNbPrm->
SetGuidance(
"absor number : from 1 to NbOfAbsor");
105 fMagFieldCmd->
SetGuidance(
"Define magnetic field.");
106 fMagFieldCmd->
SetGuidance(
"Magnetic field will be in Z direction.");
112 fUpdateCmd->
SetGuidance(
"Update calorimeter geometry.");
113 fUpdateCmd->
SetGuidance(
"This command MUST be applied before \"beamOn\" ");
114 fUpdateCmd->
SetGuidance(
"if you changed geometrical value(s).");
136 if( command == fSizeYZCmd )
139 if( command == fNbLayersCmd )
142 if( command == fNbAbsorCmd )
145 if (command == fAbsorCmd)
149 std::istringstream is(newValue);
150 is >> num >> mat >> tick >> unt;
157 if( command == fMagFieldCmd )
160 if( command == fUpdateCmd )