Skip to content
Snippets Groups Projects
D33_Definition.xml 5.02 KiB
Newer Older
<?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 xmlns="http://www.mantidproject.org/IDF/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mantidproject.org/IDF/1.0 http://schema.mantidproject.org/IDF/1.0/IDFSchema.xsd"
name="D33" valid-from="1900-01-31 23:59:59" valid-to="2100-01-31 23:59:59"
last-modified="2014-01-30 20:51:16">
  <!-- Author: ricardo.leal@ill.fr -->
  <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>
  </defaults>
  <!--Moderator -->
  <component type="moderator">
    <location z="-22" />
  </component>
  <type name="moderator" is="Source"></type>
  <!--MONITORS-->
  <component type="monitors" idlist="monitors">
    <location />
  </component>
  <type name="monitors">
    <component type="monitor">
      <location z="-16.700" name="monitor1" />
      <location z="-1.200" name="monitor2" />
    </component>
  </type>
  <!-- Sample position -->
  <component type="sample-position">
    <location y="0.0" x="0.0" z="0.0" />
  </component>
  <type name="sample-position" is="SamplePos" />
  <component type="detectors">
    <location />
  </component>
  <!-- Detector Panels -->
  <type name="detectors">
    <component type="back_detector" idstart="1" idfillbyfirst="y" idstep="256"
    idstepbyrow="1">
      <location z='3' />
    </component>
    <component type="front_detector_right" idstart="32769" idfillbyfirst="y"
    idstep="256" idstepbyrow="1">
      <location x='0.4' y='0' z='1' rot="90.0" axis-x="0.0" axis-y="0.0"
      axis-z="1.0" />
    </component>
    <component type="front_detector_left" idstart="40961" idfillbyfirst="y"
    idstep="256" idstepbyrow="1">
      <location x='-0.4' y='0' z='1' rot="90.0" axis-x="0.0" axis-y="0.0"
      axis-z="1.0" />
    </component>
    <component type="front_detector_bottom" idstart="49153" idfillbyfirst="y"
    idstep="256" idstepbyrow="1">
      <location x='0' y='-0.4' z='1' />
    </component>
    <component type="front_detector_top" idstart="57345" idfillbyfirst="y"
    idstep="256" idstepbyrow="1">
      <location x='0' y='0.4' z='1' />
    </component>
  </type>
  <!-- Definition of every bank -->
  <!-- Back detector: 640 x 640 mm -->
  <type name="back_detector" is="rectangular_detector"
  type="pixel_rectangular_vertical" xpixels="256" xstart="0.318750"
  xstep="-0.002500" ypixels="128" ystart="-0.317500" ystep="0.005000">
    <properties />
  </type>
  <!-- Front detectors -->
  <type name="front_detector_right" is="rectangular_detector"
  type="pixel_rectangular_vertical" xpixels="256" xstart="-0.318750"
  xstep="0.002500" ypixels="32" ystart="-0.077500" ystep="0.005000">
    <properties />
  </type>
  <type name="front_detector_left" is="rectangular_detector"
  type="pixel_rectangular_vertical" xpixels="256" xstart="-0.318750"
  xstep="0.002500" ypixels="32" ystart="-0.077500" ystep="0.005000">
    <properties />
  </type>
  <type name="front_detector_bottom" is="rectangular_detector"
  type="pixel_rectangular_vertical" xpixels="256" xstart="0.318750"
  xstep="-0.002500" ypixels="32" ystart="-0.077500" ystep="0.005000">
    <properties />
  </type>
  <type name="front_detector_top" is="rectangular_detector"
  type="pixel_rectangular_vertical" xpixels="256" xstart="0.318750"
  xstep="-0.002500" ypixels="32" ystart="-0.077500" ystep="0.005000">
    <properties />
  </type>
  <!--MONITOR SHAPE-->
  <!--FIXME: Do something real here.-->
  <type is="monitor" name="monitor">
    <cylinder id="cyl-approx">
      <centre-of-bottom-base y="0.0" x="0.0" z="0.0" />
      <axis y="0.0" x="0.0" z="1.0" />
      <radius val="0.01" />
      <height val="0.03" />
    </cylinder>
    <algebra val="cyl-approx" />
  </type>
  <!--MONITOR IDs-->
  <idlist idname="monitors">
    <id val="-1" />
    <id val="0" />
  </idlist>
  <!-- Pixel for Detectors: 2.5x5 mm -->
  <type is="detector" name="pixel_rectangular_horizontal">
    <cuboid id="pixel-shape">
      <left-front-bottom-point y="-0.0025" x="-0.00125" z="0.0" />
      <left-front-top-point y="0.0025" x="-0.00125" z="0.0" />
      <left-back-bottom-point y="-0.0025" x="-0.00125" z="-0.0001" />
      <right-front-bottom-point y="-0.0025" x="0.00125" z="0.0" />
    </cuboid>
    <algebra val="pixel-shape" />
  </type>
  <!-- Pixel for Detectors: 5x2.5 mm -->
  <type is="detector" name="pixel_rectangular_vertical">
    <cuboid id="pixel-shape">
      <left-front-bottom-point y="-0.00125" x="-0.0025" z="0.0" />
      <left-front-top-point y="0.00125" x="-0.0025" z="0.0" />
      <left-back-bottom-point y="-0.00125" x="-0.0025" z="-0.0001" />
      <right-front-bottom-point y="-0.00125" x="0.0025" z="0.0" />
    </cuboid>
    <algebra val="pixel-shape" />
  </type>
</instrument>