<?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-2020 NeXus International Advisory Committee (NIAC)
# 
# 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 xmlns="http://definition.nexusformat.org/nxdl/3.1" category="base"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd"
    name="NXmoderator" 
	type="group" extends="NXobject">
    <doc>A neutron moderator</doc>
    <group type="NXgeometry">
        <doc>"Engineering" position of moderator</doc>
    </group>
    <field name="distance" type="NX_FLOAT" units="NX_LENGTH">
        <doc>Effective distance as seen by measuring radiation</doc>
    </field>
    <field name="type">
        <enumeration>
            <item value="H20"/>
            <item value="D20"/>
            <item value="Liquid H2"/>
            <item value="Liquid CH4"/>
            <item value="Liquid D2"/>
            <item value="Solid D2"/>
            <item value="C"/>
            <item value="Solid CH4"/>
            <item value="Solid H2"/>
        </enumeration>
    </field>
    <field name="poison_depth" type="NX_FLOAT" units="NX_LENGTH"/>
    <field name="coupled" type="NX_BOOLEAN">
        <doc>whether the moderator is coupled</doc>
    </field>
    <field name="coupling_material">
        <doc>The material used for coupling. Usually Cd.</doc>
    </field>
    <field name="poison_material">
        <enumeration>
            <item value="Gd"/>
            <item value="Cd"/>
        </enumeration>
    </field>
    <field name="temperature" type="NX_FLOAT" units="NX_TEMPERATURE">
        <doc>average/nominal moderator temperature</doc>
    </field>
    <group type="NXlog" name="temperature_log">
        <doc>log file of moderator temperature</doc>
    </group>
    <group type="NXdata" name="pulse_shape">
        <doc>moderator pulse shape</doc>
    </group>
</definition>

