forked from npshub/mantid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INTER_Definition.xml
243 lines (206 loc) · 8.16 KB
/
INTER_Definition.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<?xml version="1.0" encoding="UTF-8"?>
<!-- For help on the notation used to specify an Instrument Definition File
see http://www.mantidproject.org/IDF -->
<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 http://schema.mantidproject.org/IDF/1.0/IDFSchema.xsd"
name="INTER"
valid-from="1900-01-31 23:59:59"
valid-to= "2017-02-13 23:59:59"
last-modified="2018-02-16 00:00:00">
<defaults>
<length unit="meter" />
<angle unit="degree" />
<reference-frame>
<along-beam axis="z" />
<pointing-up axis="y" />
<handedness val="right" />
</reference-frame>
<default-view axis-view="z+"/>
</defaults>
<!-- source and sample-position components START============================= -->
<component type="source">
<location z="-17.037" />
</component>
<type name="source" is="Source">
<properties>
40mm(H) x 60mm(W)
</properties>
</type>
<component type="some-surface-holder">
<location x="0.0" y="0.0" z="0.0"/>
</component>
<type name="some-surface-holder" is="SamplePos"/>
<!-- source and sample-position components END=============================== -->
<!-- LIST OF PHYSICAL COMPONENTS (which the instrument consists of) -->
<!-- detector components (including monitors) -->
<!-- ================MONITOR 1 START========================================= -->
<component type="monitor1" idlist="monitor1">
<location z="-10.077" />
</component>
<type name="monitor1" is="monitor">
<percent-transparency val="95" />
<cylinder id="shape">
<centre-of-bottom-base z="0.0" x="-0.02" y="0.0" />
<axis z="0.0" x="1.0" y="0.0" />
<radius val="0.01" />
<height val="0.04" />
</cylinder>
<algebra val="shape" />
</type>
<!-- ================MONITOR 1 END=========================================== -->
<!-- ================MONITOR 2 START========================================= -->
<component type="monitor2" idlist="monitor2">
<location z="-3.246" />
</component>
<type name="monitor2" is="monitor">
<percent-transparency val="95" />
<cuboid id="base">
<left-front-bottom-point z="0.04" x="-0.02" y="-0.01" />
<left-front-top-point z="0.04" x="-0.02" y="0.01" />
<left-back-bottom-point z="-0.04" x="-0.02" y="-0.01" />
<right-front-bottom-point z="0.04" x="0.02" y="-0.01" />
</cuboid>
<cylinder id="top">
<centre-of-bottom-base z="0.0" x="0.0" y="0.01" />
<axis z="0.0" x="0.0" y="1.0" />
<radius val="0.02" />
<height val="0.04" />
</cylinder>
<algebra val="base : top" />
</type>
<!-- ================MONITOR 2 END=========================================== -->
<!-- ================MONITOR 3 START========================================= -->
<component type="monitor3" idlist="monitor3">
<location z="-0.252" />
</component>
<type name="monitor3" is="monitor">
<percent-transparency val="95" />
<cuboid id="base">
<left-front-bottom-point z="0.04" x="-0.02" y="-0.01" />
<left-front-top-point z="0.04" x="-0.02" y="0.01" />
<left-back-bottom-point z="-0.04" x="-0.02" y="-0.01" />
<right-front-bottom-point z="0.04" x="0.02" y="-0.01" />
</cuboid>
<cylinder id="top">
<centre-of-bottom-base z="0.0" x="0.0" y="0.01" />
<axis z="0.0" x="0.0" y="1.0" />
<radius val="0.02" />
<height val="0.04" />
</cylinder>
<algebra val="base : top" />
</type>
<!-- ================MONITOR 2 END=========================================== -->
<!-- ================POINT DETECTOR START==================================== -->
<component type="point-detector" idlist="point-detector">
<location z="2.663" /> <!-- x= 23.0+2.6 -->
<parameter name="y">
<!-- <logfile id="PD1H" eq="(value+201.0)/1000." extract-single-value-as="last_value"/> -->
<logfile id="theta" eq="2.663*sin(2*value*0.0174533)" extract-single-value-as="last_value"/>
</parameter>
</component>
<type name="point-detector" is="detector">
<!-- Not exactly sure about the dimensions of this one. But pretty sure
it at least covers the beam. Also, just in front of it is a slit which
at the end of day will determine which neutrons get through to this
detector I believe.
-->
<cuboid id="shape">
<left-front-bottom-point z="0.01" x="-0.02" y="-0.005" />
<left-front-top-point z="0.01" x="-0.02" y="0.005" />
<left-back-bottom-point z="-0.01" x="-0.02" y="-0.005" />
<right-front-bottom-point z="0.01" x="0.02" y="-0.005" />
</cuboid>
<algebra val="shape" />
</type>
<!-- ================POINT DETECTOR END====================================== -->
<!-- ================LINEAR DETECTOR START=================================== -->
<component type="panel" idstart="2001" idfillbyfirst="y" idstep="1" idstepbyrow="1">
<location z="3.163" name="linear-detector"/>
<parameter name="y">
<logfile id="Theta" eq="3.163*tan(2*value*0.0174533)-46*0.0012" extract-single-value-as="last_value"/>
</parameter>
</component>
<type name="panel" is="rectangular_detector" type="linear-detector-pixel"
xpixels="1" xstart="0.0" xstep="0.05"
ypixels="243" ystart="0.0" ystep="+0.0012" >
<properties/>
</type>
<!--"-0.0576"-->
<type name="linear-detector-pixel" is="detector">
<cuboid id="shape">
<left-front-bottom-point z="0.01" x="-0.025" y="-0.0006" />
<left-front-top-point z="0.01" x="-0.025" y="0.0006" />
<left-back-bottom-point z="-0.01" x="-0.025" y="-0.0006" />
<right-front-bottom-point z="0.01" x="0.025" y="-0.0006" />
</cuboid>
<algebra val="shape" />
</type>
<!-- ================LINEAR DETECTOR END-==================================== -->
<!-- other components -->
<component type="slit" name="slit1">
<location z="-2.236"/>
<!-- This log file stores the vertical opening of slit -->
<parameter name="vertical gap">
<logfile id="S1_VG" extract-single-value-as="last_value" />
</parameter>
<parameter name="y">
<logfile id="S1_VG" eq="-value*0.001/2.0" extract-single-value-as="last_value" />
</parameter>
</component>
<component type="slit" name="slit2">
<location z="-0.313"/>
<!-- This log file stores the vertical opening of this. Note this
slit can also be translated in the z. However this info not stored
in log file since it is not used in the data analysis process. -->
<parameter name="vertical gap">
<logfile id="S2_VG" extract-single-value-as="last_value" />
</parameter>
</component>
<component type="slit" name="slit3">
<location z="1.163"/> <!-- x=23.0+0.960 -->
<!-- This log file stores the vertical opening of slit -->
<parameter name="vertical gap">
<logfile id="S3_VG" extract-single-value-as="last_value" />
</parameter>
</component>
<component type="slit" name="slit4">
<location z="2.663"/> <!-- x=23.0+2.445 -->
<!-- This log file stores the vertical opening of slit. Note this slit
is fixed to the point detector. -->
<parameter name="vertical gap">
<logfile id="S4_VG" extract-single-value-as="last_value" />
</parameter>
</component>
<type name="slit">
<percent-transparency val="50" />
<cuboid id="bottom">
<left-front-bottom-point z="0.0005" x="-0.025" y="-0.03" />
<left-front-top-point z="0.0005" x="-0.025" y="0.0" />
<left-back-bottom-point z="-0.0005" x="-0.025" y="-0.03" />
<right-front-bottom-point z="0.0005" x="0.025" y="-0.03" />
</cuboid>
</type>
<component type="supermirror">
<location z="28.52"/> <!-- x=32.0-3.480 -->
</component>
<type name="supermirror" />
<!-- DETECTOR and MONITOR ID LISTS -->
<idlist idname="monitor1">
<id val="1" />
</idlist>
<idlist idname="monitor2">
<id val="2" />
</idlist>
<idlist idname="monitor3">
<id val="3" />
</idlist>
<idlist idname="point-detector">
<id val="4" />
</idlist>
<!--
<idlist idname="linear-detector">
<id start="2001" end="2240" />
</idlist>
-->
</instrument>