34 #include "DetectorMessenger.hh"
38 #include "DetectorConstruction.hh"
60 fTestemDir->
SetGuidance(
"UI commands specific to this example");
63 fDetDir->
SetGuidance(
"detector construction commands");
66 fSizeYZCmd->
SetGuidance(
"Set tranverse size of the calorimeter");
75 fNbLayersCmd->
SetRange(
"NbLayers>0");
79 fNbAbsorCmd->
SetGuidance(
"Set number of Absorbers.");
84 fAbsorCmd =
new G4UIcommand(
"/testem/det/setAbsor",
this);
85 fAbsorCmd->
SetGuidance(
"Set the absor nb, the material, the thickness.");
86 fAbsorCmd->
SetGuidance(
" absor number : from 1 to NbOfAbsor");
88 fAbsorCmd->
SetGuidance(
" thickness (with unit) : t>0.");
91 AbsNbPrm->
SetGuidance(
"absor number : from 1 to NbOfAbsor");
113 fMagFieldCmd->
SetGuidance(
"Define magnetic field.");
114 fMagFieldCmd->
SetGuidance(
"Magnetic field will be in Z direction.");
120 fUpdateCmd->
SetGuidance(
"Update calorimeter geometry.");
121 fUpdateCmd->
SetGuidance(
"This command MUST be applied before \"beamOn\" ");
122 fUpdateCmd->
SetGuidance(
"if you changed geometrical value(s).");
144 if( command == fSizeYZCmd )
147 if( command == fNbLayersCmd )
150 if( command == fNbAbsorCmd )
153 if (command == fAbsorCmd)
157 std::istringstream is(newValue);
158 is >> num >> mat >> tick >> unt;
165 if( command == fMagFieldCmd )
168 if( command == fUpdateCmd )
void SetParameter(G4UIparameter *const newParameter)
void SetNewValue(G4UIcommand *, G4String)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
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)
void SetNbOfLayers(G4int)
static G4String UnitsList(const char *unitCategory)
void SetAbsorMaterial(G4int, const G4String &)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetCalorSizeYZ(G4double)
void SetMagField(G4double)
static G4double ValueOf(const char *unitName)
DetectorMessenger(DetectorConstruction *)
void SetAbsorThickness(G4int, G4double)
void SetGuidance(const char *theGuidance)
static G4String CategoryOf(const char *unitName)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)