34 #include "DetectorMessenger.hh"
36 #include "DetectorConstruction.hh"
54 fDetDir->
SetGuidance(
"detector construction commands");
57 fMaterCmd->
SetGuidance(
"Select material of the box.");
62 fSizeXCmd->
SetGuidance(
"Set sizeX of the absorber");
69 fSizeYZCmd->
SetGuidance(
"Set sizeYZ of the absorber");
76 fMagFieldCmd->
SetGuidance(
"Define magnetic field.");
77 fMagFieldCmd->
SetGuidance(
"Magnetic field will be in Z direction.");
88 fTalDefCmd =
new G4UIcommand(
"/testem/det/tallyDefinition",
this);
89 fTalDefCmd->
SetGuidance(
"Set tally nb, material, box dimensions.");
90 fTalDefCmd->
SetGuidance(
" tally number : from 1 to tallyNumber");
92 fTalDefCmd->
SetGuidance(
" dimensions (3-vector with unit)");
95 fTalNbPrm->
SetGuidance(
"tally number : from 1 to tallyNumber");
126 fTalPosiCmd =
new G4UIcommand(
"/testem/det/tallyPosition",
this);
127 fTalPosiCmd->
SetGuidance(
"Set tally nb, position");
128 fTalPosiCmd->
SetGuidance(
" tally number : from 1 to tallyNumber");
129 fTalPosiCmd->
SetGuidance(
" position (3-vector with unit)");
132 fTalNumPrm->
SetGuidance(
"tally number : from 1 to tallyNumber");
156 fUpdateCmd->
SetGuidance(
"Update calorimeter geometry.");
157 fUpdateCmd->
SetGuidance(
"This command MUST be applied before \"beamOn\" ");
158 fUpdateCmd->
SetGuidance(
"if you changed geometrical value(s).");
182 if( command == fMaterCmd )
185 if( command == fSizeXCmd )
188 if( command == fSizeYZCmd )
191 if( command == fMagFieldCmd )
194 if( command == fTalNbCmd )
197 if (command == fTalDefCmd)
201 std::istringstream is(newValue);
202 is >> num >> mat >> v1 >> v2 >> v3 >> unt;
211 if (command == fTalPosiCmd)
215 std::istringstream is(newValue);
216 is >> num >> v1 >> v2 >> v3 >> unt;
223 if( command == fUpdateCmd )