From 1d91de3b58e9551d90d5746a3ab06ff491141aa8 Mon Sep 17 00:00:00 2001
From: "Ricardo M. Ferraz Leal" <ricleal@gmail.com>
Date: Tue, 16 Feb 2016 13:24:07 -0500
Subject: [PATCH] Re #15332 SWANS IDF no monitors

---
 instrument/Facilities.xml       |  4 +++
 instrument/SWANS_Definition.xml | 63 +++++++++++++++++++++++++++++++++
 instrument/SWANS_Parameters.xml | 23 ++++++++++++
 3 files changed, 90 insertions(+)
 create mode 100644 instrument/SWANS_Definition.xml
 create mode 100644 instrument/SWANS_Parameters.xml

diff --git a/instrument/Facilities.xml b/instrument/Facilities.xml
index a428dcc4384..05b51f16287 100644
--- a/instrument/Facilities.xml
+++ b/instrument/Facilities.xml
@@ -459,6 +459,10 @@
       <technique>Imaging</technique>
       <technique>Tomography</technique>
    </instrument>
+   
+   <instrument name="SWANS" shortname="SWANS" beamline="7">
+      <technique>Small Wide Angle Scattering</technique>
+   </instrument>
 
    <livedata listener="SNSLiveEventDataListener"/>
 
diff --git a/instrument/SWANS_Definition.xml b/instrument/SWANS_Definition.xml
new file mode 100644
index 00000000000..634513dfd93
--- /dev/null
+++ b/instrument/SWANS_Definition.xml
@@ -0,0 +1,63 @@
+<?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="SWANS" 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: ferrazlealrm@ornl.gov -->
+  <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>
+
+  <!-- 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="128" idstepbyrow="1">
+      <location z='2' />
+    </component>
+  </type>
+  
+  <!-- Definition of every bank -->
+  <!-- Back detector: 640 x 640 mm -->
+  <type name="back_detector" is="rectangular_detector" type="pixel_rectangular"
+  	xpixels="128" xstart="0.208" xstep="-0.00325"
+  	ypixels="128" ystart="-0.208" ystep="0.00325">
+    <properties />
+  </type>
+  
+ 
+  
+  <!-- Pixel for Detectors: 5x2.5 mm -->
+  <type is="detector" name="pixel_rectangular">
+    <cuboid id="pixel-shape">
+      <left-front-bottom-point y="-0.001625" x="-0.001625" z="0.0" />
+      <left-front-top-point y="0.001625" x="-0.001625" z="0.0" />
+      <left-back-bottom-point y="-0.001625" x="-0.001625" z="-0.0001" />
+      <right-front-bottom-point y="-0.001625" x="0.001625" z="0.0" />
+    </cuboid>
+    <algebra val="pixel-shape" />
+  </type>
+</instrument>
diff --git a/instrument/SWANS_Parameters.xml b/instrument/SWANS_Parameters.xml
new file mode 100644
index 00000000000..75de3ffcc3b
--- /dev/null
+++ b/instrument/SWANS_Parameters.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<parameter-file instrument = "SWANS" valid-from = "16th February 2016">
+    
+    <component-link name="SWANS">
+		
+		<parameter name="number-of-x-pixels">
+		  <value val="128"/>
+		</parameter>
+
+		<parameter name="number-of-y-pixels">
+		  <value val="128"/>
+		</parameter>
+
+		<parameter name="x-pixel-size">
+		  <value val="3.25"/>
+		</parameter>
+		
+		<parameter name="y-pixel-size">
+		  <value val="3.25"/>
+		</parameter>
+
+    </component-link>
+</parameter-file>    
-- 
GitLab