Newer
Older
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="nxdlformat.xsl" ?>
<!--
# NeXus - Neutron and X-ray Common Data Format
#
# Copyright (C) 2008-2016 NeXus International Advisory Committee (NIAC)
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
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# For further information, see http://www.nexusformat.org
-->
<definition name="NXtofraw" extends="NXobject" type="group"
category="application"
xmlns="http://definition.nexusformat.org/nxdl/3.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd"
version="1.0b"
>
<doc>This is an application definition for raw data from a generic TOF instrument</doc>
<group type="NXentry" name="entry">
<field name="title" />
<field name="start_time" type="NX_DATE_TIME" />
<field name="definition">
<doc> Official NeXus NXDL schema to which this file conforms </doc>
<enumeration>
<item value="NXtofraw"></item>
</enumeration>
</field>
<field name="duration" type="NX_FLOAT"></field>
<field name="run_number" type="NX_INT"></field>
<field name="pre_sample_flightpath" type="NX_FLOAT"
units="NX_LENGTH">
<doc>
This is the flight path before the sample position. This can be determined by a chopper,
by the moderator, or the source itself. In other words: it is the distance to the component
which gives the T0 signal to the detector electronics. If another component in the
NXinstrument hierarchy provides this information, this should be a link.
</doc>
</field>
<group type="NXuser" name="user">
<field name="name" type="NX_CHAR"></field></group>
<group type="NXinstrument" name="instrument">
<group type="NXdetector" name="detector">
<field name="data" type="NX_INT" signal="1">
<dimensions rank="2">
<dim index="1" value="ndet" />
<dim index="2" value="ntimechan" />
</dimensions>
</field>
<field name="detector_number" type="NX_INT" axis="2">
<dimensions rank="1">
<dim index="1" value="ndet" />
</dimensions>
</field>
<field name="distance" type="NX_FLOAT" units="NX_LENGTH">
<doc>distance to sample for each detector</doc>
<dimensions rank="1">
<dim index="1" value="ndet" />
</dimensions>
</field>
<field name="time_of_flight" type="NX_FLOAT"
units="NX_TIME_OF_FLIGHT" axis="1">
<dimensions rank="1">
<dim index="1" value="ntimechan" />
</dimensions>
</field>
<field name="polar_angle" type="NX_FLOAT" units="NX_ANGLE">
<doc>polar angle for each detector element</doc>
<dimensions rank="1">
<dim index="1" value="ndet"></dim>
</dimensions>
</field>
<field name="azimuthal_angle" type="NX_FLOAT"
units="NX_ANGLE">
<doc>polar angle for each detector element</doc>
<dimensions rank="1">
<dim index="1" value="ndet"></dim>
</dimensions>
</field>
</group>
</group>
<group type="NXsample">
<field name="name">
<doc>Descriptive name of sample</doc>
</field>
<field name="nature" type="NX_CHAR">
<enumeration>
<item value="powder"></item>
<item value="liquid"></item>
<item value="single crystal"></item>
</enumeration></field>
</group>
<group type="NXmonitor">
<field name="mode">
<doc>
Count to a preset value based on either clock time (timer)
or received monitor counts (monitor).
</doc>
<enumeration>
<item value="monitor" />
<item value="timer" />
</enumeration>
</field>
<field name="preset" type="NX_FLOAT">
<doc>preset value for time or monitor</doc>
</field>
<field name="distance" type="NX_FLOAT" units="NX_LENGTH"></field>
<field name="data" type="NX_INT" signal="1">
<dimensions rank="1">
<dim index="1" value="ntimechan" /></dimensions></field>
<field name="time_of_flight" type="NX_FLOAT"
units="NX_TIME_OF_FLIGHT" axis="1">
<dimensions rank="1">
<dim index="1" value="ntimechan" /></dimensions>
</field>
<field name="integral_counts" type="NX_INT" units="NX_UNITLESS"></field>
</group>
<group type="NXdata" name="data">
<link name="data" target="/NXentry/NXinstrument/NXdetector/data"></link>
<link name="detector_number" target="/NXentry/NXinstrument/NXdetector/detector_number"></link>
<link name="time_of_flight" target="/NXentry/NXinstrument/NXdetector/time_of_flight"></link>
</group>
</group>
</definition>