Ticket #9668: LARMOR_Definition.xml

File LARMOR_Definition.xml, 12.3 KB (added by Peter Parker, 6 years ago)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- For help on the notation used to specify an Instrument Definition File
3     see http://www.mantidproject.org/IDF -->
4<instrument xmlns="http://www.mantidproject.org/IDF/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mantidproject.org/IDF/1.0 Schema/IDFSchema.xsd" 
5 name="LARMOR" valid-from   ="2013-07-12 15:30:00"
6                          valid-to     ="2100-01-31 23:59:59"
7                          last-modified="2013-09-24 08:30:00">
8
9  <defaults>
10    <length unit="meter"/>
11    <angle unit="degree"/> 
12    <reference-frame>
13      <!-- The z-axis is set parallel to and in the direction of the beam. the
14           y-axis points up and the coordinate system is right handed. -->
15      <along-beam axis="z"/>
16      <pointing-up axis="y"/>
17      <handedness val="right"/>
18    </reference-frame>
19    <default-view axis-view="z-"/>
20  </defaults>
21
22 
23  <!-- BRIEF DESCRIPTION OF LARMOR INSTRUMENT:
24 
25      Data provided by Richard Heenan (and Freddie) for the SANS2D instrument
26      12/06/09 this version has X & Y coords detector swapped so orientation
27      is correct for temporary wiring table.
28      18/06/09 better distances for detectors and both at L2=4m, front at X=-1.1m
29      26/06/09 swap front & rear as names wrong, translate front in opposite direction
30          21/07/09 remove the 150mm sideways shift (i.e. back to symmetrical detector coords)
31          to simplify manipulations in Mantid and help allow for detector mapping not quite
32          as expected.
33          01/02/10 very small chang eto pixel size 191*5.1=974.2=2*487.05 (was 487.4)
34          - note have to swap x= and y= in Anders output list !
35      02/04/12 Put in 'no shape monitors' for possible in the future monitors
36      with ID 5-8
37  -->
38 
39 
40  <!-- LIST OF PHYSICAL COMPONENTS (which the instrument consists of) -->
41 
42  <!-- source and sample-position components -->
43
44  <component type="source">
45    <location />
46  </component>
47  <type name="source" is="Source" />
48 
49  <component type="some-sample-holder">
50    <location z="25.300"/>
51  </component>
52  <type name="some-sample-holder" is="SamplePos" />
53 
54 
55  <!-- detector components (including monitors) -->
56 
57  <component type="monitors" idlist="monitors">
58    <location />
59  </component>
60 
61  <type name="monitors">
62    <component type="monitor-tbd">
63      <!-- better positions and shapes will be defined later -->
64      <location z="9.8195" name="monitor1"/>
65      <location z="20.313" name="monitor2"/>
66      <location z="24.056" name="monitor3"/>
67    </component>
68    <component type="Moderator-Monitor4">
69      <!-- transmisssion detector, either in or out of beam -->
70      <location z="25.760" name="monitor4"/>
71    </component>
72    <component type="monitor-tbd">
73      <!-- better positions and shapes will be defined later -->
74      <location z="29.6500" name="monitor5"/>
75    </component>   
76   
77    <!-- Putting in monitors, which are defined in raw/neuxs
78         files, and have detector IDs, but currently not physically present
79         on the instrument. Defined with no geometric shape, as they do not
80         physically exist, and with a dummy position -->
81    <component type="no shape monitor">
82      <location z="0" name="placeholder monitor"/>
83      <location z="0" name="placeholder monitor"/>
84      <location z="0" name="placeholder monitor"/>
85      <location z="0" name="placeholder monitor"/>
86      <location z="0" name="placeholder monitor"/>     
87    </component> 
88   
89  </type>
90 
91  <type name="monitor-tbd" is="monitor">
92    <cylinder id="some-shape">
93      <centre-of-bottom-base r="0.0" t="0.0" p="0.0" />
94      <axis x="0.0" y="0.0" z="1.0" /> 
95      <radius val="0.01" />
96      <height val="0.03" />
97    </cylinder>   
98  </type>
99 
100  <type name="Moderator-Monitor4" is="monitor">
101    <percent-transparency val="99.9" />
102    <cuboid id="shape">
103      <left-front-bottom-point x="0.0125" y="-0.0125" z="0.0"  />
104      <left-front-top-point  x="0.0125" y="-0.0125" z="0.005"  />
105      <left-back-bottom-point  x="-0.0125" y="-0.0125" z="0.0"  />
106      <right-front-bottom-point  x="0.0125" y="0.0125" z="0.0"  />
107    </cuboid>
108    <algebra val="shape" />
109  </type> 
110
111  <type name="no shape monitor" is="monitor" />   
112
113  <component type="DetectorBench">
114    <location x="0" y="0" z="25.300"/> 
115  </component>
116
117  <type name="DetectorBench">
118   <component type="LARMORSANSDetector" idlist="LARMORSANSDetector">
119     <location z="4.406" /> 
120   </component>   
121  </type>
122
123 <type name="LARMORSANSDetector">
124 <component type="LARMORUptube">
125<location  x=" -0.3340375 " name="tube1  "/>
126<location  x=" -0.3171125 " name="tube3  "/>
127<location  x=" -0.3001875 " name="tube5  "/>
128<location  x=" -0.2832625 " name="tube7  "/>
129<location  x=" -0.2663375 " name="tube9  "/>
130<location  x=" -0.2494125 " name="tube11 "/>
131<location  x=" -0.2324875 " name="tube13 "/>
132<location  x=" -0.2155625 " name="tube15 "/>
133<location  x=" -0.1986375 " name="tube17 "/>
134<location  x=" -0.1817125 " name="tube19 "/>
135<location  x=" -0.1647875 " name="tube21 "/>
136<location  x=" -0.1478625 " name="tube23 "/>
137<location  x=" -0.1309375 " name="tube25 "/>
138<location  x=" -0.1140125 " name="tube27 "/>
139<location  x=" -0.0970875 " name="tube29 "/>
140<location  x=" -0.0801625 " name="tube31 "/>
141<location  x=" -0.0632375 " name="tube33 "/>
142<location  x=" -0.0463125 " name="tube35 "/>
143<location  x=" -0.0293875 " name="tube37 "/>
144<location  x=" -0.0124625 " name="tube39 "/>
145<location  x="  0.0044625 " name="tube41 "/>
146<location  x="  0.0213875 " name="tube43 "/>
147<location  x="  0.0383125 " name="tube45 "/>
148<location  x="  0.0552375 " name="tube47 "/>
149<location  x="  0.0721625 " name="tube49 "/>
150<location  x="  0.0890875 " name="tube51 "/>
151<location  x="  0.1060125 " name="tube53 "/>
152<location  x="  0.1229375 " name="tube55 "/>
153<location  x="  0.1398625 " name="tube57 "/>
154<location  x="  0.1567875 " name="tube59 "/>
155<location  x="  0.1737125 " name="tube61 "/>
156<location  x="  0.1906375 " name="tube63 "/>
157<location  x="  0.2075625 " name="tube65 "/>
158<location  x="  0.2244875 " name="tube67 "/>
159<location  x="  0.2414125 " name="tube69 "/>
160<location  x="  0.2583375 " name="tube71 "/>
161<location  x="  0.2752625 " name="tube73 "/>
162<location  x="  0.2921875 " name="tube75 "/>
163<location  x="  0.3091125 " name="tube77 "/>
164<location  x="  0.3260375 " name="tube79 "/>
165</component>
166 <component type="LARMORDowntube">
167<location  x="  -0.325575 " name="tube2  "/>
168<location  x="   -0.30865 " name="tube4  "/>
169<location  x="  -0.291725 " name="tube6  "/>
170<location  x="    -0.2748 " name="tube8  "/>
171<location  x="  -0.257875 " name="tube10 "/>
172<location  x="   -0.24095 " name="tube12 "/>
173<location  x="  -0.224025 " name="tube14 "/>
174<location  x="    -0.2071 " name="tube16 "/>
175<location  x="  -0.190175 " name="tube18 "/>
176<location  x="   -0.17325 " name="tube20 "/>
177<location  x="  -0.156325 " name="tube22 "/>
178<location  x="    -0.1394 " name="tube24 "/>
179<location  x="  -0.122475 " name="tube26 "/>
180<location  x="   -0.10555 " name="tube28 "/>
181<location  x="  -0.088625 " name="tube30 "/>
182<location  x="    -0.0717 " name="tube32 "/>
183<location  x="  -0.054775 " name="tube34 "/>
184<location  x="   -0.03785 " name="tube36 "/>
185<location  x="  -0.020925 " name="tube38 "/>
186<location  x="     -0.004 " name="tube40 "/>
187<location  x="   0.012925 " name="tube42 "/>
188<location  x="    0.02985 " name="tube44 "/>
189<location  x="   0.046775 " name="tube46 "/>
190<location  x="     0.0637 " name="tube48 "/>
191<location  x="   0.080625 " name="tube50 "/>
192<location  x="    0.09755 " name="tube52 "/>
193<location  x="   0.114475 " name="tube54 "/>
194<location  x="     0.1314 " name="tube56 "/>
195<location  x="   0.148325 " name="tube58 "/>
196<location  x="    0.16525 " name="tube60 "/>
197<location  x="   0.182175 " name="tube62 "/>
198<location  x="     0.1991 " name="tube64 "/>
199<location  x="   0.216025 " name="tube66 "/>
200<location  x="    0.23295 " name="tube68 "/>
201<location  x="   0.249875 " name="tube70 "/>
202<location  x="     0.2668 " name="tube72 "/>
203<location  x="   0.283725 " name="tube74 "/>
204<location  x="    0.30065 " name="tube76 "/>
205<location  x="   0.317575 " name="tube78 "/>
206<location  x="     0.3345 " name="tube80 "/>
207</component>
208 </type>
209 
210 <type name="LARMORUptube" outline="yes">
211 <component type="pixel">
212   <locations y="-0.3" y-end="0.3" n-elements="512" />
213 </component>
214 </type>
215 
216 <type name="LARMORDowntube" outline="yes">
217 <component type="pixel">
218   <locations y="-0.3" y-end="0.3" n-elements="512" />
219 </component>
220 </type>
221 
222  <type name="pixel" is="detector">
223    <cylinder id="cyl-approx">
224      <centre-of-bottom-base r="0.0" t="0.0" p="0.0" />
225      <axis x="0.0" y="0.2" z="0.0" />
226      <radius val="0.004" />
227      <height val="   1.171875E-3" />
228    </cylinder>
229    <algebra val="cyl-approx" />
230  </type>
231
232  <!-- DETECTOR and MONITOR ID LISTS -->
233
234  <idlist idname="monitors">
235    <id start="1" end="10" /> 
236  </idlist>   
237 
238  <idlist idname="LARMORSANSDetector">
239   <id start="1108000" end="1108511" />
240   <id start="1110000" end="1110511" />
241   <id start="1112000" end="1112511" />
242   <id start="1114000" end="1114511" />
243   <id start="1116000" end="1116511" />
244   <id start="1118000" end="1118511" />
245   <id start="1120000" end="1120511" />
246   <id start="1122000" end="1122511" />
247   <id start="1200000" end="1200511" />
248   <id start="1202000" end="1202511" />
249   <id start="1204000" end="1204511" />
250   <id start="1206000" end="1206511" />
251   <id start="1208000" end="1208511" />
252   <id start="1210000" end="1210511" />
253   <id start="1212000" end="1212511" />
254   <id start="1214000" end="1214511" />
255   <id start="1216000" end="1216511" />
256   <id start="1218000" end="1218511" />
257   <id start="1220000" end="1220511" />
258   <id start="1222000" end="1222511" />
259   <id start="1300000" end="1300511" />
260   <id start="1302000" end="1302511" />
261   <id start="1304000" end="1304511" />
262   <id start="1306000" end="1306511" />
263   <id start="1308000" end="1308511" />
264   <id start="1310000" end="1310511" />
265   <id start="1312000" end="1312511" />
266   <id start="1314000" end="1314511" />
267   <id start="1316000" end="1316511" />
268   <id start="1318000" end="1318511" />
269   <id start="1320000" end="1320511" />
270   <id start="1322000" end="1322511" />
271   <id start="1400000" end="1400511" />
272   <id start="1402000" end="1402511" />
273   <id start="1404000" end="1404511" />
274   <id start="1406000" end="1406511" />
275   <id start="1408000" end="1408511" />
276   <id start="1410000" end="1410511" />
277   <id start="1412000" end="1412511" />
278   <id start="1414000" end="1414511" />
279
280   <id start="1109000" end="1109511" />
281   <id start="1111000" end="1111511" />
282   <id start="1113000" end="1113511" />
283   <id start="1115000" end="1115511" />
284   <id start="1117000" end="1117511" />
285   <id start="1119000" end="1119511" />
286   <id start="1121000" end="1121511" />
287   <id start="1123000" end="1123511" />
288   <id start="1201000" end="1201511" />
289   <id start="1203000" end="1203511" />
290   <id start="1205000" end="1205511" />
291   <id start="1207000" end="1207511" />
292   <id start="1209000" end="1209511" />
293   <id start="1211000" end="1211511" />
294   <id start="1213000" end="1213511" />
295   <id start="1215000" end="1215511" />
296   <id start="1217000" end="1217511" />
297   <id start="1219000" end="1219511" />
298   <id start="1221000" end="1221511" />
299   <id start="1223000" end="1223511" />
300   <id start="1301000" end="1301511" />
301   <id start="1303000" end="1303511" />
302   <id start="1305000" end="1305511" />
303   <id start="1307000" end="1307511" />
304   <id start="1309000" end="1309511" />
305   <id start="1311000" end="1311511" />
306   <id start="1313000" end="1313511" />
307   <id start="1315000" end="1315511" />
308   <id start="1317000" end="1317511" />
309   <id start="1319000" end="1319511" />
310   <id start="1321000" end="1321511" />
311   <id start="1323000" end="1323511" />
312   <id start="1401000" end="1401511" />
313   <id start="1403000" end="1403511" />
314   <id start="1405000" end="1405511" />
315   <id start="1407000" end="1407511" />
316   <id start="1409000" end="1409511" />
317   <id start="1411000" end="1411511" />
318   <id start="1413000" end="1413511" />
319   <id start="1415000" end="1415511" />
320   
321  </idlist>
322 
323</instrument>