From 57b02d0bbb6fd405cd98e48b99687d728090a4b9 Mon Sep 17 00:00:00 2001
From: Marina Ganeva <m.ganeva@fz-juelich.de>
Date: Thu, 22 Jan 2015 10:22:09 +0100
Subject: [PATCH] MLZ facility and draft IDF for DNS PA bank added.

---
 .../instrument/DNS_Definition_PAonly.xml      | 82 +++++++++++++++++++
 Code/Mantid/instrument/Facilities.xml         | 10 +++
 2 files changed, 92 insertions(+)
 create mode 100644 Code/Mantid/instrument/DNS_Definition_PAonly.xml

diff --git a/Code/Mantid/instrument/DNS_Definition_PAonly.xml b/Code/Mantid/instrument/DNS_Definition_PAonly.xml
new file mode 100644
index 00000000000..d39aac79c9c
--- /dev/null
+++ b/Code/Mantid/instrument/DNS_Definition_PAonly.xml
@@ -0,0 +1,82 @@
+<?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="DNS" valid-from="1900-01-31 23:59:59" valid-to="2100-01-31 23:59:59" last-modified="2015-01-22 09:17:17">
+  <!-- Author: m.ganeva@fz-juelich.de -->
+  <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>
+  <component type="moderator">
+    <location z="-2" />
+  </component>
+  <type name="moderator" is="Source"></type>
+  <!-- Sample position -->
+  <component type="sample-position">
+    <location y="0.0" x="0.0" z="0.0" />
+  </component>
+  <type name="sample-position" is="SamplePos" />
+  <idlist idname="detectors">
+    <id start="1" end="24" />
+  </idlist>
+  <!-- Detector list def -->
+  <component type="detectors" idlist="detectors">
+    <location />
+  </component>
+  <!-- Detector Banks -->
+  <type name="detectors">
+    <component type="bank_uniq">
+      <location />
+    </component>
+  </type>
+  <!-- Definition of the unique existent bank (made of tubes) -->
+  <type name="bank_uniq">
+    <component type="standard_tube">
+      <location r="0.800000" t="115.000000" name="tube_1" />
+      <location r="0.800000" t="110.000000" name="tube_2" />
+      <location r="0.800000" t="105.000000" name="tube_3" />
+      <location r="0.800000" t="100.000000" name="tube_4" />
+      <location r="0.800000" t="95.000000" name="tube_5" />
+      <location r="0.800000" t="90.000000" name="tube_6" />
+      <location r="0.800000" t="85.000000" name="tube_7" />
+      <location r="0.800000" t="80.000000" name="tube_8" />
+      <location r="0.800000" t="75.000000" name="tube_9" />
+      <location r="0.800000" t="70.000000" name="tube_10" />
+      <location r="0.800000" t="65.000000" name="tube_11" />
+      <location r="0.800000" t="60.000000" name="tube_12" />
+      <location r="0.800000" t="55.000000" name="tube_13" />
+      <location r="0.800000" t="50.000000" name="tube_14" />
+      <location r="0.800000" t="45.000000" name="tube_15" />
+      <location r="0.800000" t="40.000000" name="tube_16" />
+      <location r="0.800000" t="35.000000" name="tube_17" />
+      <location r="0.800000" t="30.000000" name="tube_18" />
+      <location r="0.800000" t="25.000000" name="tube_19" />
+      <location r="0.800000" t="20.000000" name="tube_20" />
+      <location r="0.800000" t="15.000000" name="tube_21" />
+      <location r="0.800000" t="10.000000" name="tube_22" />
+      <location r="0.800000" t="5.000000" name="tube_23" />
+      <location r="0.800000" t="0.000000" name="tube_24" />
+    </component>
+  </type>
+  <!-- Definition of standard_tube -->
+  <type name="standard_tube" outline="yes">
+    <component type="standard_pixel">
+      <location y="-0.075000" />
+    </component>
+  </type>
+  <type name="standard_pixel" is="detector">
+    <cylinder id="shape">
+      <centre-of-bottom-base x="0.0" y="-0.006144" z="0.0" />
+      <axis x="0.0" y="1.0" z="0.0" />
+      <radius val="0.0127" />
+      <height val=".15" />
+    </cylinder>
+    <algebra val="shape" />
+  </type>
+</instrument>
diff --git a/Code/Mantid/instrument/Facilities.xml b/Code/Mantid/instrument/Facilities.xml
index 5b7c6c8b41a..c32125cffa2 100644
--- a/Code/Mantid/instrument/Facilities.xml
+++ b/Code/Mantid/instrument/Facilities.xml
@@ -627,6 +627,16 @@
   </instrument>
 </facility>
 
+<!--  Facility MLZ (FRMII) (Germany) -->
+<facility name="MLZ" FileExtensions=".nxs,.d_dat">
+  <instrument name="DNS">
+    <technique>Neutron Spectroscopy</technique> 
+    <technique>Reactor Direct Geometry Spectroscopy</technique>
+    <technique>Neutron Diffraction</technique>
+    <technique>Single Crystal Diffraction</technique>
+  </instrument>
+</facility>
+
 <!--  Test Facility to allow example usage of Live listeners against "Fake" instrument sources -->
 <facility name="TEST_LIVE" FileExtensions=".nxs,.raw">
   <instrument name="ISIS_Histogram">
-- 
GitLab