<?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="NXxraylens"
    type="group" extends="NXobject">

    <doc>
      An X-ray lens, typically at a synchrotron X-ray beam line.
      
      Based on information provided by Gerd Wellenreuther (DESY).
      </doc>
    <field name="lens_geometry" type="NX_CHAR">
        <doc>Geometry of the lens</doc>
        <enumeration>
          <item value="paraboloid"/>
          <item value="spherical"/>
          <item value="elliptical"/>
          <item value="hyperbolical"/>
        </enumeration>
    </field>
    <field name="symmetric" type="NX_BOOLEAN">
      <doc>
        Is the device symmetric? 
      </doc>
    </field>
    <field name="cylindrical" type="NX_BOOLEAN">
      <doc>
        Is the device cylindrical? 
      </doc>
    </field>
    <group name="cylinder_orientation" type="NXnote">
      <doc>
        Orientation of the cylinder axis.
      </doc>
    </group>
    <field name="focus_type" type="NX_CHAR">
      <doc>
        The type of focus of the lens
      </doc>
        <enumeration>
           <item value="line"/>
           <item value="point"/>
        </enumeration>
    </field>
    <field name="lens_thickness" type="NX_FLOAT" units="NX_LENGTH">
      <doc>Thickness of the lens</doc>
    </field>
    <field name="lens_length" type="NX_FLOAT" units="NX_LENGTH">
      <doc>Length of the lens</doc>
    </field>
    <field name="curvature" type="NX_FLOAT" units="NX_LENGTH">
      <doc>Radius of the curvature as measured in the middle of the lens</doc>
    </field>
    <field name="aperture" type="NX_FLOAT" units="NX_LENGTH">
      <doc>Diameter of the lens.</doc>
    </field>
    <field name="number_of_lenses" type="NX_INT">
      <doc>Number of lenses that make up the compound lens.</doc>
    </field>
    <field name="lens_material" type="NX_CHAR">
      <doc>Material used to make the lens.</doc>
    </field>
    <field name="gas" type="NX_CHAR">
      <doc>Gas used to fill the lens</doc>
    </field>
    <field name="gas_pressure" type="NX_FLOAT" units="NX_PRESSURE">
      <doc>Gas pressure in the lens</doc>
    </field>
 </definition>
