50 fSetPhotonDetGeometryCmd =
52 fSetPhotonDetGeometryCmd->
53 SetGuidance(
"Select the geometry of the PhotonDet detector");
54 fSetPhotonDetGeometryCmd->
SetGuidance(
"Only Accepts 'Circle' and 'Square'");
59 fSetNumOfCladLayersCmd =
61 fSetNumOfCladLayersCmd->
SetGuidance(
"Select the number of cladding layers");
62 fSetNumOfCladLayersCmd->
SetGuidance(
"Maximum number is 2");
64 fSetNumOfCladLayersCmd->
SetRange(
"numberOfLayers>=0 && numberOfLayers<=2");
68 fSetSurfaceRoughnessCmd =
70 fSetSurfaceRoughnessCmd->
71 SetGuidance(
"Set the roughness between Clad1 and WLS Fiber");
73 fSetSurfaceRoughnessCmd->
SetRange(
"roughness>0 && roughness<=1");
78 fSetXYRatioCmd->
SetGuidance(
"Set the ratio between x and y axis (x/y)");
80 fSetXYRatioCmd->
SetRange(
"ratio>0 && ratio<=1");
85 fSetMirrorPolishCmd->
SetGuidance(
"Set the polish of the mirror");
87 fSetMirrorPolishCmd->
SetRange(
"polish>0 && polish<=1");
91 fSetMirrorReflectivityCmd =
93 fSetMirrorReflectivityCmd->
SetGuidance(
"Set the reflectivity of the mirror");
95 fSetMirrorReflectivityCmd->
SetRange(
"reflectivity>=0 && reflectivity<=1");
99 fSetPhotonDetPolishCmd =
101 fSetPhotonDetPolishCmd->
SetGuidance(
"Set the polish of the mirror");
103 fSetPhotonDetPolishCmd->
SetRange(
"polish>0 && polish<=1");
107 fSetPhotonDetReflectivityCmd =
109 fSetPhotonDetReflectivityCmd->
110 SetGuidance(
"Set the reflectivity of the mirror");
112 fSetPhotonDetReflectivityCmd->
SetRange(
"reflectivity>=0 && reflectivity<=1");
117 fSetWLSLengthCmd->
SetGuidance(
"Set the half length of the WLS fiber");
119 fSetWLSLengthCmd->
SetRange(
"length>0.");
126 fSetWLSRadiusCmd->
SetGuidance(
"Set the radius of the WLS fiber");
128 fSetWLSRadiusCmd->
SetRange(
"radius>0.");
136 fSetClad1RadiusCmd->
SetGuidance(
"Set the radius of Cladding 1");
138 fSetClad1RadiusCmd->
SetRange(
"radius>0.");
146 fSetClad2RadiusCmd->
SetGuidance(
"Set the radius of Cladding 2");
148 fSetClad2RadiusCmd->
SetRange(
"radius>0.");
154 fSetPhotonDetHalfLengthCmd =
156 fSetPhotonDetHalfLengthCmd->
157 SetGuidance(
"Set the half length of PhotonDet detector");
159 fSetPhotonDetHalfLengthCmd->
SetRange(
"halfL>0.");
166 fSetGapCmd->
SetGuidance(
"Set the distance between PhotonDet and fiber end");
174 fSetPhotonDetAlignmentCmd =
176 fSetPhotonDetAlignmentCmd->
177 SetGuidance(
"Set the deviation of PhotonDet from z axis");
181 fSetPhotonDetAlignmentCmd->
SetRange(
"theta>-90. && theta<90.");
186 fSetMirrorCmd->
SetGuidance(
"Place a mirror at the end of the fiber");
191 fSetBarLengthCmd->
SetGuidance(
"Set the length of the scintillator bar");
193 fSetBarLengthCmd->
SetRange(
"length>0.");
200 fSetBarBaseCmd->
SetGuidance(
"Set the side length of the scintillator bar");
202 fSetBarBaseCmd->
SetRange(
"length>0.");
209 fSetHoleRadiusCmd->
SetGuidance(
"Set the radius of the fiber hole");
211 fSetHoleRadiusCmd->
SetRange(
"radius>0.");
217 fSetCoatingThicknessCmd =
219 fSetCoatingThicknessCmd->
220 SetGuidance(
"Set thickness of the coating on the bars");
224 fSetCoatingThicknessCmd->
SetRange(
"thick>=0.");
228 fSetCoatingRadiusCmd =
230 fSetCoatingRadiusCmd->
231 SetGuidance(
"Set inner radius of the corner bar coating");
235 fSetCoatingRadiusCmd->
SetRange(
"cradius>=0.");
246 delete fSetPhotonDetGeometryCmd;
247 delete fSetNumOfCladLayersCmd;
248 delete fSetWLSLengthCmd;
249 delete fSetWLSRadiusCmd;
250 delete fSetClad1RadiusCmd;
251 delete fSetClad2RadiusCmd;
252 delete fSetPhotonDetHalfLengthCmd;
254 delete fSetPhotonDetAlignmentCmd;
255 delete fSetSurfaceRoughnessCmd;
256 delete fSetMirrorPolishCmd;
257 delete fSetMirrorReflectivityCmd;
258 delete fSetXYRatioCmd;
259 delete fSetMirrorCmd;
260 delete fSetBarLengthCmd;
261 delete fSetBarBaseCmd;
262 delete fSetHoleRadiusCmd;
263 delete fSetCoatingThicknessCmd;
264 delete fSetCoatingRadiusCmd;
271 if( command == fSetPhotonDetGeometryCmd ) {
275 else if( command == fSetNumOfCladLayersCmd ) {
279 else if( command == fSetSurfaceRoughnessCmd ) {
283 else if( command == fSetXYRatioCmd ) {
287 else if( command == fSetMirrorPolishCmd ) {
291 else if( command == fSetMirrorReflectivityCmd ) {
296 else if( command == fSetPhotonDetPolishCmd ) {
300 else if( command == fSetPhotonDetReflectivityCmd ) {
305 else if( command == fSetWLSLengthCmd ) {
309 else if( command == fSetWLSRadiusCmd ) {
313 else if( command == fSetClad1RadiusCmd ) {
318 else if( command == fSetClad2RadiusCmd ) {
323 else if( command == fSetPhotonDetHalfLengthCmd ) {
328 else if( command == fSetGapCmd ) {
332 else if( command == fSetPhotonDetAlignmentCmd ) {
337 else if( command == fSetMirrorCmd ) {
341 else if( command == fSetBarLengthCmd ) {
345 else if( command == fSetBarBaseCmd ) {
349 else if( command == fSetHoleRadiusCmd ) {
353 else if( command == fSetCoatingThicknessCmd ) {
357 else if( command == fSetCoatingRadiusCmd ) {
void SetPhotonDetPolish(G4double)
void SetNumberOfCladding(G4int)
void SetBarLength(G4double)
virtual void SetNewValue(G4UIcommand *, G4String)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetXYRatio(G4double)
WLSDetectorMessenger(WLSDetectorConstruction *)
void SetToBeBroadcasted(G4bool val)
void SetWLSLength(G4double)
void SetMirrorPolish(G4double)
void SetUnitCategory(const char *unitCategory)
static G4double GetNewDoubleValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
virtual ~WLSDetectorMessenger()
void SetCoatingRadius(G4double)
void SetCoatingThickness(G4double)
static G4double GetNewDoubleValue(const char *paramString)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void SetBarBase(G4double)
void AvailableForStates(G4ApplicationState s1)
void SetHoleRadius(G4double)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultUnit(const char *defUnit)
void SetPhotonDetGeometry(G4String)
void SetCandidates(const char *candidateList)
void SetWLSRadius(G4double)
Definition of the WLSDetectorMessenger class.
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetSurfaceRoughness(G4double)