34 #include "DetectorMessenger.hh"
38 #include "DetectorConstruction.hh"
55 fDetDir->
SetGuidance(
"detector construction commands");
58 fNbAbsorCmd->
SetGuidance(
"Set number of Absorbers.");
63 fAbsorCmd =
new G4UIcommand(
"/testem/det/setAbsor",
this);
64 fAbsorCmd->
SetGuidance(
"Set the absor nb, the material, the thickness.");
65 fAbsorCmd->
SetGuidance(
" absor number : from 1 to NbOfAbsor");
67 fAbsorCmd->
SetGuidance(
" thickness (with unit) : t>0.");
70 AbsNbPrm->
SetGuidance(
"absor number : from 1 to NbOfAbsor");
91 fNdivCmd =
new G4UIcommand(
"/testem/det/nDivAbsor",
this);
92 fNdivCmd->
SetGuidance(
"Divide the absor nb : number of divisions");
93 fNdivCmd->
SetGuidance(
" absor number : from 1 to NbOfAbsor");
97 AbsNbPar->
SetGuidance(
"absor number : from 1 to NbOfAbsor");
109 fSizeYZCmd->
SetGuidance(
"Set sizeYZ of the absorber");
116 fMagFieldCmd->
SetGuidance(
"Define magnetic field.");
117 fMagFieldCmd->
SetGuidance(
"Magnetic field will be in Z direction.");
123 fUpdateCmd->
SetGuidance(
"Update calorimeter geometry.");
124 fUpdateCmd->
SetGuidance(
"This command MUST be applied before \"beamOn\" ");
125 fUpdateCmd->
SetGuidance(
"if you changed geometrical value(s).");
147 if( command == fNbAbsorCmd )
150 if (command == fAbsorCmd)
154 std::istringstream is(newValue);
155 is >> num >> mat >> tick >> unt;
162 if (command == fNdivCmd)
165 std::istringstream is(newValue);
170 if( command == fSizeYZCmd )
173 if( command == fMagFieldCmd )
176 if( command == fUpdateCmd )