34 #include "DetectorMessenger.hh"
36 #include "DetectorConstruction.hh"
48 fDetector(Det), fTestemDir(0), fDetDir(0), fMaterCmd(0), fSizeCmd(0),
49 fMagFieldCmd(0), fIsotopeCmd(0)
52 fTestemDir->
SetGuidance(
"commands specific to this example");
55 fDetDir->
SetGuidance(
"detector construction commands");
58 fMaterCmd->
SetGuidance(
"Select material of the box.");
72 fMagFieldCmd->
SetGuidance(
"Define magnetic field.");
73 fMagFieldCmd->
SetGuidance(
"Magnetic field will be in Z direction.");
79 fIsotopeCmd =
new G4UIcommand(
"/testhadr/det/setIsotopeMat",
this);
80 fIsotopeCmd->
SetGuidance(
"Build and select a material with single isotope");
81 fIsotopeCmd->
SetGuidance(
" symbol of isotope, Z, A, density of material");
128 if( command == fMaterCmd )
131 if( command == fSizeCmd )
134 if( command == fMagFieldCmd )
137 if (command == fIsotopeCmd)
141 std::istringstream is(newValue);
142 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)
static G4String UnitsList(const char *unitCategory)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetMagField(G4double)
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)