From 88613de770b5cbc44bfd8236f401a646bfefb9eb Mon Sep 17 00:00:00 2001
From: Andrei Savici <saviciat@ornl.gov>
Date: Tue, 12 Jul 2011 21:12:13 +0000
Subject: [PATCH] Rotates using S2 value from the log file. Refs #2810

---
 Code/Mantid/instrument/HYSPEC_Definition.xml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/Code/Mantid/instrument/HYSPEC_Definition.xml b/Code/Mantid/instrument/HYSPEC_Definition.xml
index 082f817864f..7f54f62f253 100644
--- a/Code/Mantid/instrument/HYSPEC_Definition.xml
+++ b/Code/Mantid/instrument/HYSPEC_Definition.xml
@@ -38,7 +38,20 @@
   
   <!-- Tank - a point 3 meters from the sample-->
   <component type="Tank" idlist="Tank">
-    <location r="3.0" t="0.0" p="0.0"/>
+    <location>
+			<parameter name="r-position">
+				<value val="3"/>
+			</parameter>				
+			<parameter name="t-position">
+				<logfile id="S2"/>
+			</parameter>			
+			<parameter name="p-position">
+				<value val="0"/>
+			</parameter>
+			<parameter name="roty">
+				<logfile id="S2"/>
+			</parameter>
+		</location>
   </component>
   <type name="Tank">
     <component type="B1">
-- 
GitLab