34 #include "DetectorMessenger.hh"
36 #include "DetectorConstruction.hh"
48 fDetector(Det), fTesthadDir(0), fDetDir(0), fMaterCmd(0), fSizeCmd(0),
52 fTesthadDir->
SetGuidance(
"commands specific to this example");
55 fDetDir->
SetGuidance(
"detector construction commands");
58 fMaterCmd->
SetGuidance(
"Select material of the box.");
71 fIsotopeCmd =
new G4UIcommand(
"/testhadr/det/setIsotopeMat",
this);
72 fIsotopeCmd->
SetGuidance(
"Build and select a material with single isotope");
73 fIsotopeCmd->
SetGuidance(
" symbol of isotope, Z, A, density of material");
119 if( command == fMaterCmd )
122 if( command == fSizeCmd )
125 if (command == fIsotopeCmd)
129 std::istringstream is(newValue);
130 is >> name >> Z >> A >> dens >> unt;
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameter(G4UIparameter *const newParameter)
void SetNewValue(G4UIcommand *, G4String)
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 SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
G4Material * MaterialWithSingleIsotope(G4String, G4String, G4double, G4int, G4int)
static G4double ValueOf(const char *unitName)
DetectorMessenger(DetectorConstruction *)
Detector construction class to define materials and geometry.
void SetGuidance(const char *theGuidance)
static G4String CategoryOf(const char *unitName)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetMaterial(G4String)