34 #include "DetectorMessenger.hh"
36 #include "DetectorConstruction.hh"
64 fDetDir->
SetGuidance(
"detector construction commands");
67 fMaterCmd->
SetGuidance(
"Select material of the box.");
72 fSizeXCmd->
SetGuidance(
"Set sizeX of the absorber");
79 fSizeYZCmd->
SetGuidance(
"Set sizeYZ of the absorber");
86 fMagFieldCmd->
SetGuidance(
"Define magnetic field.");
87 fMagFieldCmd->
SetGuidance(
"Magnetic field will be in Z direction.");
98 fTalDefCmd =
new G4UIcommand(
"/testem/det/tallyDefinition",
this);
99 fTalDefCmd->
SetGuidance(
"Set tally nb, material, box dimensions.");
100 fTalDefCmd->
SetGuidance(
" tally number : from 1 to tallyNumber");
102 fTalDefCmd->
SetGuidance(
" dimensions (3-vector with unit)");
105 fTalNbPrm->
SetGuidance(
"tally number : from 1 to tallyNumber");
136 fTalPosiCmd =
new G4UIcommand(
"/testem/det/tallyPosition",
this);
137 fTalPosiCmd->
SetGuidance(
"Set tally nb, position");
138 fTalPosiCmd->
SetGuidance(
" tally number : from 1 to tallyNumber");
139 fTalPosiCmd->
SetGuidance(
" position (3-vector with unit)");
142 fTalNumPrm->
SetGuidance(
"tally number : from 1 to tallyNumber");
166 fUpdateCmd->
SetGuidance(
"Update calorimeter geometry.");
167 fUpdateCmd->
SetGuidance(
"This command MUST be applied before \"beamOn\" ");
168 fUpdateCmd->
SetGuidance(
"if you changed geometrical value(s).");
192 if( command == fMaterCmd )
195 if( command == fSizeXCmd )
198 if( command == fSizeYZCmd )
201 if( command == fMagFieldCmd )
204 if( command == fTalNbCmd )
207 if (command == fTalDefCmd)
211 std::istringstream is(newValue);
212 is >> num >> mat >> v1 >> v2 >> v3 >> unt;
221 if (command == fTalPosiCmd)
225 std::istringstream is(newValue);
226 is >> num >> v1 >> v2 >> v3 >> unt;
233 if( command == fUpdateCmd )
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameter(G4UIparameter *const newParameter)
void SetTallyMaterial(G4int, G4String)
void SetNewValue(G4UIcommand *, G4String)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
CLHEP::Hep3Vector G4ThreeVector
static G4int GetNewIntValue(const char *paramString)
void SetParameterRange(const char *theRange)
void SetParameterCandidates(const char *theString)
void SetUnitCategory(const char *unitCategory)
static G4double GetNewDoubleValue(const char *paramString)
static G4String UnitsList(const char *unitCategory)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetMagField(G4double)
static G4double ValueOf(const char *unitName)
void SetTallySize(G4int, G4ThreeVector)
DetectorMessenger(DetectorConstruction *)
void SetTallyPosition(G4int, G4ThreeVector)
void SetGuidance(const char *theGuidance)
void SetTallyNumber(G4int)
static G4String CategoryOf(const char *unitName)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetMaterial(G4String)