Skip to content
Snippets Groups Projects
ALF_Definition.xml 15.8 KiB
Newer Older
Russell Taylor's avatar
Russell Taylor committed
<?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="ALF" valid-from   ="1900-01-31 23:59:59"
                        valid-to     ="2015-03-16 23:59:59"
		        last-modified="2015-03-27 00:00:00">
 
   <defaults>
     <length unit="meter"/>
     <angle unit="degree"/>
 <location r="0.0" t="0.0" p="0.0" ang="0.0" axis-x="0.0" axis-y="0.0" axis-z="1.0"/>
     <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"/>
       <origin val="beam" /> 
     </reference-frame>
     <!-- Comment "components-are-facing" out if you dont want the
     components defined in this file to face a position by default -->    
     <components-are-facing x="0.0" y="0.0" z="0.0" />
     <default-view view="cylindrical_y"/>
   </defaults>
   <!-- LIST OF PHYSICAL COMPONENTS (which the instrument consists of) -->
   <!-- detector components -->
    <properties>
   </properties>
   <component type="monitors" idlist="monitors">
     <location/>
   </component>
<!--
<component type="ALFpack1" idlist="ALFpack1">
<location />
</component>
<component type="ALFpack2" idlist="ALFpack2">
<location />
</component>
<component type="ALFpack3" idlist="ALFpack3">
<location />
</component> -->
<component type="ALFdetectors" idlist="ALFdetectors">
<location />
</component>
<!--
<component type="ALFextratube1" idlist="ALFextratube1">
<location />
</component>
<component type="ALFextratube2" idlist="ALFextratube2">
<location />
</component>
-->
<!-- source and sample-position components -->
   <component type="undulator">
     <location z="-14.9165"> <facing val="none"/> </location>
   </component>
 
   <component type="nickel-holder">
     <location> <facing val="none"/> </location>
   </component>
 
   <!-- DEFINITION OF TYPES -->
   <!-- Source types -->
   <type name="undulator" is="Source">
     <properties />
     <cylinder id="some-shape">
       <centre-of-bottom-base r="0.0" t="0.0" p="0.0" />
       <axis x="0.0" y="0.0" z="1.0" /> 
       <radius val="0.01" />
       <height val="0.03" />
     </cylinder> 
     <algebra val="some-shape" />
   </type>
 
   <!-- Sample-position types -->
   <type name="nickel-holder" is="SamplePos">
     <properties />
     <sphere id="some-shape">
       <centre x="0.0"  y="0.0" z="0.0" />
       <radius val="0.03" />
     </sphere>
     <algebra val="some-shape" />
   </type>
 
   <!-- Detectors types -->
   <type name="monitors">
     <component type="monitor">
       <location r="4.0" t="180.0" p="0.0" name="monitor1" />
       <location r="2.0" t="0.0" p="0.0" name="monitor2" />
       <location r="4.0" t="0.0" p="0.0" name="monitor3" />
     </component>
   </type>
<type name="ALFdetectors">
 <component type="ALF24tubes">
<location  x="0.7309    " z="  1.3328    "> <facing x="0" y="0" z="0"/> </location>
 </component>
 </type>
<!-- <type name="ALFpack1">
 <component type="ALFpack">
<location  x="0.52833    " z="  1.4252    "> <facing x="0" y="0" z="0"/> </location>
 </component>
 </type>
<type name="ALFpack2">
 <component type="ALFpack">
<location  x="0.7309    " z="  1.3328    "> <facing x="0" y="0" z="0"/> </location>
 </component>
 </type>
<type name="ALFpack3">
 <component type="ALFpack">
<location  x="0.91857    " z="  1.21105    "> <facing x="0" y="0" z="0"/> </location>
 </component>
 </type> -->
<!--
<type name="ALFextratube1">
 <component type="ALFtube">
<location  x="1.52    " z="  -0.0200    "> <facing x="0" y="0" z="0"/> </location>
 </component>
 </type>
<type name="ALFextratube2">
 <component type="ALFtube">
<location  x="1.52    " z="  0.0200    "> <facing x="0" y="0" z="0"/> </location>
 </component>
 </type>
-->
 <type name="ALF24tubes">
 <properties />
 <component type="ALFtube" >
<location  x="   -0.3220    " z="  0.00000" name="tube1" />
<location  x="   -0.2940    " z="  0.00000" name="tube2" />
<location  x="   -0.2660    " z="  0.00000" name="tube3" />
<location  x="   -0.2380    " z="  0.00000" name="tube4" />
<location  x="   -0.2100    " z="  0.00000" name="tube5" />
<location  x="   -0.1820    " z="  0.00000" name="tube6" />
<location  x="   -0.1540    " z="  0.00000" name="tube7" />
<location  x="   -0.1260    " z="  0.00000" name="tube8" />
<location  x="   -0.0980    " z="  0.00000" name="tube9" />
<location  x="   -0.0700    " z="  0.00000" name="tube10" />
<location  x="   -0.0420    " z="  0.00000" name="tube11" />
<location  x="   -0.0140    " z="  0.00000" name="tube12" />
<location  x="   0.01400    " z="  0.00000" name="tube13" />
<location  x="   0.04200    " z="  0.00000" name="tube14" />
<location  x="   0.07000    " z="  0.00000" name="tube15" />
<location  x="   0.09800    " z="  0.00000" name="tube16" />
<location  x="   0.12600    " z="  0.00000" name="tube17" />
<location  x="   0.15400    " z="  0.00000" name="tube18" />
<location  x="   0.18200    " z="  0.00000" name="tube19" />
<location  x="   0.21000    " z="  0.00000" name="tube20" />
<location  x="   0.23800    " z="  0.00000" name="tube21" />
<location  x="   0.26600    " z="  0.00000" name="tube22" />
<location  x="   0.29400    " z="  0.00000" name="tube23" />
<location  x="   0.32200    " z="  0.00000" name="tube24" />
<!--
 <type name="ALFpack">
 <properties />
 <component type="ALFtube" >
<location  x="   -0.0980    " z="  0.00000" name="tube1" />
<location  x="   -0.0700    " z="  0.00000" name="tube2" />
<location  x="   -0.0420    " z="  0.00000" name="tube3" />
<location  x="   -0.0140    " z="  0.00000" name="tube4" />
<location  x="   0.01400    " z="  0.00000" name="tube5" />
<location  x="   0.04200    " z="  0.00000" name="tube6" />
<location  x="   0.07000    " z="  0.00000" name="tube7" />
<location  x="   0.09800    " z="  0.00000" name="tube8" />
 </component>
 </type> -->
<type name="ALFtube" outline="yes">
 <component type="pixel">
<location y=" -0.498047" />
<location y=" -0.494141" />
<location y=" -0.490234" />
<location y=" -0.486328" />
<location y=" -0.482422" />
<location y=" -0.478516" />
<location y=" -0.474609" />
<location y=" -0.470703" />
<location y=" -0.466797" />
<location y=" -0.462891" />
<location y=" -0.458984" />
<location y=" -0.455078" />
<location y=" -0.451172" />
<location y=" -0.447266" />
<location y=" -0.443359" />
<location y=" -0.439453" />
<location y=" -0.435547" />
<location y=" -0.431641" />
<location y=" -0.427734" />
<location y=" -0.423828" />
<location y=" -0.419922" />
<location y=" -0.416016" />
<location y=" -0.412109" />
<location y=" -0.408203" />
<location y=" -0.404297" />
<location y=" -0.400391" />
<location y=" -0.396484" />
<location y=" -0.392578" />
<location y=" -0.388672" />
<location y=" -0.384766" />
<location y=" -0.380859" />
<location y=" -0.376953" />
<location y=" -0.373047" />
<location y=" -0.369141" />
<location y=" -0.365234" />
<location y=" -0.361328" />
<location y=" -0.357422" />
<location y=" -0.353516" />
<location y=" -0.349609" />
<location y=" -0.345703" />
<location y=" -0.341797" />
<location y=" -0.337891" />
<location y=" -0.333984" />
<location y=" -0.330078" />
<location y=" -0.326172" />
<location y=" -0.322266" />
<location y=" -0.318359" />
<location y=" -0.314453" />
<location y=" -0.310547" />
<location y=" -0.306641" />
<location y=" -0.302734" />
<location y=" -0.298828" />
<location y=" -0.294922" />
<location y=" -0.291016" />
<location y=" -0.287109" />
<location y=" -0.283203" />
<location y=" -0.279297" />
<location y=" -0.275391" />
<location y=" -0.271484" />
<location y=" -0.267578" />
<location y=" -0.263672" />
<location y=" -0.259766" />
<location y=" -0.255859" />
<location y=" -0.251953" />
<location y=" -0.248047" />
<location y=" -0.244141" />
<location y=" -0.240234" />
<location y=" -0.236328" />
<location y=" -0.232422" />
<location y=" -0.228516" />
<location y=" -0.224609" />
<location y=" -0.220703" />
<location y=" -0.216797" />
<location y=" -0.212891" />
<location y=" -0.208984" />
<location y=" -0.205078" />
<location y=" -0.201172" />
<location y=" -0.197266" />
<location y=" -0.193359" />
<location y=" -0.189453" />
<location y=" -0.185547" />
<location y=" -0.181641" />
<location y=" -0.177734" />
<location y=" -0.173828" />
<location y=" -0.169922" />
<location y=" -0.166016" />
<location y=" -0.162109" />
<location y=" -0.158203" />
<location y=" -0.154297" />
<location y=" -0.150391" />
<location y=" -0.146484" />
<location y=" -0.142578" />
<location y=" -0.138672" />
<location y=" -0.134766" />
<location y=" -0.130859" />
<location y=" -0.126953" />
<location y=" -0.123047" />
<location y=" -0.119141" />
<location y=" -0.115234" />
<location y=" -0.111328" />
<location y=" -0.107422" />
<location y=" -0.103516" />
<location y=" -0.0996094" />
<location y=" -0.0957031" />
<location y=" -0.0917969" />
<location y=" -0.0878906" />
<location y=" -0.0839844" />
<location y=" -0.0800781" />
<location y=" -0.0761719" />
<location y=" -0.0722656" />
<location y=" -0.0683594" />
<location y=" -0.0644531" />
<location y=" -0.0605469" />
<location y=" -0.0566406" />
<location y=" -0.0527344" />
<location y=" -0.0488281" />
<location y=" -0.0449219" />
<location y=" -0.0410156" />
<location y=" -0.0371094" />
<location y=" -0.0332031" />
<location y=" -0.0292969" />
<location y=" -0.0253906" />
<location y=" -0.0214844" />
<location y=" -0.0175781" />
<location y=" -0.0136719" />
<location y=" -0.00976562" />
<location y=" -0.00585938" />
<location y=" -0.00195312" />
<location y=" 0.00195312" />
<location y=" 0.00585938" />
<location y=" 0.00976562" />
<location y=" 0.0136719" />
<location y=" 0.0175781" />
<location y=" 0.0214844" />
<location y=" 0.0253906" />
<location y=" 0.0292969" />
<location y=" 0.0332031" />
<location y=" 0.0371094" />
<location y=" 0.0410156" />
<location y=" 0.0449219" />
<location y=" 0.0488281" />
<location y=" 0.0527344" />
<location y=" 0.0566406" />
<location y=" 0.0605469" />
<location y=" 0.0644531" />
<location y=" 0.0683594" />
<location y=" 0.0722656" />
<location y=" 0.0761719" />
<location y=" 0.0800781" />
<location y=" 0.0839844" />
<location y=" 0.0878906" />
<location y=" 0.0917969" />
<location y=" 0.0957031" />
<location y=" 0.0996094" />
<location y=" 0.103516" />
<location y=" 0.107422" />
<location y=" 0.111328" />
<location y=" 0.115234" />
<location y=" 0.119141" />
<location y=" 0.123047" />
<location y=" 0.126953" />
<location y=" 0.130859" />
<location y=" 0.134766" />
<location y=" 0.138672" />
<location y=" 0.142578" />
<location y=" 0.146484" />
<location y=" 0.150391" />
<location y=" 0.154297" />
<location y=" 0.158203" />
<location y=" 0.162109" />
<location y=" 0.166016" />
<location y=" 0.169922" />
<location y=" 0.173828" />
<location y=" 0.177734" />
<location y=" 0.181641" />
<location y=" 0.185547" />
<location y=" 0.189453" />
<location y=" 0.193359" />
<location y=" 0.197266" />
<location y=" 0.201172" />
<location y=" 0.205078" />
<location y=" 0.208984" />
<location y=" 0.212891" />
<location y=" 0.216797" />
<location y=" 0.220703" />
<location y=" 0.224609" />
<location y=" 0.228516" />
<location y=" 0.232422" />
<location y=" 0.236328" />
<location y=" 0.240234" />
<location y=" 0.244141" />
<location y=" 0.248047" />
<location y=" 0.251953" />
<location y=" 0.255859" />
<location y=" 0.259766" />
<location y=" 0.263672" />
<location y=" 0.267578" />
<location y=" 0.271484" />
<location y=" 0.275391" />
<location y=" 0.279297" />
<location y=" 0.283203" />
<location y=" 0.287109" />
<location y=" 0.291016" />
<location y=" 0.294922" />
<location y=" 0.298828" />
<location y=" 0.302734" />
<location y=" 0.306641" />
<location y=" 0.310547" />
<location y=" 0.314453" />
<location y=" 0.318359" />
<location y=" 0.322266" />
<location y=" 0.326172" />
<location y=" 0.330078" />
<location y=" 0.333984" />
<location y=" 0.337891" />
<location y=" 0.341797" />
<location y=" 0.345703" />
<location y=" 0.349609" />
<location y=" 0.353516" />
<location y=" 0.357422" />
<location y=" 0.361328" />
<location y=" 0.365234" />
<location y=" 0.369141" />
<location y=" 0.373047" />
<location y=" 0.376953" />
<location y=" 0.380859" />
<location y=" 0.384766" />
<location y=" 0.388672" />
<location y=" 0.392578" />
<location y=" 0.396484" />
<location y=" 0.400391" />
<location y=" 0.404297" />
<location y=" 0.408203" />
<location y=" 0.412109" />
<location y=" 0.416016" />
<location y=" 0.419922" />
<location y=" 0.423828" />
<location y=" 0.427734" />
<location y=" 0.431641" />
<location y=" 0.435547" />
<location y=" 0.439453" />
<location y=" 0.443359" />
<location y=" 0.447266" />
<location y=" 0.451172" />
<location y=" 0.455078" />
<location y=" 0.458984" />
<location y=" 0.462891" />
<location y=" 0.466797" />
<location y=" 0.470703" />
<location y=" 0.474609" />
<location y=" 0.478516" />
<location y=" 0.482422" />
<location y=" 0.486328" />
<location y=" 0.490234" />
<location y=" 0.494141" />
<location y=" 0.498047" />
 </component>
 </type>
 <type name="monitor" is="monitor">
  <properties/>
  <cylinder id="some-shape">
 <centre-of-bottom-base r="0.0" t="0.0" p="0.0" />
 <axis x="0.0" y="0.0" z="1.0" />
 <radius val="0.01" />
 <height val="0.03" />
 </cylinder>
 <algebra val="some-shape" />
 </type>
 <type name="pixel" is="detector">
 <cylinder id="cyl-approx">
   <centre-of-bottom-base r="0.0" t="0.0" p="0.0" />
   <axis x="0.0" y="0.2" z="0.0" />
   <radius val="0.0127" />
  <height val="   0.004" />
 </cylinder>
 <algebra val="cyl-approx" />
<!-- MONITOR ID LISTS -->
   <idlist idname="monitors">
     <id start="6657" end="6659" />
   </idlist>
 <!-- DETECTOR ID LISTS -->
  <idlist idname="ALFdetectors">
   <id start="1" end="256" />
   <id start="257" end="512" />
   <id start="513" end="768" />
   <id start="769" end="1024" />
   <id start="1025" end="1280" />
   <id start="1281" end="1536" />
   <id start="1537" end="1792" />
   <id start="1793" end="2048" />
   <id start="2049" end="2304" />
   <id start="2305" end="2560" />
   <id start="2561" end="2816" />
   <id start="2817" end="3072" />
   <id start="3073" end="3328" />
   <id start="3329" end="3584" />
   <id start="3585" end="3840" />
   <id start="3841" end="4096" />
   <id start="4097" end="4352" />
   <id start="4353" end="4608" />
   <id start="4609" end="4864" />
   <id start="4865" end="5120" />
   <id start="5121" end="5376" />
   <id start="5377" end="5632" />
   <id start="5633" end="5888" />
   <id start="5889" end="6144" />
   </idlist>

<!--  <idlist idname="ALFpack1">
   <id start="1" end="256" />
   <id start="257" end="512" />
   <id start="513" end="768" />
   <id start="769" end="1024" />
   <id start="1025" end="1280" />
   <id start="1281" end="1536" />
   <id start="1537" end="1792" />
   <id start="1793" end="2048" />
   </idlist>
  <idlist idname="ALFpack2">
   <id start="2049" end="2304" />
   <id start="2305" end="2560" />
   <id start="2561" end="2816" />
   <id start="2817" end="3072" />
   <id start="3073" end="3328" />
   <id start="3329" end="3584" />
   <id start="3585" end="3840" />
   <id start="3841" end="4096" />
   </idlist>
  <idlist idname="ALFpack3">
   <id start="4097" end="4352" />
   <id start="4353" end="4608" />
   <id start="4609" end="4864" />
   <id start="4865" end="5120" />
   <id start="5121" end="5376" />
   <id start="5377" end="5632" />
   <id start="5633" end="5888" />
   <id start="5889" end="6144" />
   </idlist> -->
<!--
  <idlist idname="ALFextratube1">
   <id start="6145" end="6400" />
   </idlist>
  <idlist idname="ALFextratube2">
   <id start="6401" end="6656" />
   </idlist>
-->
Russell Taylor's avatar
Russell Taylor committed
</instrument>