forked from npshub/mantid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sans_Definition_template.txt
94 lines (73 loc) · 2.77 KB
/
sans_Definition_template.txt
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
<?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 name="%instrument_name%" valid-from ="1900-01-31 23:59:59"
valid-to ="2100-01-31 23:59:59"
last-modified="%last_modified%">
<!-- TEST DEFINITION: NOT READY FOR SHOW TIME -->
<defaults>
<length unit="meter"/>
<angle unit="degree"/>
<reference-frame>
<!-- The z-axis is set parallel to and in the direction of the beam. the
y-axis points up and the coordinate system is right handed. -->
<along-beam axis="z"/>
<pointing-up axis="y"/>
<handedness val="right"/>
</reference-frame>
<default-view axis-view="z-"/>
</defaults>
<!-- LIST OF PHYSICAL COMPONENTS (which the instrument consists of) -->
<!-- source and sample-position components
Place the beam along the z-axis, the sample holder at (0,0,0) -->
<component type="source">
<location x="0.0" y="0.0" z="-1.0"/>
</component>
<type name="source" is="Source" />
<component type="some-sample-holder">
<location x="0.0" y="0.0" z="0.0"/>
</component>
<type name="some-sample-holder" is="SamplePos" />
<!-- detector components (including monitors) -->
<component type="monitor1" idlist="monitor1">
<location z="-0.5"/>
</component>
<type name="monitor1" is="monitor" />
<component type="timer1" idlist="timer1">
<location z="-0.5" />
</component>
<type name="timer1" is="monitor" />
<component type="sample_aperture">
<location z="0.0"/>
<parameter name="Size"> <value val="14.0" /> </parameter>
</component>
<type name="sample_aperture" />
<component type="detector-bank" name="detector1" idlist="det1">
<location x="0.0" y="0.0" z="0.0" />
</component>
<type name="detector-bank">
<component type="pixel" >
%pixel_positions%
</component>
</type>
<type name="pixel" is="detector">
<cuboid id="shape">
<left-front-bottom-point x="%pixel_left_front_bottom_x%" y="%pixel_left_front_bottom_y%" z="0.0" />
<left-front-top-point x="%pixel_left_front_top_x%" y="%pixel_left_front_top_y%" z="0.0" />
<left-back-bottom-point x="%pixel_left_back_bottom_x%" y="%pixel_left_back_bottom_y%" z="-0.000005" />
<right-front-bottom-point x="%pixel_right_front_bottom_x%" y="%pixel_right_front_bottom_y%" z="0.0" />
</cuboid>
<algebra val="shape" />
</type>
<!-- DETECTOR and MONITOR ID LISTS -->
<idlist idname="det1">
%pixels_ids%
</idlist>
<!-- DETECTOR and MONITOR ID LISTS -->
<idlist idname="monitor1">
<id val="1" />
</idlist>
<idlist idname="timer1">
<id val="2" />
</idlist>
</instrument>