34 #include "DetectorMessenger.hh"
36 #include "DetectorConstruction.hh"
48 fDetector(Det), fTestemDir(0), fDetDir(0), fMaterCmd(0), fSizeCmd(0),
52 fTestemDir->
SetGuidance(
"commands specific to this example");
56 fDetDir->
SetGuidance(
"detector construction commands");
59 fMaterCmd->
SetGuidance(
"Select material of the box.");
70 fIsotopeCmd =
new G4UIcommand(
"/testhadr/det/setIsotopeMat",
this);
71 fIsotopeCmd->
SetGuidance(
"Build and select a material with single isotope");
72 fIsotopeCmd->
SetGuidance(
" symbol of isotope, Z, A, density of material");
117 if( command == fMaterCmd )
120 if( command == fSizeCmd )
123 if (command == fIsotopeCmd)
127 std::istringstream is(newValue);
128 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 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)
G4Material * MaterialWithSingleIsotope(G4String, G4String, G4double, G4int, G4int)
static G4double ValueOf(const char *unitName)
DetectorMessenger(DetectorConstruction *)
void SetGuidance(const char *theGuidance)
static G4String CategoryOf(const char *unitName)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetMaterial(G4String)