34 #include "DetectorMessenger.hh"
38 #include "DetectorConstruction.hh"
61 fDetDir->
SetGuidance(
"detector construction commands");
64 fNbAbsorCmd->
SetGuidance(
"Set number of Absorbers.");
70 fAbsorCmd =
new G4UIcommand(
"/testhadr/det/setAbsor",
this);
71 fAbsorCmd->
SetGuidance(
"Set the absor nb, the material, the thickness.");
72 fAbsorCmd->
SetGuidance(
" absor number : from 1 to NbOfAbsor");
74 fAbsorCmd->
SetGuidance(
" thickness (with unit) : t>0.");
77 AbsNbPrm->
SetGuidance(
"absor number : from 1 to NbOfAbsor");
100 fSizeYZCmd->
SetGuidance(
"Set sizeYZ of the absorber");
107 fIsotopeCmd =
new G4UIcommand(
"/testhadr/det/setIsotopeMat",
this);
108 fIsotopeCmd->
SetGuidance(
"Build and select a material with single isotope");
109 fIsotopeCmd->
SetGuidance(
" symbol of isotope, Z, A, density of material");
155 if( command == fNbAbsorCmd )
158 if (command == fAbsorCmd)
162 std::istringstream is(newValue);
163 is >> num >> mat >> tick >> unt;
170 if( command == fSizeYZCmd )
173 if (command == fIsotopeCmd)
177 std::istringstream is(newValue);
178 is >> name >> Z >> A >> dens >> 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)
double A(double temperature)
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 SetAbsorSizeYZ(G4double)
G4Material * MaterialWithSingleIsotope(G4String, G4String, G4double, G4int, G4int)
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)