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(
"/testem/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");
99 fNdivCmd =
new G4UIcommand(
"/testem/det/nDivAbsor",
this);
100 fNdivCmd->
SetGuidance(
"Divide the absor nb : number of divisions");
101 fNdivCmd->
SetGuidance(
" absor number : from 1 to NbOfAbsor");
102 fNdivCmd->
SetGuidance(
" number of divisions >= 0");
105 AbsNbPar->
SetGuidance(
"absor number : from 1 to NbOfAbsor");
118 fSizeYZCmd->
SetGuidance(
"Set sizeYZ of the absorber");
143 if( command == fNbAbsorCmd )
146 if (command == fAbsorCmd)
150 std::istringstream is(newValue);
151 is >> num >> mat >> tick >> unt;
158 if (command == fNdivCmd)
161 std::istringstream is(newValue);
166 if( command == fSizeYZCmd )
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)
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)
void SetNbOfDivisions(G4int, G4int)
static G4double ValueOf(const char *unitName)
DetectorMessenger(DetectorConstruction *)
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)