Ticket #7422: LARMOR_Definition.xml

File LARMOR_Definition.xml, 11.9 KB (added by Anders Markvardsen, 7 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 name="LARMOR" valid-from   ="1900-01-31 23:59:59"
5                          valid-to     ="2100-01-31 23:59:59"
6                          last-modified="2012-03-04 00:00:00">
7
8  <defaults>
9    <length unit="meter"/>
10    <angle unit="degree"/> 
11    <reference-frame>
12      <!-- The z-axis is set parallel to and in the direction of the beam. the
13           y-axis points up and the coordinate system is right handed. -->
14      <along-beam axis="z"/>
15      <pointing-up axis="y"/>
16      <handedness val="right"/>
17    </reference-frame>
18    <default-view axis-view="z-"/>
19  </defaults>
20
21 
22  <!-- BRIEF DESCRIPTION OF LARMOR INSTRUMENT:
23 
24      Data provided by Richard Heenan (and Freddie) for the SANS2D instrument
25      12/06/09 this version has X & Y coords detector swapped so orientation
26      is correct for temporary wiring table.
27      18/06/09 better distances for detectors and both at L2=4m, front at X=-1.1m
28      26/06/09 swap front & rear as names wrong, translate front in opposite direction
29          21/07/09 remove the 150mm sideways shift (i.e. back to symmetrical detector coords)
30          to simplify manipulations in Mantid and help allow for detector mapping not quite
31          as expected.
32          01/02/10 very small chang eto pixel size 191*5.1=974.2=2*487.05 (was 487.4)
33          - note have to swap x= and y= in Anders output list !
34      02/04/12 Put in 'no shape monitors' for possible in the future monitors
35      with ID 5-8
36  -->
37 
38 
39  <!-- LIST OF PHYSICAL COMPONENTS (which the instrument consists of) -->
40 
41  <!-- source and sample-position components -->
42
43  <component type="source">
44    <location />
45  </component>
46  <type name="source" is="Source" />
47 
48  <component type="some-sample-holder">
49    <location z="25.300"/>
50  </component>
51  <type name="some-sample-holder" is="SamplePos" />
52 
53 
54  <!-- detector components (including monitors) -->
55 
56  <component type="monitors" idlist="monitors">
57    <location />
58  </component>
59 
60  <type name="monitors">
61    <component type="monitor-tbd">
62      <!-- better positions and shapes will be defined later -->
63      <location z="9.8195" name="monitor1"/>
64      <location z="20.313" name="monitor2"/>
65      <location z="20.500" name="monitor3"/>
66    </component>
67    <component type="Moderator-Monitor4">
68      <!-- transmisssion detector, either in or out of beam -->
69      <location z="25.700" name="monitor4"/>
70    </component>
71    <component type="monitor-tbd">
72      <!-- better positions and shapes will be defined later -->
73      <location z="29.900" name="monitor5"/>
74    </component>   
75   
76    <!-- Putting in monitors, which are defined in raw/neuxs
77         files, and have detector IDs, but currently not physically present
78         on the instrument. Defined with no geometric shape, as they do not
79         physically exist, and with a dummy position -->
80    <component type="no shape monitor">
81      <location z="0" name="placeholder 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    </component> 
87   
88  </type>
89 
90  <type name="monitor-tbd" is="monitor">
91    <cylinder id="some-shape">
92      <centre-of-bottom-base r="0.0" t="0.0" p="0.0" />
93      <axis x="0.0" y="0.0" z="1.0" /> 
94      <radius val="0.01" />
95      <height val="0.03" />
96    </cylinder>   
97  </type>
98 
99  <type name="Moderator-Monitor4" is="monitor">
100    <percent-transparency val="99.9" />
101    <cuboid id="shape">
102      <left-front-bottom-point x="0.0125" y="-0.0125" z="0.0"  />
103      <left-front-top-point  x="0.0125" y="-0.0125" z="0.005"  />
104      <left-back-bottom-point  x="-0.0125" y="-0.0125" z="0.0"  />
105      <right-front-bottom-point  x="0.0125" y="0.0125" z="0.0"  />
106    </cuboid>
107    <algebra val="shape" />
108  </type> 
109
110  <type name="no shape monitor" is="monitor" />   
111
112  <component type="DetectorBench" idlist="DetectorBench">
113    <location x="0" y="0" z="25.300"/> 
114  </component>
115
116  <type name="DetectorBench">
117   <component type="LARMORSANSDetector">
118     <location z="4.406" /> 
119   </component>   
120  </type>
121
122 <type name="LARMORSANSDetector" outline="yes">
123 <component type="LARMORUptube">
124        <location  x="  -0.316 " name="tube1  "/>
125        <location  x="    -0.3 " name="tube3  "/>
126        <location  x="  -0.284 " name="tube5  "/>
127        <location  x="  -0.268 " name="tube7  "/>
128        <location  x="  -0.252 " name="tube9  "/>
129        <location  x="  -0.236 " name="tube11 "/>
130        <location  x="   -0.22 " name="tube13 "/>
131        <location  x="  -0.204 " name="tube15 "/>
132        <location  x="  -0.188 " name="tube17 "/>
133        <location  x="  -0.172 " name="tube19 "/>
134        <location  x="  -0.156 " name="tube21 "/>
135        <location  x="   -0.14 " name="tube23 "/>
136        <location  x="  -0.124 " name="tube25 "/>
137        <location  x="  -0.108 " name="tube27 "/>
138        <location  x="  -0.092 " name="tube29 "/>
139        <location  x="  -0.076 " name="tube31 "/>
140        <location  x="   -0.06 " name="tube33 "/>
141        <location  x="  -0.044 " name="tube35 "/>
142        <location  x="  -0.028 " name="tube37 "/>
143        <location  x="  -0.012 " name="tube39 "/>
144        <location  x="   0.004 " name="tube41 "/>
145        <location  x="    0.02 " name="tube43 "/>
146        <location  x="   0.036 " name="tube45 "/>
147        <location  x="   0.052 " name="tube47 "/>
148        <location  x="   0.068 " name="tube49 "/>
149        <location  x="   0.084 " name="tube51 "/>
150        <location  x="     0.1 " name="tube53 "/>
151        <location  x="   0.116 " name="tube55 "/>
152        <location  x="   0.132 " name="tube57 "/>
153        <location  x="   0.148 " name="tube59 "/>
154        <location  x="   0.164 " name="tube61 "/>
155        <location  x="    0.18 " name="tube63 "/>
156        <location  x="   0.196 " name="tube65 "/>
157        <location  x="   0.212 " name="tube67 "/>
158        <location  x="   0.228 " name="tube69 "/>
159        <location  x="   0.244 " name="tube71 "/>
160        <location  x="    0.26 " name="tube73 "/>
161        <location  x="   0.276 " name="tube75 "/>
162        <location  x="   0.292 " name="tube77 "/>
163        <location  x="   0.308 " name="tube79 "/>
164</component>
165 <component type="LARMORDowntube">
166        <location  x="  -0.308 " name="tube2  "/>
167        <location  x="  -0.292 " name="tube4  "/>
168        <location  x="  -0.276 " name="tube6  "/>
169        <location  x="   -0.26 " name="tube8  "/>
170        <location  x="  -0.244 " name="tube10 "/>
171        <location  x="  -0.228 " name="tube12 "/>
172        <location  x="  -0.212 " name="tube14 "/>
173        <location  x="  -0.196 " name="tube16 "/>
174        <location  x="   -0.18 " name="tube18 "/>
175        <location  x="  -0.164 " name="tube20 "/>
176        <location  x="  -0.148 " name="tube22 "/>
177        <location  x="  -0.132 " name="tube24 "/>
178        <location  x="  -0.116 " name="tube26 "/>
179        <location  x="    -0.1 " name="tube28 "/>
180        <location  x="  -0.084 " name="tube30 "/>
181        <location  x="  -0.068 " name="tube32 "/>
182        <location  x="  -0.052 " name="tube34 "/>
183        <location  x="  -0.036 " name="tube36 "/>
184        <location  x="   -0.02 " name="tube38 "/>
185        <location  x="  -0.004 " name="tube40 "/>
186        <location  x="   0.012 " name="tube42 "/>
187        <location  x="   0.028 " name="tube44 "/>
188        <location  x="   0.044 " name="tube46 "/>
189        <location  x="    0.06 " name="tube48 "/>
190        <location  x="   0.076 " name="tube50 "/>
191        <location  x="   0.092 " name="tube52 "/>
192        <location  x="   0.108 " name="tube54 "/>
193        <location  x="   0.124 " name="tube56 "/>
194        <location  x="    0.14 " name="tube58 "/>
195        <location  x="   0.156 " name="tube60 "/>
196        <location  x="   0.172 " name="tube62 "/>
197        <location  x="   0.188 " name="tube64 "/>
198        <location  x="   0.204 " name="tube66 "/>
199        <location  x="    0.22 " name="tube68 "/>
200        <location  x="   0.236 " name="tube70 "/>
201        <location  x="   0.252 " name="tube72 "/>
202        <location  x="   0.268 " name="tube74 "/>
203        <location  x="   0.284 " name="tube76 "/>
204        <location  x="     0.3 " name="tube78 "/>
205        <location  x="   0.316 " name="tube80 "/>
206</component>
207 </type>
208 
209 <type name="LARMORUptube" outline="yes">
210 <component type="pixel">
211   <locations y="-0.3" y-end="0.3" n-elements="512" />
212 </component>
213 </type>
214 
215 <type name="LARMORDowntube" outline="yes">
216 <component type="pixel">
217   <locations y="-0.3" y-end="0.3" n-elements="512" />
218 </component>
219 </type>
220 
221  <type name="pixel" is="detector">
222    <cylinder id="cyl-approx">
223      <centre-of-bottom-base r="0.0" t="0.0" p="0.0" />
224      <axis x="0.0" y="0.2" z="0.0" />
225      <radius val="0.004" />
226      <height val="   1.172E-3" />
227    </cylinder>
228    <algebra val="cyl-approx" />
229  </type>
230
231  <!-- DETECTOR and MONITOR ID LISTS -->
232
233  <idlist idname="monitors">
234    <id start="1" end="10" /> 
235  </idlist>   
236 
237  <idlist idname="DetectorBench">
238   <id start="1100000" end="1100511" />
239   <id start="1101000" end="1101511" />
240   <id start="1102000" end="1102511" />
241   <id start="1103000" end="1103511" />
242   <id start="1104000" end="1104511" />
243   <id start="1105000" end="1105511" />
244   <id start="1106000" end="1106511" />
245   <id start="1107000" end="1107511" />
246   <id start="1108000" end="1108511" />
247   <id start="1109000" end="1109511" />
248   <id start="1110000" end="1110511" />
249   <id start="1111000" end="1111511" />
250   <id start="1112000" end="1112511" />
251   <id start="1113000" end="1113511" />
252   <id start="1114000" end="1114511" />
253   <id start="1115000" end="1115511" />
254   <id start="1116000" end="1116511" />
255   <id start="1117000" end="1117511" />
256   <id start="1118000" end="1118511" />
257   <id start="1119000" end="1119511" />
258   <id start="1120000" end="1120511" />
259   <id start="1121000" end="1121511" />
260   <id start="1122000" end="1122511" />
261   <id start="1123000" end="1123511" />
262   <id start="1124000" end="1124511" />
263   <id start="1200000" end="1200511" />
264   <id start="1201000" end="1201511" />
265   <id start="1202000" end="1202511" />
266   <id start="1203000" end="1203511" />
267   <id start="1204000" end="1204511" />
268   <id start="1205000" end="1205511" />
269   <id start="1206000" end="1206511" />
270   <id start="1207000" end="1207511" />
271   <id start="1208000" end="1208511" />
272   <id start="1209000" end="1209511" />
273   <id start="1210000" end="1210511" />
274   <id start="1211000" end="1211511" />
275   <id start="1212000" end="1212511" />
276   <id start="1213000" end="1213511" />
277   <id start="1214000" end="1214511" />
278   <id start="1215000" end="1215511" />
279   <id start="1216000" end="1216511" />
280   <id start="1217000" end="1217511" />
281   <id start="1218000" end="1218511" />
282   <id start="1219000" end="1219511" />
283   <id start="1220000" end="1220511" />
284   <id start="1221000" end="1221511" />
285   <id start="1222000" end="1222511" />
286   <id start="1223000" end="1223511" />
287   <id start="1224000" end="1224511" />
288   <id start="1300000" end="1300511" />
289   <id start="1301000" end="1301511" />
290   <id start="1302000" end="1302511" />
291   <id start="1303000" end="1303511" />
292   <id start="1304000" end="1304511" />
293   <id start="1305000" end="1305511" />
294   <id start="1306000" end="1306511" />
295   <id start="1307000" end="1307511" />
296   <id start="1308000" end="1308511" />
297   <id start="1309000" end="1309511" />
298   <id start="1310000" end="1310511" />
299   <id start="1311000" end="1311511" />
300   <id start="1312000" end="1312511" />
301   <id start="1313000" end="1313511" />
302   <id start="1314000" end="1314511" />
303   <id start="1315000" end="1315511" />
304   <id start="1316000" end="1316511" />
305   <id start="1317000" end="1317511" />
306   <id start="1318000" end="1318511" />
307   <id start="1319000" end="1319511" />
308   <id start="1320000" end="1320511" />
309   <id start="1321000" end="1321511" />
310   <id start="1322000" end="1322511" />
311   <id start="1323000" end="1323511" />
312   <id start="1324000" end="1324511" />
313   <id start="1400000" end="1400511" />
314   <id start="1401000" end="1401511" />
315   <id start="1402000" end="1402511" />
316   <id start="1403000" end="1403511" />
317   <id start="1404000" end="1404511" />
318  </idlist>
319 
320</instrument>