Ticket #5970: CRISP_Definition.xml

File CRISP_Definition.xml, 17.9 KB (added by Owen Arnold, 8 years ago)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<instrument name="CSP" valid-from   ="1900-01-31 23:59:59"
3                          valid-to     ="2100-01-31 23:59:59"         
4                                                  last-modified="2010-11-04 00:00:00">
5
6  <defaults>
7    <length unit="meter" />
8    <angle unit="degree" />
9    <reference-frame>
10      <along-beam axis="z" />
11      <pointing-up axis="y" />
12      <handedness val="right" />
13    </reference-frame>
14  </defaults>
15
16
17 <!-- Definition of instrument specific parameters for data reduction (e.g. wavelength cutoffs etc.) , could go into paramter file
18        MonitorBackground= [7.4,7.9]
19        MonitorsToCorrect=[1]
20        PointDetectorStart=[0]   # Note: Since we are removing the monitors in the load raw command they are not counted here.
21        PointDetectorStop=[0]
22        MultiDetectorStart=[1]
23        I0MonitorIndex=1
24 -->
25 
26  <parameter name="MonitorBackgroundMin">
27        <value val="7.4"/> 
28  </parameter>
29 
30  <parameter name="MonitorBackgroundMax">
31        <value val="7.9"/> 
32  </parameter>
33   
34  <parameter name="MonitorsToCorrect">
35    <value val="1"/>
36  </parameter>
37
38  <parameter name="PointDetectorStart">
39    <value val="2"/>
40  </parameter>
41
42  <parameter name="PointDetectorStop">
43    <value val="2"/>
44  </parameter>
45 
46  <parameter name="MultiDetectorStart">
47    <value val="1"/>
48  </parameter>
49 
50  <parameter name="I0MonitorIndex">
51    <value val="1"/>
52  </parameter>
53 
54  <parameter name="LambdaMin">
55    <value val="0.6"/>
56  </parameter> 
57
58  <parameter name="LambdaMax">
59    <value val="6.5"/>
60  </parameter>
61 
62 <!-- parameters for efficiency correction -->
63  <parameter name="a">
64    <value val="14.1959"/>
65  </parameter>
66 
67  <parameter name="b">
68    <value val="-5.2411"/>
69  </parameter>
70
71  <parameter name="c">
72    <value val="-4.95285"/>
73  </parameter>
74 
75  <parameter name="d">
76    <value val="10.0026"/>
77  </parameter>
78 
79  <parameter name="e">
80    <value val="-6.46053"/>
81  </parameter>
82 
83  <parameter name="f">
84    <value val="2.09739"/>
85  </parameter>
86 
87  <parameter name="g">
88    <value val="-0.369305"/>
89  </parameter>
90 
91  <parameter name="h">
92    <value val="0.0336969"/>
93  </parameter>
94
95  <parameter name="i">
96    <value val="-0.001250"/>
97  </parameter>
98 
99
100 
101
102 
103  <!-- BRIEF DESCRIPTION OF CRISP INSTRUMENT:
104 
105      Here Z=0 is defined by the neutron beam which slopes down at 1.5 deg.
106      from the horizon. This description is based on data provided by Tim
107      Charlton and Rob Dalgliesh.
108     
109      Note from Tim spreedsheet
110      theta is a rotation about the y axis
111      phi is a rotation about the x axis
112      chi is a rotation about the z axis
113
114      Noticed the face of the monitors/detector shapes that faces the
115      beam/sample path is in this IDF defined to be the y-z plane.
116     
117      Note the status of the instrument during a run is stored in the
118      logfile RunNo_status.txt
119  -->
120 
121 
122  <!-- LIST OF PHYSICAL COMPONENTS (which the instrument consists of) -->
123 
124  <!-- detector components (including monitors) -->
125 
126  <component type="monitor1" idlist="monitor1">
127    <location z="7.2055" mark-as="monitor" />
128  </component>
129 
130  <type name="monitor1" is="detector">
131    <!-- Shape specified at least big enough to cover the beam which
132         is 10mm high and 40mm wide. Note it is described as tube, hence
133         the choice of a cylinder shape.
134    -->   
135    <percent-transparency val="95" />
136    <cylinder id="shape">
137      <centre-of-bottom-base z="0.0" x="-0.02" y="0.0" />
138      <axis z="0.0" x="1.0" y="0.0" /> 
139      <radius val="0.01" />
140      <height val="0.04" />
141    </cylinder> 
142    <algebra val="shape" />
143  </type> 
144 
145  <component type="monitor2" idlist="monitor2">
146    <location z="9.92" mark-as="monitor" />
147  </component> 
148 
149  <type name="monitor2" is="detector">
150    <!-- Shape specified as a minimum needs to cover the beam which
151         is 10mm high and 40mm wide. The 'top' shape is included to
152         more easily recognise this monitor when visualised in MantidPlot.
153         This monitor is suppose to look a bit like a German hand grenade.
154    -->   
155    <percent-transparency val="95" />
156    <cuboid id="base">
157      <left-front-bottom-point z="0.04" x="-0.02" y="-0.01"  />
158      <left-front-top-point  z="0.04" x="-0.02" y="0.01"  />
159      <left-back-bottom-point  z="-0.04" x="-0.02" y="-0.01"  />
160      <right-front-bottom-point  z="0.04" x="0.02" y="-0.01"  />
161    </cuboid>
162   
163    <cylinder id="top">
164      <centre-of-bottom-base z="0.0" x="0.0" y="0.01" />
165      <axis z="0.0" x="0.0" y="1.0" /> 
166      <radius val="0.02" />
167      <height val="0.04" />
168    </cylinder> 
169   
170    <algebra val="base : top" />
171  </type> 
172 
173  <component type="point-detector" idlist="point-detector">
174 
175    <location z="12.113" />
176   
177    <!-- Link to log file that stores the z position. This angle can be used to
178    calculate the z position since the distance along the x-axis between
179    the sample and this detector is known (12.113-10.25=1.863). Also theta in the logfile is
180    assumed to in degrees, hence the reason for the pi/180=0.0174533 transformation
181    to radians factor in the eq attribute. -->
182    <parameter name="y">
183      <logfile id="theta" eq="1.863*sin(value*0.0174533)" />
184    </parameter>
185   
186  </component>   
187
188  <type name="point-detector" is="detector">
189    <!-- Not exactly sure about the dimensions of this one. But pretty sure
190    it at least covers the beam. Also, just in front of it is a slit which
191    at the end of day will determine which neutrons get through to this
192    detector I believe.
193    -->   
194    <cuboid id="shape">
195      <left-front-bottom-point z="0.01" x="-0.02" y="-0.005"  />
196      <left-front-top-point  z="0.01" x="-0.02" y="0.005"  />
197      <left-back-bottom-point  z="-0.01" x="-0.02" y="-0.005"  />
198      <right-front-bottom-point  z="0.01" x="0.02" y="-0.005"  />
199    </cuboid>
200    <algebra val="shape" />
201  </type>   
202 
203 
204  <component type="linear-detector" idlist="linear-detector">
205 
206    <!-- Link to log file that stores the z position -->
207     <parameter name="z">
208      <logfile id="linear_det_height" eq="0.001*value" extract-single-value-as="position 1" />
209    </parameter>
210 
211    <properties> 
212      Thin slabs 50mm wide, one for each spectrum 1.2 mm pixel pitch growing upward   
213    </properties>
214   
215    <location z="12.403" />
216  </component>   
217
218  <type name="linear-detector">
219    <component type="linear-detector-pixel" >
220      <location y="0" />
221      <location y="0.0012" />
222      <location y="0.0024" />
223      <location y="0.0036" />
224      <location y="0.0048" />
225      <location y="0.006" />
226      <location y="0.0072" />
227      <location y="0.0084" />
228      <location y="0.0096" />
229      <location y="0.0108" />
230      <location y="0.012" />
231      <location y="0.0132" />
232      <location y="0.0144" />
233      <location y="0.0156" />
234      <location y="0.0168" />
235      <location y="0.018" />
236      <location y="0.0192" />
237      <location y="0.0204" />
238      <location y="0.0216" />
239      <location y="0.0228" />
240      <location y="0.024" />
241      <location y="0.0252" />
242      <location y="0.0264" />
243      <location y="0.0276" />
244      <location y="0.0288" />
245      <location y="0.03" />
246      <location y="0.0312" />
247      <location y="0.0324" />
248      <location y="0.0336" />
249      <location y="0.0348" />
250      <location y="0.036" />
251      <location y="0.0372" />
252      <location y="0.0384" />
253      <location y="0.0396" />
254      <location y="0.0408" />
255      <location y="0.042" />
256      <location y="0.0432" />
257      <location y="0.0444" />
258      <location y="0.0456" />
259      <location y="0.0468" />
260      <location y="0.048" />
261      <location y="0.0492" />
262      <location y="0.0504" />
263      <location y="0.0516" />
264      <location y="0.0528" />
265      <location y="0.054" />
266      <location y="0.0552" />
267      <location y="0.0564" />
268      <location y="0.0576" />
269      <location y="0.0588" />
270      <location y="0.06" />
271      <location y="0.0612" />
272      <location y="0.0624" />
273      <location y="0.0636" />
274      <location y="0.0648" />
275      <location y="0.066" />
276      <location y="0.0672" />
277      <location y="0.0684" />
278      <location y="0.0696" />
279      <location y="0.0708" />
280      <location y="0.072" />
281      <location y="0.0732" />
282      <location y="0.0744" />
283      <location y="0.0756000000000001" />
284      <location y="0.0768000000000001" />
285      <location y="0.0780000000000001" />
286      <location y="0.0792000000000001" />
287      <location y="0.0804000000000001" />
288      <location y="0.0816000000000001" />
289      <location y="0.0828000000000001" />
290      <location y="0.0840000000000001" />
291      <location y="0.0852000000000001" />
292      <location y="0.0864000000000001" />
293      <location y="0.0876000000000001" />
294      <location y="0.0888000000000001" />
295      <location y="0.0900000000000001" />
296      <location y="0.0912000000000001" />
297      <location y="0.0924000000000001" />
298      <location y="0.0936000000000002" />
299      <location y="0.0948000000000002" />
300      <location y="0.0960000000000002" />
301      <location y="0.0972000000000002" />
302      <location y="0.0984000000000002" />
303      <location y="0.0996000000000002" />
304      <location y="0.1008" />
305      <location y="0.102" />
306      <location y="0.1032" />
307      <location y="0.1044" />
308      <location y="0.1056" />
309      <location y="0.1068" />
310      <location y="0.108" />
311      <location y="0.1092" />
312      <location y="0.1104" />
313      <location y="0.1116" />
314      <location y="0.1128" />
315      <location y="0.114" />
316      <location y="0.1152" />
317      <location y="0.1164" />
318      <location y="0.1176" />
319      <location y="0.1188" />
320      <location y="0.12" />
321      <location y="0.1212" />
322      <location y="0.1224" />
323      <location y="0.1236" />
324      <location y="0.1248" />
325      <location y="0.126" />
326      <location y="0.1272" />
327      <location y="0.1284" />
328      <location y="0.1296" />
329      <location y="0.1308" />
330      <location y="0.132" />
331      <location y="0.1332" />
332      <location y="0.1344" />
333      <location y="0.1356" />
334      <location y="0.1368" />
335      <location y="0.138" />
336      <location y="0.1392" />
337      <location y="0.1404" />
338      <location y="0.1416" />
339      <location y="0.1428" />
340      <location y="0.144" />
341      <location y="0.1452" />
342      <location y="0.1464" />
343      <location y="0.1476" />
344      <location y="0.1488" />
345      <location y="0.15" />
346      <location y="0.1512" />
347      <location y="0.1524" />
348      <location y="0.1536" />
349      <location y="0.1548" />
350      <location y="0.156" />
351      <location y="0.157200000000001" />
352      <location y="0.158400000000001" />
353      <location y="0.159600000000001" />
354      <location y="0.160800000000001" />
355      <location y="0.162000000000001" />
356      <location y="0.163200000000001" />
357      <location y="0.164400000000001" />
358      <location y="0.165600000000001" />
359      <location y="0.166800000000001" />
360      <location y="0.168000000000001" />
361      <location y="0.169200000000001" />
362      <location y="0.170400000000001" />
363      <location y="0.171600000000001" />
364      <location y="0.172800000000001" />
365      <location y="0.174000000000001" />
366      <location y="0.175200000000001" />
367      <location y="0.176400000000001" />
368      <location y="0.177600000000001" />
369      <location y="0.178800000000001" />
370      <location y="0.180000000000001" />
371      <location y="0.181200000000001" />
372      <location y="0.182400000000001" />
373      <location y="0.183600000000001" />
374      <location y="0.184800000000001" />
375      <location y="0.186000000000001" />
376      <location y="0.187200000000001" />
377      <location y="0.188400000000001" />
378      <location y="0.189600000000001" />
379      <location y="0.190800000000001" />
380      <location y="0.192000000000001" />
381      <location y="0.193200000000001" />
382      <location y="0.194400000000001" />
383      <location y="0.195600000000001" />
384      <location y="0.196800000000001" />
385      <location y="0.198000000000001" />
386      <location y="0.199200000000001" />
387      <location y="0.200400000000001" />
388      <location y="0.201600000000001" />
389      <location y="0.202800000000001" />
390      <location y="0.204000000000001" />
391      <location y="0.205200000000001" />
392      <location y="0.206400000000001" />
393      <location y="0.207600000000001" />
394      <location y="0.208800000000001" />
395      <location y="0.210000000000001" />
396      <location y="0.211200000000001" />
397      <location y="0.212400000000001" />
398      <location y="0.213600000000001" />
399      <location y="0.214800000000001" />
400      <location y="0.216000000000001" />
401      <location y="0.217200000000001" />
402      <location y="0.218400000000001" />
403      <location y="0.219600000000001" />
404      <location y="0.220800000000001" />
405      <location y="0.222000000000001" />
406      <location y="0.223200000000001" />
407      <location y="0.224400000000001" />
408      <location y="0.225600000000001" />
409      <location y="0.226800000000001" />
410      <location y="0.228000000000001" />
411      <location y="0.229200000000001" />
412      <location y="0.230400000000001" />
413      <location y="0.231600000000001" />
414      <location y="0.232800000000001" />
415      <location y="0.234000000000001" />
416      <location y="0.235200000000001" />
417      <location y="0.236400000000001" />
418      <location y="0.237600000000001" />
419      <location y="0.238800000000001" />
420      <location y="0.240000000000001" />
421      <location y="0.241200000000001" />
422      <location y="0.242400000000001" />
423      <location y="0.243600000000001" />
424      <location y="0.244800000000001" />
425      <location y="0.246000000000001" />
426      <location y="0.247200000000001" />
427      <location y="0.248400000000001" />
428      <location y="0.249600000000001" />
429      <location y="0.250800000000001" />
430      <location y="0.252000000000001" />
431      <location y="0.253200000000001" />
432      <location y="0.254400000000001" />
433      <location y="0.255600000000001" />
434      <location y="0.256800000000001" />
435      <location y="0.258000000000001" />
436      <location y="0.259200000000001" />
437      <location y="0.260400000000001" />
438      <location y="0.261600000000001" />
439      <location y="0.262800000000001" />
440      <location y="0.264000000000001" />
441      <location y="0.265200000000001" />
442      <location y="0.266400000000001" />
443      <location y="0.267600000000001" />
444      <location y="0.268800000000001" />
445      <location y="0.270000000000001" />
446      <location y="0.271200000000001" />
447      <location y="0.272400000000001" />
448      <location y="0.273600000000001" />
449      <location y="0.274800000000001" />
450      <location y="0.276000000000001" />
451      <location y="0.277200000000001" />
452      <location y="0.278400000000001" />
453      <location y="0.279600000000001" />
454      <location y="0.2808" />
455      <location y="0.282" />
456      <location y="0.2832" />
457      <location y="0.2844" />
458      <location y="0.2856" />
459      <location y="0.2868" />   
460    </component>
461  </type>
462 
463  <type name="linear-detector-pixel" is="detector">
464    <cuboid id="shape">
465      <left-front-bottom-point z="0.01" x="-0.025" y="-0.0006"  />
466      <left-front-top-point  z="0.01" x="-0.025" y="0.0006"  />
467      <left-back-bottom-point  z="-0.01" x="-0.025" y="-0.0006"  />
468      <right-front-bottom-point  z="0.01" x="0.025" y="-0.0006"  />
469    </cuboid>
470    <algebra val="shape" />
471  </type>   
472
473 
474  <!-- source and sample-position components -->
475
476  <component type="source">
477    <location />
478  </component>
479
480  <type name="source" is="Source">
481    <properties>
482      10mm(H) x 40mm(W)
483    </properties>
484  </type> 
485 
486 
487  <component type="some-surface-holder">
488    <!-- worry about linking relevant logfiles for y,z,theta,phi up later -->
489    <location z="10.25"/>
490  </component>
491
492  <type name="some-surface-holder" is="SamplePos">
493  </type>
494 
495 
496  <!-- other components --> 
497 
498  <component type="slit1">
499    <location z="7.3025"/>
500     <!-- This log file stores the vertical opening of slit -->
501    <parameter name="opening height"> 
502      <logfile id="s1" extract-single-value-as="position 1" />
503    </parameter>
504  </component>
505 
506  <component type="slit2"> 
507    <location z="9.6885"/> 
508    <!-- This log file stores the vertical opening of this. Note this
509     slit can also be translated in the z. However this info not stored
510     in log file since it is not used in the data analysis process. -->
511    <parameter name="opening height"> 
512      <logfile id="s2" extract-single-value-as="position 1" />
513    </parameter>
514  </component>   
515 
516  <component type="slit3">   
517    <location z="10.651"/>
518    <!-- This log file stores the vertical opening of slit --> 
519    <parameter name="opening height">
520      <logfile id="s3" extract-single-value-as="position 1" />
521    </parameter>
522  </component>   
523 
524  <component type="slit4">   
525    <location z="11.983"/>     
526    <!-- This log file stores the vertical opening of slit. Note this slit
527     is fixed to the point detector. -->
528    <parameter name="opening height"> 
529      <logfile id="s4" extract-single-value-as="position 1" />   
530    </parameter>
531  </component>
532 
533  <type name="slit1"></type>
534  <type name="slit2"></type>
535  <type name="slit3"></type>
536  <type name="slit4"></type> 
537 
538 
539 
540  <component type="supermirror">
541    <!-- Worry about linking relevant logfiles for z,theta up later -->
542    <location z="7.7685"/> 
543  </component> 
544
545  <type name="supermirror" /> 
546
547
548
549 
550  <!-- DETECTOR and MONITOR ID LISTS -->
551
552  <idlist idname="monitor1">
553    <id val="1" /> 
554  </idlist>
555 
556  <idlist idname="monitor2">
557    <id val="2" /> 
558  </idlist>
559
560  <idlist idname="point-detector">
561    <id val="3" /> 
562  </idlist>
563 
564  <idlist idname="linear-detector">
565    <id start="6" end="125" />
566    <id start="134" end="253" />
567  </idlist> 
568 
569</instrument>