34 #include "DetectorMessenger.hh"
36 #include "DetectorConstruction.hh"
45 fDetector(Det), fRdecayDir(0), fDetDir(0),
46 fTargMatCmd(0), fDetectMatCmd(0), fTargRadiusCmd(0),
47 fDetectThicknessCmd(0), fTargLengthCmd(0), fDetectLengthCmd(0)
50 fRdecayDir->
SetGuidance(
"commands specific to this example");
54 fDetDir->
SetGuidance(
"detector construction commands");
57 fTargMatCmd->
SetGuidance(
"Select material of the target");
63 fTargRadiusCmd->
SetGuidance(
"Set the Target Radius.");
71 fTargLengthCmd->
SetGuidance(
"Set the Target Length.");
78 fDetectMatCmd->
SetGuidance(
"Select Material of the Detector.");
84 fDetectThicknessCmd->
SetGuidance(
"Set the Detector Thickness.");
91 fDetectLengthCmd->
SetGuidance(
"Set the Detector Length.");
102 delete fDetectMatCmd;
103 delete fTargRadiusCmd;
104 delete fDetectThicknessCmd;
105 delete fTargLengthCmd;
106 delete fDetectLengthCmd;
115 if (command == fTargMatCmd )
118 if (command == fTargLengthCmd )
121 if (command == fTargRadiusCmd )
124 if (command == fDetectMatCmd )
127 if (command == fDetectLengthCmd )
131 if (command == fDetectThicknessCmd )
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDetectorMaterial(G4String)
void SetTargetLength(G4double val)
void SetDetectorThickness(G4double value)
void SetNewValue(G4UIcommand *, G4String)
void SetUnitCategory(const char *unitCategory)
static G4double GetNewDoubleValue(const char *paramString)
void SetGuidance(const char *aGuidance)
void SetDetectorLength(G4double value)
void AvailableForStates(G4ApplicationState s1)
void SetTargetMaterial(const G4String &)
void SetTargetRadius(G4double val)
DetectorMessenger(DetectorConstruction *)
Detector construction class to define materials and geometry.
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)