34 #include "DetectorMessenger.hh"
36 #include "DetectorConstruction.hh"
45 :fDetector(Det), fTestemDir(0), fDetDir(0), fWallMater(0), fWallThick(0),
46 fCavMater(0), fCavThick(0), fCavRadius(0), fUpdateCmd(0)
52 fDetDir->
SetGuidance(
"detector construction commands");
55 fWallMater->
SetGuidance(
"Set material of the wall.");
59 fWallThick->
SetGuidance(
"Set tickness of the wall");
65 fCavMater->
SetGuidance(
"Set material of the cavity.");
69 fCavThick->
SetGuidance(
"Set tickness of the cavity");
71 fCavThick->
SetRange(
"cavityTick>0.");
75 fCavRadius->
SetGuidance(
"Set radius of the cavity");
77 fCavRadius->
SetRange(
"cavityRadius>0.");
82 fUpdateCmd->
SetGuidance(
"This command MUST be applied before \"beamOn\" ");
83 fUpdateCmd->
SetGuidance(
"if you changed geometrical value(s).");
107 if( command == fWallMater )
110 if( command == fWallThick )
113 if( command == fCavMater )
116 if( command == fCavThick )
119 if( command == fCavRadius )
122 if( command == fUpdateCmd )
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetNewValue(G4UIcommand *, G4String)
void SetUnitCategory(const char *unitCategory)
static G4double GetNewDoubleValue(const char *paramString)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetWallMaterial(G4String)
void SetCavityMaterial(G4String)
void SetCavityRadius(G4double)
void SetCavityThickness(G4double)
void SetWallThickness(G4double)
DetectorMessenger(DetectorConstruction *)
Detector construction class to define materials and geometry.
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)