Newer
Older
<?xml version="1.0" encoding="UTF-8"?>
<instrument name="CSP" valid-from ="1900-01-31 23:59:59"
valid-to ="2100-01-31 23:59:59"
last-modified="2010-11-04 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>
</defaults>
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
<!-- Definition of instrument specific parameters for data reduction (e.g. wavelength cutoffs etc.) , could go into paramter file
MonitorBackground= [7.4,7.9]
MonitorsToCorrect=[1]
PointDetectorStart=[0] # Note: Since we are removing the monitors in the load raw command they are not counted here.
PointDetectorStop=[0]
MultiDetectorStart=[1]
I0MonitorIndex=1
-->
<parameter name="MonitorBackgroundMin">
<value val="7.4"/>
</parameter>
<parameter name="MonitorBackgroundMax">
<value val="7.9"/>
</parameter>
<parameter name="MonitorsToCorrect">
<value val="1"/>
</parameter>
<parameter name="PointDetectorStart">
<value val="2"/>
</parameter>
<parameter name="PointDetectorStop">
<value val="2"/>
</parameter>
<parameter name="MultiDetectorStart">
<value val="1"/>
</parameter>
<parameter name="I0MonitorIndex">
<value val="1"/>
</parameter>
<parameter name="LambdaMin">
<value val="0.6"/>
</parameter>
<parameter name="LambdaMax">
<value val="6.5"/>
</parameter>
<!-- parameters for efficiency correction -->
<parameter name="a">
<value val="14.1959"/>
</parameter>
<parameter name="b">
<value val="-5.2411"/>
</parameter>
<parameter name="c">
<value val="-4.95285"/>
</parameter>
<parameter name="d">
<value val="10.0026"/>
</parameter>
<parameter name="e">
<value val="-6.46053"/>
</parameter>
<parameter name="f">
<value val="2.09739"/>
</parameter>
<parameter name="g">
<value val="-0.369305"/>
</parameter>
<parameter name="h">
<value val="0.0336969"/>
</parameter>
<parameter name="i">
<value val="-0.001250"/>
</parameter>
<!-- BRIEF DESCRIPTION OF CRISP INSTRUMENT:
Here Z=0 is defined by the neutron beam which slopes down at 1.5 deg.
from the horizon. This description is based on data provided by Tim
Charlton and Rob Dalgliesh.
Note from Tim spreedsheet
theta is a rotation about the y axis
phi is a rotation about the x axis
chi is a rotation about the z axis
Noticed the face of the monitors/detector shapes that faces the
beam/sample path is in this IDF defined to be the y-z plane.
Note the status of the instrument during a run is stored in the
logfile RunNo_status.txt
-->
<!-- LIST OF PHYSICAL COMPONENTS (which the instrument consists of) -->
<!-- detector components (including monitors) -->
<component type="monitor1" idlist="monitor1">
<location z="7.2055" mark-as="monitor" />
</component>
<type name="monitor1" is="detector">
<!-- Shape specified at least big enough to cover the beam which
is 10mm high and 40mm wide. Note it is described as tube, hence
the choice of a cylinder shape.
-->
<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>
<component type="monitor2" idlist="monitor2">
</component>
<type name="monitor2" is="detector">
<!-- Shape specified as a minimum needs to cover the beam which
is 10mm high and 40mm wide. The 'top' shape is included to
more easily recognise this monitor when visualised in MantidPlot.
This monitor is suppose to look a bit like a German hand grenade.
-->
<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>
<component type="point-detector" idlist="point-detector">
<location z="12.113" />
<!-- Link to log file that stores the z position. This angle can be used to
calculate the z position since the distance along the x-axis between
the sample and this detector is known (12.113-10.25=1.863). Also theta in the logfile is
assumed to in degrees, hence the reason for the pi/180=0.0174533 transformation
to radians factor in the eq attribute. -->
<parameter name="y">
<logfile id="theta" eq="1.863*sin(value*0.0174533)" />
</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>
<component type="linear-detector" idlist="linear-detector">
<!-- Link to log file that stores the z position -->
<parameter name="z">
<logfile id="linear_det_height" eq="0.001*value" extract-single-value-as="position 1" />
</parameter>
<properties>
Thin slabs 50mm wide, one for each spectrum 1.2 mm pixel pitch growing upward
</properties>
</component>
<type name="linear-detector">
<component type="linear-detector-pixel" >
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
<location y="0" />
<location y="0.0012" />
<location y="0.0024" />
<location y="0.0036" />
<location y="0.0048" />
<location y="0.006" />
<location y="0.0072" />
<location y="0.0084" />
<location y="0.0096" />
<location y="0.0108" />
<location y="0.012" />
<location y="0.0132" />
<location y="0.0144" />
<location y="0.0156" />
<location y="0.0168" />
<location y="0.018" />
<location y="0.0192" />
<location y="0.0204" />
<location y="0.0216" />
<location y="0.0228" />
<location y="0.024" />
<location y="0.0252" />
<location y="0.0264" />
<location y="0.0276" />
<location y="0.0288" />
<location y="0.03" />
<location y="0.0312" />
<location y="0.0324" />
<location y="0.0336" />
<location y="0.0348" />
<location y="0.036" />
<location y="0.0372" />
<location y="0.0384" />
<location y="0.0396" />
<location y="0.0408" />
<location y="0.042" />
<location y="0.0432" />
<location y="0.0444" />
<location y="0.0456" />
<location y="0.0468" />
<location y="0.048" />
<location y="0.0492" />
<location y="0.0504" />
<location y="0.0516" />
<location y="0.0528" />
<location y="0.054" />
<location y="0.0552" />
<location y="0.0564" />
<location y="0.0576" />
<location y="0.0588" />
<location y="0.06" />
<location y="0.0612" />
<location y="0.0624" />
<location y="0.0636" />
<location y="0.0648" />
<location y="0.066" />
<location y="0.0672" />
<location y="0.0684" />
<location y="0.0696" />
<location y="0.0708" />
<location y="0.072" />
<location y="0.0732" />
<location y="0.0744" />
<location y="0.0756000000000001" />
<location y="0.0768000000000001" />
<location y="0.0780000000000001" />
<location y="0.0792000000000001" />
<location y="0.0804000000000001" />
<location y="0.0816000000000001" />
<location y="0.0828000000000001" />
<location y="0.0840000000000001" />
<location y="0.0852000000000001" />
<location y="0.0864000000000001" />
<location y="0.0876000000000001" />
<location y="0.0888000000000001" />
<location y="0.0900000000000001" />
<location y="0.0912000000000001" />
<location y="0.0924000000000001" />
<location y="0.0936000000000002" />
<location y="0.0948000000000002" />
<location y="0.0960000000000002" />
<location y="0.0972000000000002" />
<location y="0.0984000000000002" />
<location y="0.0996000000000002" />
<location y="0.1008" />
<location y="0.102" />
<location y="0.1032" />
<location y="0.1044" />
<location y="0.1056" />
<location y="0.1068" />
<location y="0.108" />
<location y="0.1092" />
<location y="0.1104" />
<location y="0.1116" />
<location y="0.1128" />
<location y="0.114" />
<location y="0.1152" />
<location y="0.1164" />
<location y="0.1176" />
<location y="0.1188" />
<location y="0.12" />
<location y="0.1212" />
<location y="0.1224" />
<location y="0.1236" />
<location y="0.1248" />
<location y="0.126" />
<location y="0.1272" />
<location y="0.1284" />
<location y="0.1296" />
<location y="0.1308" />
<location y="0.132" />
<location y="0.1332" />
<location y="0.1344" />
<location y="0.1356" />
<location y="0.1368" />
<location y="0.138" />
<location y="0.1392" />
<location y="0.1404" />
<location y="0.1416" />
<location y="0.1428" />
<location y="0.144" />
<location y="0.1452" />
<location y="0.1464" />
<location y="0.1476" />
<location y="0.1488" />
<location y="0.15" />
<location y="0.1512" />
<location y="0.1524" />
<location y="0.1536" />
<location y="0.1548" />
<location y="0.156" />
<location y="0.157200000000001" />
<location y="0.158400000000001" />
<location y="0.159600000000001" />
<location y="0.160800000000001" />
<location y="0.162000000000001" />
<location y="0.163200000000001" />
<location y="0.164400000000001" />
<location y="0.165600000000001" />
<location y="0.166800000000001" />
<location y="0.168000000000001" />
<location y="0.169200000000001" />
<location y="0.170400000000001" />
<location y="0.171600000000001" />
<location y="0.172800000000001" />
<location y="0.174000000000001" />
<location y="0.175200000000001" />
<location y="0.176400000000001" />
<location y="0.177600000000001" />
<location y="0.178800000000001" />
<location y="0.180000000000001" />
<location y="0.181200000000001" />
<location y="0.182400000000001" />
<location y="0.183600000000001" />
<location y="0.184800000000001" />
<location y="0.186000000000001" />
<location y="0.187200000000001" />
<location y="0.188400000000001" />
<location y="0.189600000000001" />
<location y="0.190800000000001" />
<location y="0.192000000000001" />
<location y="0.193200000000001" />
<location y="0.194400000000001" />
<location y="0.195600000000001" />
<location y="0.196800000000001" />
<location y="0.198000000000001" />
<location y="0.199200000000001" />
<location y="0.200400000000001" />
<location y="0.201600000000001" />
<location y="0.202800000000001" />
<location y="0.204000000000001" />
<location y="0.205200000000001" />
<location y="0.206400000000001" />
<location y="0.207600000000001" />
<location y="0.208800000000001" />
<location y="0.210000000000001" />
<location y="0.211200000000001" />
<location y="0.212400000000001" />
<location y="0.213600000000001" />
<location y="0.214800000000001" />
<location y="0.216000000000001" />
<location y="0.217200000000001" />
<location y="0.218400000000001" />
<location y="0.219600000000001" />
<location y="0.220800000000001" />
<location y="0.222000000000001" />
<location y="0.223200000000001" />
<location y="0.224400000000001" />
<location y="0.225600000000001" />
<location y="0.226800000000001" />
<location y="0.228000000000001" />
<location y="0.229200000000001" />
<location y="0.230400000000001" />
<location y="0.231600000000001" />
<location y="0.232800000000001" />
<location y="0.234000000000001" />
<location y="0.235200000000001" />
<location y="0.236400000000001" />
<location y="0.237600000000001" />
<location y="0.238800000000001" />
<location y="0.240000000000001" />
<location y="0.241200000000001" />
<location y="0.242400000000001" />
<location y="0.243600000000001" />
<location y="0.244800000000001" />
<location y="0.246000000000001" />
<location y="0.247200000000001" />
<location y="0.248400000000001" />
<location y="0.249600000000001" />
<location y="0.250800000000001" />
<location y="0.252000000000001" />
<location y="0.253200000000001" />
<location y="0.254400000000001" />
<location y="0.255600000000001" />
<location y="0.256800000000001" />
<location y="0.258000000000001" />
<location y="0.259200000000001" />
<location y="0.260400000000001" />
<location y="0.261600000000001" />
<location y="0.262800000000001" />
<location y="0.264000000000001" />
<location y="0.265200000000001" />
<location y="0.266400000000001" />
<location y="0.267600000000001" />
<location y="0.268800000000001" />
<location y="0.270000000000001" />
<location y="0.271200000000001" />
<location y="0.272400000000001" />
<location y="0.273600000000001" />
<location y="0.274800000000001" />
<location y="0.276000000000001" />
<location y="0.277200000000001" />
<location y="0.278400000000001" />
<location y="0.279600000000001" />
<location y="0.2808" />
<location y="0.282" />
<location y="0.2832" />
<location y="0.2844" />
<location y="0.2856" />
<location y="0.2868" />
</component>
</type>
<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>
<!-- source and sample-position components -->
<component type="source">
<location />
</component>
<type name="source" is="Source">
<properties>
10mm(H) x 40mm(W)
</properties>
</type>
<component type="some-surface-holder">
<!-- worry about linking relevant logfiles for y,z,theta,phi up later -->
</component>
<type name="some-surface-holder" is="SamplePos">
</type>
<!-- other components -->
<component type="slit1">
<!-- This log file stores the vertical opening of slit -->
<parameter name="opening height">
<logfile id="s1" extract-single-value-as="position 1" />
</parameter>
</component>
<component type="slit2">
<!-- 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="opening height">
<logfile id="s2" extract-single-value-as="position 1" />
</parameter>
</component>
<component type="slit3">
<!-- This log file stores the vertical opening of slit -->
<parameter name="opening height">
<logfile id="s3" extract-single-value-as="position 1" />
</parameter>
</component>
<component type="slit4">
<!-- This log file stores the vertical opening of slit. Note this slit
is fixed to the point detector. -->
<parameter name="opening height">
<logfile id="s4" extract-single-value-as="position 1" />
</parameter>
</component>
<type name="slit1"></type>
<type name="slit2"></type>
<type name="slit3"></type>
<type name="slit4"></type>
<component type="supermirror">
<!-- Worry about linking relevant logfiles for z,theta up later -->
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
</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="point-detector">
<id val="3" />
</idlist>
<idlist idname="linear-detector">
<id start="6" end="125" />
<id start="134" end="253" />
</idlist>
</instrument>