34 #include "DetectorMessenger.hh"
38 #include "DetectorConstruction.hh"
58 fTestemDir->
SetGuidance(
"UI commands specific to this example");
61 fDetDir->
SetGuidance(
"detector construction commands");
64 fSizeYZCmd->
SetGuidance(
"Set tranverse size of the calorimeter");
74 fNbLayersCmd->
SetRange(
"NbLayers>0");
79 fNbAbsorCmd->
SetGuidance(
"Set number of Absorbers.");
85 fAbsorCmd =
new G4UIcommand(
"/testem/det/setAbsor",
this);
86 fAbsorCmd->
SetGuidance(
"Set the absor nb, the material, the thickness.");
87 fAbsorCmd->
SetGuidance(
" absor number : from 1 to NbOfAbsor");
89 fAbsorCmd->
SetGuidance(
" thickness (with unit) : t>0.");
92 AbsNbPrm->
SetGuidance(
"absor number : from 1 to NbOfAbsor");
131 if( command == fSizeYZCmd )
134 if( command == fNbLayersCmd )
137 if( command == fNbAbsorCmd )
140 if (command == fAbsorCmd)
144 std::istringstream is(newValue);
145 is >> num >> mat >> tick >> unt;
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 SetToBeBroadcasted(G4bool val)
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)
static G4double ValueOf(const char *unitName)
DetectorMessenger(DetectorConstruction *)
Detector construction class to define materials and geometry.
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)