From daf2f660d5b095c390590428f43eb22dca295e2f Mon Sep 17 00:00:00 2001
From: Andrei Savici <saviciat@ornl.gov>
Date: Mon, 17 Aug 2015 14:58:57 -0400
Subject: [PATCH] New CNCS geometry. Refs #13413

---
 Code/Mantid/instrument/CNCS_Definition.xml    | 102 +--
 .../CNCS_Definition_20150130-20150731.xml     | 729 ++++++++++++++++++
 2 files changed, 780 insertions(+), 51 deletions(-)
 create mode 100644 Code/Mantid/instrument/CNCS_Definition_20150130-20150731.xml

diff --git a/Code/Mantid/instrument/CNCS_Definition.xml b/Code/Mantid/instrument/CNCS_Definition.xml
index aeb05226953..51927d54be9 100644
--- a/Code/Mantid/instrument/CNCS_Definition.xml
+++ b/Code/Mantid/instrument/CNCS_Definition.xml
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='ASCII'?>
-<instrument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.mantidproject.org/IDF/1.0" last-modified="2015-01-30 16:42:36.216202" name="CNCS" valid-from="2015-01-30 00:00:00" valid-to="2100-01-31 23:59:59" xsi:schemaLocation="http://www.mantidproject.org/IDF/1.0 Schema/IDFSchema.xsd">
+<instrument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.mantidproject.org/IDF/1.0" last-modified="2015-08-17 14:50:39.469748" name="CNCS" valid-from="2015-08-01 00:00:00" valid-to="2100-01-31 23:59:59" xsi:schemaLocation="http://www.mantidproject.org/IDF/1.0 http://schema.mantidproject.org/IDF/1.0/IDFSchema.xsd">
   <!--Created by Michael Reuter-->
   <defaults>
     <length unit="metre"/>
@@ -187,350 +187,350 @@
   </type>
   <type name="bank1">
     <component type="eightpack">
-      <location x="2.61865" y="0.0" z="-2.27917">
+      <location x="2.63849" y="0.0" z="-2.29644">
         <rot axis-x="0" axis-y="1" axis-z="0" val="311.035"/>
       </location>
     </component>
   </type>
   <type name="bank2">
     <component type="eightpack">
-      <location x="2.76078" y="0.0" z="-2.11421">
+      <location x="2.77661" y="0.0" z="-2.12633">
         <rot axis-x="0" axis-y="1" axis-z="0" val="307.445"/>
       </location>
     </component>
   </type>
   <type name="bank3">
     <component type="eightpack">
-      <location x="2.88682" y="0.0" z="-1.93657">
+      <location x="2.90095" y="0.0" z="-1.94605">
         <rot axis-x="0" axis-y="1" axis-z="0" val="303.855"/>
       </location>
     </component>
   </type>
   <type name="bank4">
     <component type="eightpack">
-      <location x="3.00841" y="0.0" z="-1.75551">
+      <location x="3.02106" y="0.0" z="-1.76289">
         <rot axis-x="0" axis-y="1" axis-z="0" val="300.265"/>
       </location>
     </component>
   </type>
   <type name="bank5">
     <component type="eightpack">
-      <location x="3.1118" y="0.0" z="-1.56337">
+      <location x="3.12465" y="0.0" z="-1.56983">
         <rot axis-x="0" axis-y="1" axis-z="0" val="296.675"/>
       </location>
     </component>
   </type>
   <type name="bank6">
     <component type="eightpack">
-      <location x="3.20565" y="0.0" z="-1.36634">
+      <location x="3.2183" y="0.0" z="-1.37173">
         <rot axis-x="0" axis-y="1" axis-z="0" val="293.085"/>
       </location>
     </component>
   </type>
   <type name="bank7">
     <component type="eightpack">
-      <location x="3.28608" y="0.0" z="-1.16334">
+      <location x="3.29715" y="0.0" z="-1.16726">
         <rot axis-x="0" axis-y="1" axis-z="0" val="289.495"/>
       </location>
     </component>
   </type>
   <type name="bank8">
     <component type="eightpack">
-      <location x="3.34352" y="0.0" z="-0.952742">
+      <location x="3.36295" y="0.0" z="-0.95828">
         <rot axis-x="0" axis-y="1" axis-z="0" val="285.905"/>
       </location>
     </component>
   </type>
   <type name="bank9">
     <component type="eightpack">
-      <location x="3.38894" y="0.0" z="-0.739838">
+      <location x="3.41642" y="0.0" z="-0.74584">
         <rot axis-x="0" axis-y="1" axis-z="0" val="282.315"/>
       </location>
     </component>
   </type>
   <type name="bank10">
     <component type="eightpack">
-      <location x="3.42736" y="0.0" z="-0.52599">
+      <location x="3.45681" y="0.0" z="-0.53051">
         <rot axis-x="0" axis-y="1" axis-z="0" val="278.725"/>
       </location>
     </component>
   </type>
   <type name="bank11">
     <component type="eightpack">
-      <location x="3.45894" y="0.0" z="-0.310832">
+      <location x="3.47705" y="0.0" z="-0.31246">
         <rot axis-x="0" axis-y="1" axis-z="0" val="275.135"/>
       </location>
     </component>
   </type>
   <type name="bank12">
     <component type="eightpack">
-      <location x="3.48182" y="0.0" z="-0.093911">
+      <location x="3.49549" y="0.0" z="-0.09428">
         <rot axis-x="0" axis-y="1" axis-z="0" val="271.545"/>
       </location>
     </component>
   </type>
   <type name="bank13">
     <component type="eightpack">
-      <location x="3.4906" y="0.0" z="0.124639">
+      <location x="3.49601" y="0.0" z="0.12483">
         <rot axis-x="0" axis-y="1" axis-z="0" val="267.955"/>
       </location>
     </component>
   </type>
   <type name="bank14">
     <component type="eightpack">
-      <location x="3.47923" y="0.0" z="0.343287">
+      <location x="3.48266" y="0.0" z="0.34363">
         <rot axis-x="0" axis-y="1" axis-z="0" val="264.365"/>
       </location>
     </component>
   </type>
   <type name="bank15">
     <component type="eightpack">
-      <location x="3.4502" y="0.0" z="0.560356">
+      <location x="3.45253" y="0.0" z="0.56073">
         <rot axis-x="0" axis-y="1" axis-z="0" val="260.775"/>
       </location>
     </component>
   </type>
   <type name="bank16">
     <component type="eightpack">
-      <location x="3.40653" y="0.0" z="0.774882">
+      <location x="3.41025" y="0.0" z="0.77573">
         <rot axis-x="0" axis-y="1" axis-z="0" val="257.185"/>
       </location>
     </component>
   </type>
   <type name="bank17">
     <component type="eightpack">
-      <location x="3.35209" y="0.0" z="0.986891">
+      <location x="3.35477" y="0.0" z="0.98768">
         <rot axis-x="0" axis-y="1" axis-z="0" val="253.595"/>
       </location>
     </component>
   </type>
   <type name="bank18">
     <component type="eightpack">
-      <location x="3.2853" y="0.0" z="1.19543">
+      <location x="3.28769" y="0.0" z="1.1963">
         <rot axis-x="0" axis-y="1" axis-z="0" val="250.005"/>
       </location>
     </component>
   </type>
   <type name="bank19">
     <component type="eightpack">
-      <location x="3.20508" y="0.0" z="1.39927">
+      <location x="3.20685" y="0.0" z="1.40004">
         <rot axis-x="0" axis-y="1" axis-z="0" val="246.415"/>
       </location>
     </component>
   </type>
   <type name="bank20">
     <component type="eightpack">
-      <location x="3.11035" y="0.0" z="1.59679">
+      <location x="3.11124" y="0.0" z="1.59725">
         <rot axis-x="0" axis-y="1" axis-z="0" val="242.825"/>
       </location>
     </component>
   </type>
   <type name="bank21">
     <component type="eightpack">
-      <location x="3.0034" y="0.0" z="1.7879">
+      <location x="3.00392" y="0.0" z="1.78821">
         <rot axis-x="0" axis-y="1" axis-z="0" val="239.235"/>
       </location>
     </component>
   </type>
   <type name="bank22">
     <component type="eightpack">
-      <location x="2.88564" y="0.0" z="1.97251">
+      <location x="2.888" y="0.0" z="1.97413">
         <rot axis-x="0" axis-y="1" axis-z="0" val="235.645"/>
       </location>
     </component>
   </type>
   <type name="bank23">
     <component type="eightpack">
-      <location x="2.75681" y="0.0" z="2.1496">
+      <location x="2.75727" y="0.0" z="2.14996">
         <rot axis-x="0" axis-y="1" axis-z="0" val="232.055"/>
       </location>
     </component>
   </type>
   <type name="bank24">
     <component type="eightpack">
-      <location x="2.61368" y="0.0" z="2.31524">
+      <location x="2.61572" y="0.0" z="2.31704">
         <rot axis-x="0" axis-y="1" axis-z="0" val="228.465"/>
       </location>
     </component>
   </type>
   <type name="bank25">
     <component type="eightpack">
-      <location x="2.46263" y="0.0" z="2.4734">
+      <location x="2.46566" y="0.0" z="2.47644">
         <rot axis-x="0" axis-y="1" axis-z="0" val="224.875"/>
       </location>
     </component>
   </type>
   <type name="bank26">
     <component type="eightpack">
-      <location x="2.30747" y="0.0" z="2.62793">
+      <location x="2.30853" y="0.0" z="2.62914">
         <rot axis-x="0" axis-y="1" axis-z="0" val="221.285"/>
       </location>
     </component>
   </type>
   <type name="bank27">
     <component type="eightpack">
-      <location x="2.13842" y="0.0" z="2.76729">
+      <location x="2.13857" y="0.0" z="2.76748">
         <rot axis-x="0" axis-y="1" axis-z="0" val="217.695"/>
       </location>
     </component>
   </type>
   <type name="bank28">
     <component type="eightpack">
-      <location x="1.95965" y="0.0" z="2.89385">
+      <location x="1.96178" y="0.0" z="2.89699">
         <rot axis-x="0" axis-y="1" axis-z="0" val="214.105"/>
       </location>
     </component>
   </type>
   <type name="bank29">
     <component type="eightpack">
-      <location x="1.77371" y="0.0" z="3.00936">
+      <location x="1.77444" y="0.0" z="3.0106">
         <rot axis-x="0" axis-y="1" axis-z="0" val="210.515"/>
       </location>
     </component>
   </type>
   <type name="bank30">
     <component type="eightpack">
-      <location x="1.58375" y="0.0" z="3.11837">
+      <location x="1.58334" y="0.0" z="3.11756">
         <rot axis-x="0" axis-y="1" axis-z="0" val="206.925"/>
       </location>
     </component>
   </type>
   <type name="bank31">
     <component type="eightpack">
-      <location x="1.3854" y="0.0" z="3.21146">
+      <location x="1.38489" y="0.0" z="3.21028">
         <rot axis-x="0" axis-y="1" axis-z="0" val="203.335"/>
       </location>
     </component>
   </type>
   <type name="bank32">
     <component type="eightpack">
-      <location x="1.18032" y="0.0" z="3.28838">
+      <location x="1.18075" y="0.0" z="3.28955">
         <rot axis-x="0" axis-y="1" axis-z="0" val="199.745"/>
       </location>
     </component>
   </type>
   <type name="bank33">
     <component type="eightpack">
-      <location x="0.972527" y="0.0" z="3.3573">
+      <location x="0.97224" y="0.0" z="3.35632">
         <rot axis-x="0" axis-y="1" axis-z="0" val="196.155"/>
       </location>
     </component>
   </type>
   <type name="bank34">
     <component type="eightpack">
-      <location x="0.760383" y="0.0" z="3.41154">
+      <location x="0.76027" y="0.0" z="3.41104">
         <rot axis-x="0" axis-y="1" axis-z="0" val="192.565"/>
       </location>
     </component>
   </type>
   <type name="bank35">
     <component type="eightpack">
-      <location x="0.545012" y="0.0" z="3.45081">
+      <location x="0.54487" y="0.0" z="3.44994">
         <rot axis-x="0" axis-y="1" axis-z="0" val="188.975"/>
       </location>
     </component>
   </type>
   <type name="bank36">
     <component type="eightpack">
-      <location x="0.327961" y="0.0" z="3.47919">
+      <location x="0.328" y="0.0" z="3.47956">
         <rot axis-x="0" axis-y="1" axis-z="0" val="185.385"/>
       </location>
     </component>
   </type>
   <type name="bank37">
     <component type="eightpack">
-      <location x="-0.327368" y="0.0" z="3.47289">
+      <location x="-0.32802" y="0.0" z="3.47979">
         <rot axis-x="0" axis-y="1" axis-z="0" val="174.615"/>
       </location>
     </component>
   </type>
   <type name="bank38">
     <component type="eightpack">
-      <location x="-0.544931" y="0.0" z="3.4503">
+      <location x="-0.54538" y="0.0" z="3.45312">
         <rot axis-x="0" axis-y="1" axis-z="0" val="171.025"/>
       </location>
     </component>
   </type>
   <type name="bank39">
     <component type="eightpack">
-      <location x="-0.759928" y="0.0" z="3.4095">
+      <location x="-0.76055" y="0.0" z="3.41229">
         <rot axis-x="0" axis-y="1" axis-z="0" val="167.435"/>
       </location>
     </component>
   </type>
   <type name="bank40">
     <component type="eightpack">
-      <location x="-0.97205" y="0.0" z="3.35565">
+      <location x="-0.97256" y="0.0" z="3.3574">
         <rot axis-x="0" axis-y="1" axis-z="0" val="163.845"/>
       </location>
     </component>
   </type>
   <type name="bank41">
     <component type="eightpack">
-      <location x="-1.18055" y="0.0" z="3.289">
+      <location x="-1.18094" y="0.0" z="3.29009">
         <rot axis-x="0" axis-y="1" axis-z="0" val="160.255"/>
       </location>
     </component>
   </type>
   <type name="bank42">
     <component type="eightpack">
-      <location x="-1.38472" y="0.0" z="3.20988">
+      <location x="-1.38525" y="0.0" z="3.21111">
         <rot axis-x="0" axis-y="1" axis-z="0" val="156.665"/>
       </location>
     </component>
   </type>
   <type name="bank43">
     <component type="eightpack">
-      <location x="-1.58047" y="0.0" z="3.11191">
+      <location x="-1.58218" y="0.0" z="3.11528">
         <rot axis-x="0" axis-y="1" axis-z="0" val="153.075"/>
       </location>
     </component>
   </type>
   <type name="bank44">
     <component type="eightpack">
-      <location x="-1.76808" y="0.0" z="2.99981">
+      <location x="-1.77593" y="0.0" z="3.01313">
         <rot axis-x="0" axis-y="1" axis-z="0" val="149.485"/>
       </location>
     </component>
   </type>
   <type name="bank45">
     <component type="eightpack">
-      <location x="-1.94916" y="0.0" z="2.87836">
+      <location x="-1.9561" y="0.0" z="2.8886">
         <rot axis-x="0" axis-y="1" axis-z="0" val="145.895"/>
       </location>
     </component>
   </type>
   <type name="bank46">
     <component type="eightpack">
-      <location x="-2.12181" y="0.0" z="2.7458">
+      <location x="-2.12942" y="0.0" z="2.75565">
         <rot axis-x="0" axis-y="1" axis-z="0" val="142.305"/>
       </location>
     </component>
   </type>
   <type name="bank47">
     <component type="eightpack">
-      <location x="-2.28737" y="0.0" z="2.60504">
+      <location x="-2.29762" y="0.0" z="2.61671">
         <rot axis-x="0" axis-y="1" axis-z="0" val="138.715"/>
       </location>
     </component>
   </type>
   <type name="bank48">
     <component type="eightpack">
-      <location x="-2.44663" y="0.0" z="2.45733">
+      <location x="-2.45607" y="0.0" z="2.46681">
         <rot axis-x="0" axis-y="1" axis-z="0" val="135.125"/>
       </location>
     </component>
   </type>
   <type name="bank49">
     <component type="eightpack">
-      <location x="-2.59486" y="0.0" z="2.29857">
+      <location x="-2.59826" y="0.0" z="2.30157">
         <rot axis-x="0" axis-y="1" axis-z="0" val="131.535"/>
       </location>
     </component>
   </type>
   <type name="bank50">
     <component type="eightpack">
-      <location x="-2.72685" y="0.0" z="2.12623">
+      <location x="-2.74021" y="0.0" z="2.13666">
         <rot axis-x="0" axis-y="1" axis-z="0" val="127.945"/>
       </location>
     </component>
diff --git a/Code/Mantid/instrument/CNCS_Definition_20150130-20150731.xml b/Code/Mantid/instrument/CNCS_Definition_20150130-20150731.xml
new file mode 100644
index 00000000000..41a4911d5d3
--- /dev/null
+++ b/Code/Mantid/instrument/CNCS_Definition_20150130-20150731.xml
@@ -0,0 +1,729 @@
+<?xml version='1.0' encoding='ASCII'?>
+<instrument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.mantidproject.org/IDF/1.0" last-modified="2015-01-30 16:42:36.216202" name="CNCS" valid-from="2015-01-30 00:00:00" valid-to="2015-07-31 23:59:59" xsi:schemaLocation="http://www.mantidproject.org/IDF/1.0 Schema/IDFSchema.xsd">
+  <!--Created by Michael Reuter-->
+  <defaults>
+    <length unit="metre"/>
+    <angle unit="degree"/>
+    <reference-frame>
+      <along-beam axis="z"/>
+      <pointing-up axis="y"/>
+      <handedness val="right"/>
+    </reference-frame>
+  </defaults>
+  <!--SOURCE AND SAMPLE POSITION-->
+  <component type="moderator">
+    <location z="-36.262"/>
+  </component>
+  <type is="Source" name="moderator"/>
+  <component type="sample-position">
+    <location x="0.0" y="0.0" z="0.0"/>
+  </component>
+  <type is="SamplePos" name="sample-position"/>
+  <!--MONITORS-->
+  <component idlist="monitors" type="monitors">
+    <location/>
+  </component>
+  <type name="monitors">
+    <component type="monitor">
+      <location name="monitor1" z="-29.949"/>
+      <location name="monitor2" z="-28.706"/>
+      <location name="monitor3" z="-1.416"/>
+    </component>
+  </type>
+  <component idlist="detectors" type="detectors">
+    <location/>
+  </component>
+  <type name="detectors">
+    <component type="bank1">
+      <location/>
+    </component>
+    <component type="bank2">
+      <location/>
+    </component>
+    <component type="bank3">
+      <location/>
+    </component>
+    <component type="bank4">
+      <location/>
+    </component>
+    <component type="bank5">
+      <location/>
+    </component>
+    <component type="bank6">
+      <location/>
+    </component>
+    <component type="bank7">
+      <location/>
+    </component>
+    <component type="bank8">
+      <location/>
+    </component>
+    <component type="bank9">
+      <location/>
+    </component>
+    <component type="bank10">
+      <location/>
+    </component>
+    <component type="bank11">
+      <location/>
+    </component>
+    <component type="bank12">
+      <location/>
+    </component>
+    <component type="bank13">
+      <location/>
+    </component>
+    <component type="bank14">
+      <location/>
+    </component>
+    <component type="bank15">
+      <location/>
+    </component>
+    <component type="bank16">
+      <location/>
+    </component>
+    <component type="bank17">
+      <location/>
+    </component>
+    <component type="bank18">
+      <location/>
+    </component>
+    <component type="bank19">
+      <location/>
+    </component>
+    <component type="bank20">
+      <location/>
+    </component>
+    <component type="bank21">
+      <location/>
+    </component>
+    <component type="bank22">
+      <location/>
+    </component>
+    <component type="bank23">
+      <location/>
+    </component>
+    <component type="bank24">
+      <location/>
+    </component>
+    <component type="bank25">
+      <location/>
+    </component>
+    <component type="bank26">
+      <location/>
+    </component>
+    <component type="bank27">
+      <location/>
+    </component>
+    <component type="bank28">
+      <location/>
+    </component>
+    <component type="bank29">
+      <location/>
+    </component>
+    <component type="bank30">
+      <location/>
+    </component>
+    <component type="bank31">
+      <location/>
+    </component>
+    <component type="bank32">
+      <location/>
+    </component>
+    <component type="bank33">
+      <location/>
+    </component>
+    <component type="bank34">
+      <location/>
+    </component>
+    <component type="bank35">
+      <location/>
+    </component>
+    <component type="bank36">
+      <location/>
+    </component>
+    <component type="bank37">
+      <location/>
+    </component>
+    <component type="bank38">
+      <location/>
+    </component>
+    <component type="bank39">
+      <location/>
+    </component>
+    <component type="bank40">
+      <location/>
+    </component>
+    <component type="bank41">
+      <location/>
+    </component>
+    <component type="bank42">
+      <location/>
+    </component>
+    <component type="bank43">
+      <location/>
+    </component>
+    <component type="bank44">
+      <location/>
+    </component>
+    <component type="bank45">
+      <location/>
+    </component>
+    <component type="bank46">
+      <location/>
+    </component>
+    <component type="bank47">
+      <location/>
+    </component>
+    <component type="bank48">
+      <location/>
+    </component>
+    <component type="bank49">
+      <location/>
+    </component>
+    <component type="bank50">
+      <location/>
+    </component>
+  </type>
+  <type name="bank1">
+    <component type="eightpack">
+      <location x="2.61865" y="0.0" z="-2.27917">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="311.035"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank2">
+    <component type="eightpack">
+      <location x="2.76078" y="0.0" z="-2.11421">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="307.445"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank3">
+    <component type="eightpack">
+      <location x="2.88682" y="0.0" z="-1.93657">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="303.855"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank4">
+    <component type="eightpack">
+      <location x="3.00841" y="0.0" z="-1.75551">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="300.265"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank5">
+    <component type="eightpack">
+      <location x="3.1118" y="0.0" z="-1.56337">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="296.675"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank6">
+    <component type="eightpack">
+      <location x="3.20565" y="0.0" z="-1.36634">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="293.085"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank7">
+    <component type="eightpack">
+      <location x="3.28608" y="0.0" z="-1.16334">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="289.495"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank8">
+    <component type="eightpack">
+      <location x="3.34352" y="0.0" z="-0.952742">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="285.905"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank9">
+    <component type="eightpack">
+      <location x="3.38894" y="0.0" z="-0.739838">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="282.315"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank10">
+    <component type="eightpack">
+      <location x="3.42736" y="0.0" z="-0.52599">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="278.725"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank11">
+    <component type="eightpack">
+      <location x="3.45894" y="0.0" z="-0.310832">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="275.135"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank12">
+    <component type="eightpack">
+      <location x="3.48182" y="0.0" z="-0.093911">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="271.545"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank13">
+    <component type="eightpack">
+      <location x="3.4906" y="0.0" z="0.124639">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="267.955"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank14">
+    <component type="eightpack">
+      <location x="3.47923" y="0.0" z="0.343287">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="264.365"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank15">
+    <component type="eightpack">
+      <location x="3.4502" y="0.0" z="0.560356">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="260.775"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank16">
+    <component type="eightpack">
+      <location x="3.40653" y="0.0" z="0.774882">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="257.185"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank17">
+    <component type="eightpack">
+      <location x="3.35209" y="0.0" z="0.986891">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="253.595"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank18">
+    <component type="eightpack">
+      <location x="3.2853" y="0.0" z="1.19543">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="250.005"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank19">
+    <component type="eightpack">
+      <location x="3.20508" y="0.0" z="1.39927">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="246.415"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank20">
+    <component type="eightpack">
+      <location x="3.11035" y="0.0" z="1.59679">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="242.825"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank21">
+    <component type="eightpack">
+      <location x="3.0034" y="0.0" z="1.7879">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="239.235"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank22">
+    <component type="eightpack">
+      <location x="2.88564" y="0.0" z="1.97251">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="235.645"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank23">
+    <component type="eightpack">
+      <location x="2.75681" y="0.0" z="2.1496">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="232.055"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank24">
+    <component type="eightpack">
+      <location x="2.61368" y="0.0" z="2.31524">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="228.465"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank25">
+    <component type="eightpack">
+      <location x="2.46263" y="0.0" z="2.4734">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="224.875"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank26">
+    <component type="eightpack">
+      <location x="2.30747" y="0.0" z="2.62793">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="221.285"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank27">
+    <component type="eightpack">
+      <location x="2.13842" y="0.0" z="2.76729">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="217.695"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank28">
+    <component type="eightpack">
+      <location x="1.95965" y="0.0" z="2.89385">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="214.105"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank29">
+    <component type="eightpack">
+      <location x="1.77371" y="0.0" z="3.00936">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="210.515"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank30">
+    <component type="eightpack">
+      <location x="1.58375" y="0.0" z="3.11837">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="206.925"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank31">
+    <component type="eightpack">
+      <location x="1.3854" y="0.0" z="3.21146">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="203.335"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank32">
+    <component type="eightpack">
+      <location x="1.18032" y="0.0" z="3.28838">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="199.745"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank33">
+    <component type="eightpack">
+      <location x="0.972527" y="0.0" z="3.3573">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="196.155"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank34">
+    <component type="eightpack">
+      <location x="0.760383" y="0.0" z="3.41154">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="192.565"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank35">
+    <component type="eightpack">
+      <location x="0.545012" y="0.0" z="3.45081">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="188.975"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank36">
+    <component type="eightpack">
+      <location x="0.327961" y="0.0" z="3.47919">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="185.385"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank37">
+    <component type="eightpack">
+      <location x="-0.327368" y="0.0" z="3.47289">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="174.615"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank38">
+    <component type="eightpack">
+      <location x="-0.544931" y="0.0" z="3.4503">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="171.025"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank39">
+    <component type="eightpack">
+      <location x="-0.759928" y="0.0" z="3.4095">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="167.435"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank40">
+    <component type="eightpack">
+      <location x="-0.97205" y="0.0" z="3.35565">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="163.845"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank41">
+    <component type="eightpack">
+      <location x="-1.18055" y="0.0" z="3.289">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="160.255"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank42">
+    <component type="eightpack">
+      <location x="-1.38472" y="0.0" z="3.20988">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="156.665"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank43">
+    <component type="eightpack">
+      <location x="-1.58047" y="0.0" z="3.11191">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="153.075"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank44">
+    <component type="eightpack">
+      <location x="-1.76808" y="0.0" z="2.99981">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="149.485"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank45">
+    <component type="eightpack">
+      <location x="-1.94916" y="0.0" z="2.87836">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="145.895"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank46">
+    <component type="eightpack">
+      <location x="-2.12181" y="0.0" z="2.7458">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="142.305"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank47">
+    <component type="eightpack">
+      <location x="-2.28737" y="0.0" z="2.60504">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="138.715"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank48">
+    <component type="eightpack">
+      <location x="-2.44663" y="0.0" z="2.45733">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="135.125"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank49">
+    <component type="eightpack">
+      <location x="-2.59486" y="0.0" z="2.29857">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="131.535"/>
+      </location>
+    </component>
+  </type>
+  <type name="bank50">
+    <component type="eightpack">
+      <location x="-2.72685" y="0.0" z="2.12623">
+        <rot axis-x="0" axis-y="1" axis-z="0" val="127.945"/>
+      </location>
+    </component>
+  </type>
+  <!--STANDARD 8-PACK-->
+  <type name="eightpack">
+    <properties/>
+    <component type="tube">
+      <location name="tube1" x="-0.096012"/>
+      <location name="tube2" x="-0.06858"/>
+      <location name="tube3" x="-0.041148"/>
+      <location name="tube4" x="-0.013716"/>
+      <location name="tube5" x="0.013716"/>
+      <location name="tube6" x="0.041148"/>
+      <location name="tube7" x="0.06858"/>
+      <location name="tube8" x="0.096012"/>
+    </component>
+  </type>
+  <!--STANDARD 2m 128 PIXEL TUBE-->
+  <type name="tube" outline="yes">
+    <properties/>
+    <component type="pixel">
+      <location name="pixel1" y="-0.9921875"/>
+      <location name="pixel2" y="-0.9765625"/>
+      <location name="pixel3" y="-0.9609375"/>
+      <location name="pixel4" y="-0.9453125"/>
+      <location name="pixel5" y="-0.9296875"/>
+      <location name="pixel6" y="-0.9140625"/>
+      <location name="pixel7" y="-0.8984375"/>
+      <location name="pixel8" y="-0.8828125"/>
+      <location name="pixel9" y="-0.8671875"/>
+      <location name="pixel10" y="-0.8515625"/>
+      <location name="pixel11" y="-0.8359375"/>
+      <location name="pixel12" y="-0.8203125"/>
+      <location name="pixel13" y="-0.8046875"/>
+      <location name="pixel14" y="-0.7890625"/>
+      <location name="pixel15" y="-0.7734375"/>
+      <location name="pixel16" y="-0.7578125"/>
+      <location name="pixel17" y="-0.7421875"/>
+      <location name="pixel18" y="-0.7265625"/>
+      <location name="pixel19" y="-0.7109375"/>
+      <location name="pixel20" y="-0.6953125"/>
+      <location name="pixel21" y="-0.6796875"/>
+      <location name="pixel22" y="-0.6640625"/>
+      <location name="pixel23" y="-0.6484375"/>
+      <location name="pixel24" y="-0.6328125"/>
+      <location name="pixel25" y="-0.6171875"/>
+      <location name="pixel26" y="-0.6015625"/>
+      <location name="pixel27" y="-0.5859375"/>
+      <location name="pixel28" y="-0.5703125"/>
+      <location name="pixel29" y="-0.5546875"/>
+      <location name="pixel30" y="-0.5390625"/>
+      <location name="pixel31" y="-0.5234375"/>
+      <location name="pixel32" y="-0.5078125"/>
+      <location name="pixel33" y="-0.4921875"/>
+      <location name="pixel34" y="-0.4765625"/>
+      <location name="pixel35" y="-0.4609375"/>
+      <location name="pixel36" y="-0.4453125"/>
+      <location name="pixel37" y="-0.4296875"/>
+      <location name="pixel38" y="-0.4140625"/>
+      <location name="pixel39" y="-0.3984375"/>
+      <location name="pixel40" y="-0.3828125"/>
+      <location name="pixel41" y="-0.3671875"/>
+      <location name="pixel42" y="-0.3515625"/>
+      <location name="pixel43" y="-0.3359375"/>
+      <location name="pixel44" y="-0.3203125"/>
+      <location name="pixel45" y="-0.3046875"/>
+      <location name="pixel46" y="-0.2890625"/>
+      <location name="pixel47" y="-0.2734375"/>
+      <location name="pixel48" y="-0.2578125"/>
+      <location name="pixel49" y="-0.2421875"/>
+      <location name="pixel50" y="-0.2265625"/>
+      <location name="pixel51" y="-0.2109375"/>
+      <location name="pixel52" y="-0.1953125"/>
+      <location name="pixel53" y="-0.1796875"/>
+      <location name="pixel54" y="-0.1640625"/>
+      <location name="pixel55" y="-0.1484375"/>
+      <location name="pixel56" y="-0.1328125"/>
+      <location name="pixel57" y="-0.1171875"/>
+      <location name="pixel58" y="-0.1015625"/>
+      <location name="pixel59" y="-0.0859375"/>
+      <location name="pixel60" y="-0.0703125"/>
+      <location name="pixel61" y="-0.0546875"/>
+      <location name="pixel62" y="-0.0390625"/>
+      <location name="pixel63" y="-0.0234375"/>
+      <location name="pixel64" y="-0.0078125"/>
+      <location name="pixel65" y="0.0078125"/>
+      <location name="pixel66" y="0.0234375"/>
+      <location name="pixel67" y="0.0390625"/>
+      <location name="pixel68" y="0.0546875"/>
+      <location name="pixel69" y="0.0703125"/>
+      <location name="pixel70" y="0.0859375"/>
+      <location name="pixel71" y="0.1015625"/>
+      <location name="pixel72" y="0.1171875"/>
+      <location name="pixel73" y="0.1328125"/>
+      <location name="pixel74" y="0.1484375"/>
+      <location name="pixel75" y="0.1640625"/>
+      <location name="pixel76" y="0.1796875"/>
+      <location name="pixel77" y="0.1953125"/>
+      <location name="pixel78" y="0.2109375"/>
+      <location name="pixel79" y="0.2265625"/>
+      <location name="pixel80" y="0.2421875"/>
+      <location name="pixel81" y="0.2578125"/>
+      <location name="pixel82" y="0.2734375"/>
+      <location name="pixel83" y="0.2890625"/>
+      <location name="pixel84" y="0.3046875"/>
+      <location name="pixel85" y="0.3203125"/>
+      <location name="pixel86" y="0.3359375"/>
+      <location name="pixel87" y="0.3515625"/>
+      <location name="pixel88" y="0.3671875"/>
+      <location name="pixel89" y="0.3828125"/>
+      <location name="pixel90" y="0.3984375"/>
+      <location name="pixel91" y="0.4140625"/>
+      <location name="pixel92" y="0.4296875"/>
+      <location name="pixel93" y="0.4453125"/>
+      <location name="pixel94" y="0.4609375"/>
+      <location name="pixel95" y="0.4765625"/>
+      <location name="pixel96" y="0.4921875"/>
+      <location name="pixel97" y="0.5078125"/>
+      <location name="pixel98" y="0.5234375"/>
+      <location name="pixel99" y="0.5390625"/>
+      <location name="pixel100" y="0.5546875"/>
+      <location name="pixel101" y="0.5703125"/>
+      <location name="pixel102" y="0.5859375"/>
+      <location name="pixel103" y="0.6015625"/>
+      <location name="pixel104" y="0.6171875"/>
+      <location name="pixel105" y="0.6328125"/>
+      <location name="pixel106" y="0.6484375"/>
+      <location name="pixel107" y="0.6640625"/>
+      <location name="pixel108" y="0.6796875"/>
+      <location name="pixel109" y="0.6953125"/>
+      <location name="pixel110" y="0.7109375"/>
+      <location name="pixel111" y="0.7265625"/>
+      <location name="pixel112" y="0.7421875"/>
+      <location name="pixel113" y="0.7578125"/>
+      <location name="pixel114" y="0.7734375"/>
+      <location name="pixel115" y="0.7890625"/>
+      <location name="pixel116" y="0.8046875"/>
+      <location name="pixel117" y="0.8203125"/>
+      <location name="pixel118" y="0.8359375"/>
+      <location name="pixel119" y="0.8515625"/>
+      <location name="pixel120" y="0.8671875"/>
+      <location name="pixel121" y="0.8828125"/>
+      <location name="pixel122" y="0.8984375"/>
+      <location name="pixel123" y="0.9140625"/>
+      <location name="pixel124" y="0.9296875"/>
+      <location name="pixel125" y="0.9453125"/>
+      <location name="pixel126" y="0.9609375"/>
+      <location name="pixel127" y="0.9765625"/>
+      <location name="pixel128" y="0.9921875"/>
+    </component>
+  </type>
+  <!--PIXEL FOR STANDARD 2m 128 PIXEL TUBE-->
+  <type is="detector" name="pixel">
+    <cylinder id="cyl-approx">
+      <centre-of-bottom-base p="0.0" r="0.0" t="0.0"/>
+      <axis x="0.0" y="1.0" z="0.0"/>
+      <radius val="0.0127"/>
+      <height val="0.015625"/>
+    </cylinder>
+    <algebra val="cyl-approx"/>
+  </type>
+  <!--MONITOR SHAPE-->
+  <!--FIXME: Do something real here.-->
+  <type is="monitor" name="monitor">
+    <cylinder id="cyl-approx">
+      <centre-of-bottom-base p="0.0" r="0.0" t="0.0"/>
+      <axis x="0.0" y="0.0" z="1.0"/>
+      <radius val="0.01"/>
+      <height val="0.03"/>
+    </cylinder>
+    <algebra val="cyl-approx"/>
+  </type>
+  <!--DETECTOR IDs-->
+  <idlist idname="detectors">
+    <id end="51199" start="0"/>
+  </idlist>
+  <!--MONITOR IDs-->
+  <idlist idname="monitors">
+    <id val="-1"/>
+    <id val="-2"/>
+    <id val="-3"/>
+  </idlist>
+  <!--DETECTOR PARAMETERS-->
+  <component-link name="detectors">
+    <parameter name="tube_pressure">
+      <value units="atm" val="6.0"/>
+    </parameter>
+    <parameter name="tube_thickness">
+      <value units="metre" val="0.0008"/>
+    </parameter>
+    <parameter name="tube_temperature">
+      <value units="K" val="290.0"/>
+    </parameter>
+  </component-link>
+</instrument>
-- 
GitLab