50 UpdateCmd->
SetGuidance(
"This command MUST be applied before \"beamOn\" ");
51 UpdateCmd->
SetGuidance(
"if you changed geometrical value(s).");
54 SetPhotonDetGeometryCmd =
56 SetPhotonDetGeometryCmd->
57 SetGuidance(
"Select the geometry of the PhotonDet detector");
58 SetPhotonDetGeometryCmd->
SetGuidance(
"Only Accepts 'Circle' and 'Square'");
63 SetNumOfCladLayersCmd->
SetGuidance(
"Select the number of cladding layers");
64 SetNumOfCladLayersCmd->
SetGuidance(
"Maximum number is 2");
66 SetNumOfCladLayersCmd->
SetRange(
"numberOfLayers>=0 && numberOfLayers<=2");
69 SetSurfaceRoughnessCmd =
71 SetSurfaceRoughnessCmd->
72 SetGuidance(
"Set the roughness between Clad1 and WLS Fiber");
74 SetSurfaceRoughnessCmd->
SetRange(
"roughness>0 && roughness<=1");
78 SetXYRatioCmd->
SetGuidance(
"Set the ratio between x and y axis (x/y)");
80 SetXYRatioCmd->
SetRange(
"ratio>0 && ratio<=1");
84 SetMirrorPolishCmd->
SetGuidance(
"Set the polish of the mirror");
86 SetMirrorPolishCmd->
SetRange(
"polish>0 && polish<=1");
89 SetMirrorReflectivityCmd =
91 SetMirrorReflectivityCmd->
SetGuidance(
"Set the reflectivity of the mirror");
93 SetMirrorReflectivityCmd->
SetRange(
"reflectivity>=0 && reflectivity<=1");
96 SetPhotonDetPolishCmd =
98 SetPhotonDetPolishCmd->
SetGuidance(
"Set the polish of the mirror");
100 SetPhotonDetPolishCmd->
SetRange(
"polish>0 && polish<=1");
103 SetPhotonDetReflectivityCmd =
105 SetPhotonDetReflectivityCmd->
106 SetGuidance(
"Set the reflectivity of the mirror");
108 SetPhotonDetReflectivityCmd->
SetRange(
"reflectivity>=0 && reflectivity<=1");
112 SetWLSLengthCmd->
SetGuidance(
"Set the half length of the WLS fiber");
114 SetWLSLengthCmd->
SetRange(
"length>0.");
120 SetWLSRadiusCmd->
SetGuidance(
"Set the radius of the WLS fiber");
122 SetWLSRadiusCmd->
SetRange(
"radius>0.");
128 SetClad1RadiusCmd->
SetGuidance(
"Set the radius of Cladding 1");
130 SetClad1RadiusCmd->
SetRange(
"radius>0.");
136 SetClad2RadiusCmd->
SetGuidance(
"Set the radius of Cladding 2");
138 SetClad2RadiusCmd->
SetRange(
"radius>0.");
143 SetPhotonDetHalfLengthCmd =
145 SetPhotonDetHalfLengthCmd->
146 SetGuidance(
"Set the half length of PhotonDet detector");
148 SetPhotonDetHalfLengthCmd->
SetRange(
"halfL>0.");
154 SetGapCmd->
SetGuidance(
"Set the distance between PhotonDet and fiber end");
161 SetPhotonDetAlignmentCmd =
163 SetPhotonDetAlignmentCmd->
164 SetGuidance(
"Set the deviation of PhotonDet from z axis");
168 SetPhotonDetAlignmentCmd->
SetRange(
"theta>-90. && theta<90.");
172 SetMirrorCmd->
SetGuidance(
"Place a mirror at the end of the fiber");
176 SetBarLengthCmd->
SetGuidance(
"Set the length of the scintillator bar");
178 SetBarLengthCmd->
SetRange(
"length>0.");
184 SetBarBaseCmd->
SetGuidance(
"Set the side length of the scintillator bar");
186 SetBarBaseCmd->
SetRange(
"length>0.");
192 SetHoleRadiusCmd->
SetGuidance(
"Set the radius of the fiber hole");
194 SetHoleRadiusCmd->
SetRange(
"radius>0.");
199 SetCoatingThicknessCmd =
201 SetCoatingThicknessCmd->
202 SetGuidance(
"Set thickness of the coating on the bars");
206 SetCoatingThicknessCmd->
SetRange(
"thick>=0.");
209 SetCoatingRadiusCmd =
211 SetCoatingRadiusCmd->
212 SetGuidance(
"Set inner radius of the corner bar coating");
216 SetCoatingRadiusCmd->
SetRange(
"cradius>=0.");
227 delete SetPhotonDetGeometryCmd;
228 delete SetNumOfCladLayersCmd;
229 delete SetWLSLengthCmd;
230 delete SetWLSRadiusCmd;
231 delete SetClad1RadiusCmd;
232 delete SetClad2RadiusCmd;
233 delete SetPhotonDetHalfLengthCmd;
235 delete SetPhotonDetAlignmentCmd;
236 delete SetSurfaceRoughnessCmd;
237 delete SetMirrorPolishCmd;
238 delete SetMirrorReflectivityCmd;
239 delete SetXYRatioCmd;
241 delete SetBarLengthCmd;
242 delete SetBarBaseCmd;
243 delete SetHoleRadiusCmd;
244 delete SetCoatingThicknessCmd;
245 delete SetCoatingRadiusCmd;
250 if( command == UpdateCmd ) {
254 else if( command == SetPhotonDetGeometryCmd ) {
258 else if( command == SetNumOfCladLayersCmd ) {
262 else if( command == SetSurfaceRoughnessCmd ) {
266 else if( command == SetXYRatioCmd ) {
270 else if( command == SetMirrorPolishCmd ) {
274 else if( command == SetMirrorReflectivityCmd ) {
279 else if( command == SetPhotonDetPolishCmd ) {
283 else if( command == SetPhotonDetReflectivityCmd ) {
288 else if( command == SetWLSLengthCmd ) {
292 else if( command == SetWLSRadiusCmd ) {
296 else if( command == SetClad1RadiusCmd ) {
301 else if( command == SetClad2RadiusCmd ) {
306 else if( command == SetPhotonDetHalfLengthCmd ) {
311 else if( command == SetGapCmd ) {
315 else if( command == SetPhotonDetAlignmentCmd ) {
320 else if( command == SetMirrorCmd ) {
324 else if( command == SetBarLengthCmd ) {
328 else if( command == SetBarBaseCmd ) {
332 else if( command == SetHoleRadiusCmd ) {
336 else if( command == SetCoatingThicknessCmd ) {
340 else if( command == SetCoatingRadiusCmd ) {