<?xml version="1.0" encoding="UTF-8" ?>
<gdml xmlns:gdml="http://cern.ch/2001/Schemas/GDML"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="GDMLSchema/gdml.xsd">
<define>

<!--



-->

   <position name="posCryoInDetEnc"     unit="cm" x="0" y="-100" z="0"/>
   <position name="posCenter"           unit="cm" x="0" y="0" z="0"/>
   <rotation name="rPlus90AboutX"       unit="deg" x="90" y="0" z="0"/>
   <rotation name="rMinus90AboutY"      unit="deg" x="0" y="270" z="0"/>
   <rotation name="rMinus90AboutYMinus90AboutX"       unit="deg" x="270" y="270" z="0"/>
   <rotation name="rPlusUAngleAboutX"	unit="deg" x="90-35.71" y="0"   z="0"/>
   <rotation name="rPlusVAngleAboutX"	unit="deg" x="90+35.71" y="0"   z="0"/>
   <rotation name="rPlus180AboutX"	unit="deg" x="180" y="0"   z="0"/>
   <rotation name="rPlus180AboutY"	unit="deg" x="0" y="180"   z="0"/>
   <rotation name="rPlus180AboutXPlus180AboutY"	unit="deg" x="180" y="180"   z="0"/>
   <rotation name="rIdentity"		unit="deg" x="0" y="0"   z="0"/>
</define>
<materials>
  <element name="videRef" formula="VACUUM" Z="1">  <atom value="1"/> </element>
  <element name="copper" formula="Cu" Z="29">  <atom value="63.546"/>  </element>
  <element name="beryllium" formula="Be" Z="4">  <atom value="9.0121831"/>  </element>
  <element name="bromine" formula="Br" Z="35"> <atom value="79.904"/> </element>
  <element name="hydrogen" formula="H" Z="1">  <atom value="1.0079"/> </element>
  <element name="nitrogen" formula="N" Z="7">  <atom value="14.0067"/> </element>
  <element name="oxygen" formula="O" Z="8">  <atom value="15.999"/> </element>
  <element name="aluminum" formula="Al" Z="13"> <atom value="26.9815"/>  </element>
  <element name="silicon" formula="Si" Z="14"> <atom value="28.0855"/>  </element>
  <element name="carbon" formula="C" Z="6">  <atom value="12.0107"/>  </element>
  <element name="potassium" formula="K" Z="19"> <atom value="39.0983"/>  </element>
  <element name="chromium" formula="Cr" Z="24"> <atom value="51.9961"/>  </element>
  <element name="iron" formula="Fe" Z="26"> <atom value="55.8450"/>  </element>
  <element name="nickel" formula="Ni" Z="28"> <atom value="58.6934"/>  </element>
  <element name="calcium" formula="Ca" Z="20"> <atom value="40.078"/>   </element>
  <element name="magnesium" formula="Mg" Z="12"> <atom value="24.305"/>   </element>
  <element name="sodium" formula="Na" Z="11"> <atom value="22.99"/>    </element>
  <element name="titanium" formula="Ti" Z="22"> <atom value="47.867"/>   </element>
  <element name="argon" formula="Ar" Z="18"> <atom value="39.9480"/>  </element>
  <element name="sulphur" formula="S" Z="16"> <atom value="32.065"/>  </element>
  <element name="phosphorus" formula="P" Z="15"> <atom value="30.973"/>  </element>

  <material name="Vacuum" formula="Vacuum">
   <D value="1.e-25" unit="g/cm3"/>
   <fraction n="1.0" ref="videRef"/>
  </material>

  <material name="ALUMINUM_Al" formula="ALUMINUM_Al">
   <D value="2.6990" unit="g/cm3"/>
   <fraction n="1.0000" ref="aluminum"/>
  </material>

  <material name="SILICON_Si" formula="SILICON_Si">
   <D value="2.3300" unit="g/cm3"/>
   <fraction n="1.0000" ref="silicon"/>
  </material>

  <material name="epoxy_resin" formula="C38H40O6Br4">
   <D value="1.1250" unit="g/cm3"/>
   <composite n="38" ref="carbon"/>
   <composite n="40" ref="hydrogen"/>
   <composite n="6" ref="oxygen"/>
   <composite n="4" ref="bromine"/>
  </material>

  <material name="SiO2" formula="SiO2">
   <D value="2.2" unit="g/cm3"/>
   <composite n="1" ref="silicon"/>
   <composite n="2" ref="oxygen"/>
  </material>

  <material name="Al2O3" formula="Al2O3">
   <D value="3.97" unit="g/cm3"/>
   <composite n="2" ref="aluminum"/>
   <composite n="3" ref="oxygen"/>
  </material>

  <material name="Fe2O3" formula="Fe2O3">
   <D value="5.24" unit="g/cm3"/>
   <composite n="2" ref="iron"/>
   <composite n="3" ref="oxygen"/>
  </material>

  <material name="CaO" formula="CaO">
   <D value="3.35" unit="g/cm3"/>
   <composite n="1" ref="calcium"/>
   <composite n="1" ref="oxygen"/>
  </material>

  <material name="Delrin" formula="CH2O">
    <D value="1.41" unit="g/cm3"/>
    <composite n="1" ref="carbon"/>
    <composite n="2" ref="hydrogen"/>
    <composite n="1" ref="oxygen"/>
  </material>

  <material name="MgO" formula="MgO">
   <D value="3.58" unit="g/cm3"/>
   <composite n="1" ref="magnesium"/>
   <composite n="1" ref="oxygen"/>
  </material>

  <material name="Na2O" formula="Na2O">
   <D value="2.27" unit="g/cm3"/>
   <composite n="2" ref="sodium"/>
   <composite n="1" ref="oxygen"/>
  </material>

  <material name="TiO2" formula="TiO2">
   <D value="4.23" unit="g/cm3"/>
   <composite n="1" ref="titanium"/>
   <composite n="2" ref="oxygen"/>
  </material>

  <material name="FeO" formula="FeO">
   <D value="5.745" unit="g/cm3"/>
   <composite n="1" ref="iron"/>
   <composite n="1" ref="oxygen"/>
  </material>

  <material name="CO2" formula="CO2">
   <D value="1.562" unit="g/cm3"/>
   <composite n="1" ref="iron"/>
   <composite n="2" ref="oxygen"/>
  </material>

  <material name="P2O5" formula="P2O5">
   <D value="1.562" unit="g/cm3"/>
   <composite n="2" ref="phosphorus"/>
   <composite n="5" ref="oxygen"/>
  </material>

  <material formula=" " name="DUSEL_Rock">
    <D value="2.82" unit="g/cm3"/>
    <fraction n="0.5267" ref="SiO2"/>
    <fraction n="0.1174" ref="FeO"/>
    <fraction n="0.1025" ref="Al2O3"/>
    <fraction n="0.0473" ref="MgO"/>
    <fraction n="0.0422" ref="CO2"/>
    <fraction n="0.0382" ref="CaO"/>
    <fraction n="0.0240" ref="carbon"/>
    <fraction n="0.0186" ref="sulphur"/>
    <fraction n="0.0053" ref="Na2O"/>
    <fraction n="0.00070" ref="P2O5"/>
    <fraction n="0.0771" ref="oxygen"/>
  </material> 

  <material formula="Air" name="Air">
   <D value="0.001205" unit="g/cm3"/>
   <fraction n="0.781154" ref="nitrogen"/>
   <fraction n="0.209476" ref="oxygen"/>
   <fraction n="0.00934" ref="argon"/>
  </material>

  <material name="fibrous_glass">
   <D value="2.74351" unit="g/cm3"/>
   <fraction n="0.600" ref="SiO2"/>
   <fraction n="0.118" ref="Al2O3"/>
   <fraction n="0.001" ref="Fe2O3"/>
   <fraction n="0.224" ref="CaO"/>
   <fraction n="0.034" ref="MgO"/>
   <fraction n="0.010" ref="Na2O"/>
   <fraction n="0.013" ref="TiO2"/>
  </material>

  <!-- density referenced from EHN1-Cold Cryostats Technical Requirements:
       https://edms.cern.ch/document/1543254 -->
  <material name="FD_foam">
   <D value="0.09" unit="g/cm3"/>
   <fraction n="0.95" ref="Air"/>
   <fraction n="0.05" ref="fibrous_glass"/>
  </material>

  <!-- Foam density is 70 kg / m^3 for the 3x1x1 -->
  <material name="foam_3x1x1dp">
   <D value="0.07" unit="g/cm3"/>
   <fraction n="0.95" ref="Air"/>
   <fraction n="0.05" ref="fibrous_glass"/>
  </material>

  <!-- Copied from protodune_v4.gdml -->
  <material name="foam_protoDUNEdp">
   <D value="0.135" unit="g/cm3"/>
   <composite n="17" ref="carbon"/>
   <composite n="16" ref="hydrogen"/>
   <composite n="2" ref="nitrogen"/>
   <composite n="4" ref="oxygen"/>
  </material>

  <material name="FR4">
   <D value="1.98281" unit="g/cm3"/>
   <fraction n="0.47" ref="epoxy_resin"/>
   <fraction n="0.53" ref="fibrous_glass"/>
  </material>

  <material name="STEEL_STAINLESS_Fe7Cr2Ni" formula="STEEL_STAINLESS_Fe7Cr2Ni">
   <D value="7.9300" unit="g/cm3"/>
   <fraction n="0.0010" ref="carbon"/>
   <fraction n="0.1792" ref="chromium"/>
   <fraction n="0.7298" ref="iron"/>
   <fraction n="0.0900" ref="nickel"/>
  </material>

  <material name="Copper_Beryllium_alloy25" formula="Copper_Beryllium_alloy25">
   <D value="8.26" unit="g/cm3"/>
   <fraction n="0.981" ref="copper"/>
   <fraction n="0.019" ref="beryllium"/>
  </material>

  <material name="LAr" formula="LAr">
   <D value="1.40" unit="g/cm3"/>
   <fraction n="1.0000" ref="argon"/>
  </material>

  <material name="ArGas" formula="ArGas">
   <D value="0.00166" unit="g/cm3"/>
   <fraction n="1.0" ref="argon"/>
  </material>

  <material formula=" " name="G10">
   <D value="1.7" unit="g/cm3"/>
   <fraction n="0.2805" ref="silicon"/>
   <fraction n="0.3954" ref="oxygen"/>
   <fraction n="0.2990" ref="carbon"/>
   <fraction n="0.0251" ref="hydrogen"/>
  </material>

  <material formula=" " name="Granite">
   <D value="2.7" unit="g/cm3"/>
   <fraction n="0.438" ref="oxygen"/>
   <fraction n="0.257" ref="silicon"/>
   <fraction n="0.222" ref="sodium"/>
   <fraction n="0.049" ref="aluminum"/>
   <fraction n="0.019" ref="iron"/>
   <fraction n="0.015" ref="potassium"/>
  </material>

  <material formula=" " name="ShotRock">
   <D value="1.62" unit="g/cm3"/>
   <fraction n="0.438" ref="oxygen"/>
   <fraction n="0.257" ref="silicon"/>
   <fraction n="0.222" ref="sodium"/>
   <fraction n="0.049" ref="aluminum"/>
   <fraction n="0.019" ref="iron"/>
   <fraction n="0.015" ref="potassium"/>
  </material>

  <material formula=" " name="Dirt">
   <D value="1.7" unit="g/cm3"/>
   <fraction n="0.438" ref="oxygen"/>
   <fraction n="0.257" ref="silicon"/>
   <fraction n="0.222" ref="sodium"/>
   <fraction n="0.049" ref="aluminum"/>
   <fraction n="0.019" ref="iron"/>
   <fraction n="0.015" ref="potassium"/>
  </material>

  <material formula=" " name="Concrete">
   <D value="2.3" unit="g/cm3"/>
   <fraction n="0.530" ref="oxygen"/>
   <fraction n="0.335" ref="silicon"/>
   <fraction n="0.060" ref="calcium"/>
   <fraction n="0.015" ref="sodium"/>
   <fraction n="0.020" ref="iron"/>
   <fraction n="0.040" ref="aluminum"/>
  </material>

  <material formula="H2O" name="Water">
   <D value="1.0" unit="g/cm3"/>
   <fraction n="0.1119" ref="hydrogen"/>
   <fraction n="0.8881" ref="oxygen"/>
  </material>

  <material formula="Ti" name="Titanium">
   <D value="4.506" unit="g/cm3"/>
   <fraction n="1." ref="titanium"/>
  </material>

  <material name="TPB" formula="TPB">
   <D value="1.40" unit="g/cm3"/>
   <fraction n="1.0000" ref="argon"/>
  </material>

  <material name="Glass">
   <D value="2.74351" unit="g/cm3"/>
   <fraction n="0.600" ref="SiO2"/>
   <fraction n="0.118" ref="Al2O3"/>
   <fraction n="0.001" ref="Fe2O3"/>
   <fraction n="0.224" ref="CaO"/>
   <fraction n="0.034" ref="MgO"/>
   <fraction n="0.010" ref="Na2O"/>
   <fraction n="0.013" ref="TiO2"/>
  </material>

  <material name="Acrylic">
   <D value="1.19" unit="g/cm3"/>
   <fraction n="0.600" ref="carbon"/>
   <fraction n="0.320" ref="oxygen"/>
   <fraction n="0.080" ref="hydrogen"/>
  </material>

  <material name="NiGas">
   <D value="0.001165" unit="g/cm3"/>
   <fraction n="1.000" ref="nitrogen"/>
  </material>

  <material name="PolyurethaneFoam">
   <D value="0.09" unit="g/cm3"/>
   <composite n="17" ref="carbon"/>
   <composite n="16" ref="hydrogen"/>
   <composite n="2" ref="nitrogen"/>
   <composite n="4" ref="oxygen"/>
  </material>



  <!-- preliminary values -->
  <material name="AirSteelMixture" formula="AirSteelMixture">
   <D value="0.116981067938689" unit="g/cm3"/>
   <fraction n="0.998" ref="STEEL_STAINLESS_Fe7Cr2Ni"/>
   <fraction n="0.002"   ref="Air"/>
  </material>

</materials>
<solids>
    <box name="Inner" lunit="cm" 
      x="101.443" 
      y="181.82875" 
      z="123.8"/>
    <box name="InnerUPlane" lunit="cm" 
      x="0.015" 
      y="173.025 + 0.015" 
      z="116.0475 + 0.015"/>
    <box name="InnerVPlane" lunit="cm" 
      x="0.015" 
      y="172.7075 + 0.015" 
      z="115.4125 + 0.015"/>
    <box name="InnerZPlane" lunit="cm" 
      x="0.015" 
      y="172.39" 
      z="114.496"/>
    <box name="InnerActive" lunit="cm"
      x="100.015"
      y="174.01875"
      z="123.8"/>

    <tube name="InnerWireVert"
      rmax="0.5*0.015"
      z="172.39"               
      deltaphi="360"
      aunit="deg"
      lunit="cm"/>

    <box name="Outer" lunit="cm" 
      x="101.443" 
      y="181.82875" 
      z="123.8"/>
    <box name="OuterUPlane" lunit="cm" 
      x="0.015" 
      y="173.025 + 0.015" 
      z="116.0475 + 0.015"/>
    <box name="OuterVPlane" lunit="cm" 
      x="0.015" 
      y="172.7075 + 0.015" 
      z="115.4125 + 0.015"/>
    <box name="OuterZPlane" lunit="cm" 
      x="0.015" 
      y="172.39" 
      z="114.496"/>
    <box name="OuterActive" lunit="cm"
      x="100.015"
      y="174.01875"
      z="123.8"/>

    <tube name="OuterWireVert"
      rmax="0.5*0.015"
      z="172.39"               
      deltaphi="360"
      aunit="deg"
      lunit="cm"/>

    <box name="Cryostat" lunit="cm" 
      x="210.4921" 
      y="323.96875" 
      z="165.54"/>
    <box name="ArgonInterior" lunit="cm" 
      x="207.9521"
      y="321.42875"
      z="163"/>
    <box name="GaseousArgon" lunit="cm" 
      x="207.9521"
      y="50"
      z="163"/>
    <subtraction name="SteelShell">
      <first ref="Cryostat"/>
      <second ref="ArgonInterior"/>
    </subtraction>

    <box name="Cathode" lunit="cm"
      x="0.016"
      y="176.36275"
      z="117.934"/>

    <box name="LightPaddle" lunit="cm"
      x="0.476"
      y="10.16"
      z="95.0925 + 0"/>

     <box name="APAFrameYSideHollow" lunit="cm"
      x="5.0661-2*0.3048"
      y="159.68-2*0.3048"
      z="10.16"/>
     <box name="APAFrameYSideShell" lunit="cm"
      x="5.0661"
      y="159.68"
      z="10.16"/>
     <subtraction name="APAFrameYSide">
      <first  ref="APAFrameYSideShell"/>
      <second ref="APAFrameYSideHollow"/>
      <positionref ref="posCenter"/>
      <rotationref ref="rIdentity"/>
      </subtraction>

     <box name="APAFrameZSideHollow" lunit="cm"
      x="5.0661-2*0.3048"
      y="10.16-2*0.3048"
      z="115.4125"/>
     <box name="APAFrameZSideShell" lunit="cm"
      x="5.0661"
      y="10.16"
      z="115.4125"/>
     <subtraction name="APAFrameZSide">
      <first  ref="APAFrameZSideShell"/>
      <second ref="APAFrameZSideHollow"/>
      <positionref ref="posCenter"/>
      <rotationref ref="rIdentity"/>
      </subtraction>

     <box name="APAFrameYOuterSupport" lunit="cm"
      x="0.3048"
      y="159.68"
      z="10.16"/>


     <box name="G10BoardYSideCenterSeg" lunit="cm"
      x="5.0661"
      y="180"
      z="0.3175"/>

     <box name="G10BoardZSideCenterSeg" lunit="cm"
      x="5.0661"
      y="0.3175"
      z="115.4125"/>



    <box name="FoamPadBlock" lunit="cm"
      x="210.4921 + 2*80"
      y="323.96875 + 2*80"
      z="165.54 + 2*80" />

    <box name="FoamPadInner" lunit="cm"
      x="210.4921 + 0.01"
      y="323.96875 + 0.01"
      z="165.54 + 0.01" />

    <subtraction name="FoamPadding">
      <first ref="FoamPadBlock"/>
      <second ref="FoamPadInner"/>
      <positionref ref="posCenter"/>
    </subtraction>

    <box name="SteelSupportBlock" lunit="cm"
      x="210.4921 + 2*80 + 2*100"
      y="323.96875 + 2*80 + 2*50"
      z="165.54 + 2*80 + 2*100" />

    <box name="SteelSupportInner" lunit="cm"
      x="210.4921 + 2*80 + 0.01"
      y="323.96875 + 2*80 + 0.01"
      z="165.54 + 2*80 + 0.01" />

    <subtraction name="SteelSupport">
      <first ref="SteelSupportBlock"/>
      <second ref="SteelSupportInner"/>
      <positionref ref="posCenter"/>
    </subtraction>

    <box name="DetEnclosure" lunit="cm" 
      x="670.4921"
      y="783.96875"
      z="725.54"/>


    <box name="World" lunit="cm" 
      x="670.4921+2*3000" 
      y="783.96875+2*3000" 
      z="725.54+2*3000"/>
</solids>
<structure>
    <volume name="volTPCActiveInner">
      <materialref ref="LAr"/>
      <solidref ref="InnerActive"/>
    </volume>

    <volume name="volTPCPlaneUInner">
      <materialref ref="LAr"/>
      <solidref ref="InnerUPlane"/>
    </volume>

    <volume name="volTPCPlaneVInner">
      <materialref ref="LAr"/>
      <solidref ref="InnerVPlane"/>
    </volume>

    <volume name="volTPCPlaneZInner">
      <materialref ref="LAr"/>
      <solidref ref="InnerZPlane"/>
    </volume>
    <volume name="volTPCInner">
      <materialref ref="LAr"/>
      <solidref ref="Inner"/>
     <physvol>
       <volumeref ref="volTPCPlaneZInner"/>
       <position name="posInnerPlaneZ" unit="cm" 
         x="-50.253" y="-3.09062500000002" z="0"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volTPCPlaneVInner"/>
       <position name="posInnerPlaneV" unit="cm" 
         x="-49.777" y="-3.24937500000001" z="0"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volTPCPlaneUInner"/>
       <position name="posInnerPlaneU" unit="cm" 
         x="-49.301" y="-3.40812500000001" z="0"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volTPCActiveInner"/>
       <position name="posInnerActive" unit="cm" 
         x="0.713999999999999" y="-3.905" z="0"/>
       <rotationref ref="rIdentity"/>
     </physvol>
    </volume>

    <volume name="volTPCActiveOuter">
      <materialref ref="LAr"/>
      <solidref ref="OuterActive"/>
    </volume>

    <volume name="volTPCPlaneUOuter">
      <materialref ref="LAr"/>
      <solidref ref="OuterUPlane"/>
    </volume>

    <volume name="volTPCPlaneVOuter">
      <materialref ref="LAr"/>
      <solidref ref="OuterVPlane"/>
    </volume>

    <volume name="volTPCPlaneZOuter">
      <materialref ref="LAr"/>
      <solidref ref="OuterZPlane"/>
    </volume>
    <volume name="volTPCOuter">
      <materialref ref="LAr"/>
      <solidref ref="Outer"/>
     <physvol>
       <volumeref ref="volTPCPlaneZOuter"/>
       <position name="posOuterPlaneZ" unit="cm" 
         x="-50.253" y="-3.09062500000002" z="0"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volTPCPlaneVOuter"/>
       <position name="posOuterPlaneV" unit="cm" 
         x="-49.777" y="-3.24937500000001" z="0"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volTPCPlaneUOuter"/>
       <position name="posOuterPlaneU" unit="cm" 
         x="-49.301" y="-3.40812500000001" z="0"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volTPCActiveOuter"/>
       <position name="posOuterActive" unit="cm" 
         x="0.713999999999999" y="-3.905" z="0"/>
       <rotationref ref="rIdentity"/>
     </physvol>
    </volume>

    <volume name="volSteelShell">
      <materialref ref="STEEL_STAINLESS_Fe7Cr2Ni" />
      <solidref ref="SteelShell" />
    </volume>
    <volume name="volGaseousArgon">
      <materialref ref="ArGas"/>
      <solidref ref="GaseousArgon"/>
    </volume>

    <volume name="volCathode">
      <materialref ref="STEEL_STAINLESS_Fe7Cr2Ni" />
      <solidref ref="Cathode" />
    </volume>
    <volume name="volOpDetSensitive_0-0">
      <materialref ref="LAr"/>
      <solidref ref="LightPaddle"/>
    </volume>
    <volume name="volOpDetSensitive_0-1">
      <materialref ref="LAr"/>
      <solidref ref="LightPaddle"/>
    </volume>
    <volume name="volOpDetSensitive_0-2">
      <materialref ref="LAr"/>
      <solidref ref="LightPaddle"/>
    </volume>
    <volume name="volOpDetSensitive_0-3">
      <materialref ref="LAr"/>
      <solidref ref="LightPaddle"/>
    </volume>
    <volume name="volOpDetSensitive_0-4">
      <materialref ref="LAr"/>
      <solidref ref="LightPaddle"/>
    </volume>
    <volume name="volOpDetSensitive_0-5">
      <materialref ref="LAr"/>
      <solidref ref="LightPaddle"/>
    </volume>
    <volume name="volOpDetSensitive_0-6">
      <materialref ref="LAr"/>
      <solidref ref="LightPaddle"/>
    </volume>
    <volume name="volOpDetSensitive_0-7">
      <materialref ref="LAr"/>
      <solidref ref="LightPaddle"/>
    </volume>
    <volume name="volOpDetSensitive_0-8">
      <materialref ref="LAr"/>
      <solidref ref="LightPaddle"/>
    </volume>
    <volume name="volOpDetSensitive_0-9">
      <materialref ref="LAr"/>
      <solidref ref="LightPaddle"/>
    </volume>

    <volume name="volAPAFrameYSide">
      <materialref ref="STEEL_STAINLESS_Fe7Cr2Ni"/>
      <solidref ref="APAFrameYSide"/>
    </volume>

    <volume name="volAPAFrameZSide">
      <materialref ref="STEEL_STAINLESS_Fe7Cr2Ni"/>
      <solidref ref="APAFrameZSide"/>
    </volume>

    <volume name="volAPAFrameYOuterSupport">
      <materialref ref="STEEL_STAINLESS_Fe7Cr2Ni"/>
      <solidref ref="APAFrameYOuterSupport"/>
    </volume>

    <volume name="volG10BoardYSideCenterSeg">
      <materialref ref="G10"/>
      <solidref ref="G10BoardYSideCenterSeg"/>
    </volume>

    <volume name="volG10BoardZSideCenterSeg">
      <materialref ref="G10"/>
      <solidref ref="G10BoardZSideCenterSeg"/>
    </volume>

    <volume name="volCryostat">
      <materialref ref="LAr" />
      <solidref ref="Cryostat" />
      <physvol>
        <volumeref ref="volGaseousArgon"/>
        <position name="posGaseousArgon" unit="cm" x="0" y="321.42875/2-50/2" z="0"/>
      </physvol>
      <physvol>
        <volumeref ref="volSteelShell"/>
        <position name="posSteelShell" unit="cm" x="0" y="0" z="0"/>
      </physvol>
      <physvol>
        <volumeref ref="volAPAFrameYSide"/>
        <position name="posAPAFrameYSideNeg-0" unit="cm" 
	x="0" 
	y="-24.285625" 
	z="0 - 115.4125/2 + 10.16/2"/> 
        <rotationref ref="rIdentity"/>
      </physvol>
      <physvol>
        <volumeref ref="volAPAFrameYSide"/>
        <position name="posAPAFrameYSidePos-0" unit="cm" 
	x="0" 
	y="-24.285625" 
	z="0 + 115.4125/2 - 10.16/2"/> 
        <rotationref ref="rIdentity"/>
      </physvol>
      <physvol>
        <volumeref ref="volAPAFrameZSide"/>
        <position name="posAPAFrameZSidePos-0" unit="cm" 
	x="0" 
	y="-24.285625 + 180/2 - 10.16/2" 
	z="0"/> 
        <rotationref ref="rIdentity"/>
      </physvol>
      <physvol>
        <volumeref ref="volAPAFrameZSide"/>
        <position name="posAPAFrameZSideNeg-0" unit="cm" 
	x="0" 
	y="-24.285625  - 180/2 + 10.16/2" 
	z="0"/> 
        <rotationref ref="rIdentity"/>
      </physvol>


      <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        - Add the *parts* of the G10 boards that exist directly in volCryostat.
	- There are two boards on each the up and downstream end, 
	    one each to wrap the U and V views around the APA frame
	- There are 4 on the bottom which anchor the U V and Z wires and the grid plane
	- The rest of the parts of the G10 boards must be placed directly in volTPC   -->

      <physvol>
        <volumeref ref="volG10BoardYSideCenterSeg"/>
        <position name="posG10BoardYSideCenterSeg-Vup-0" unit="cm" 
	x="0" 
	y="-24.285625" 
	z="0 - 115.4125/2 - (0+.5)*(0.3175)"/> 
        <rotationref ref="rIdentity"/>
      </physvol>
      <physvol>
        <volumeref ref="volG10BoardYSideCenterSeg"/>
        <position name="posG10BoardYSideCenterSeg-Uup-0" unit="cm" 
	x="0" 
	y="-24.285625" 
	z="0 - 115.4125/2 - (1+.5)*(0.3175)"/> 
        <rotationref ref="rIdentity"/>
      </physvol>

      <physvol>
        <volumeref ref="volG10BoardYSideCenterSeg"/>
        <position name="posG10BoardYSideCenterSeg-Vdown-0" unit="cm" 
	x="0" 
	y="-24.285625" 
	z="0 + 115.4125/2 + (0+.5)*(0.3175)"/> 
        <rotationref ref="rIdentity"/>
      </physvol>
      <physvol>
        <volumeref ref="volG10BoardYSideCenterSeg"/>
        <position name="posG10BoardYSideCenterSeg-Udown-0" unit="cm" 
	x="0" 
	y="-24.285625" 
	z="0 + 115.4125/2 + (1+.5)*(0.3175)"/> 
        <rotationref ref="rIdentity"/>
      </physvol>

      <physvol>
        <volumeref ref="volG10BoardZSideCenterSeg"/>
        <position name="posG10BoardZSideCenterSeg-Z-0" unit="cm" 
	x="0" 
	y="-114.444375" 
	z="0"/> 
        <rotationref ref="rIdentity"/>
      </physvol>
      <physvol>
        <volumeref ref="volG10BoardZSideCenterSeg"/>
        <position name="posG10BoardZSideCenterSeg-V-0" unit="cm" 
	x="0" 
	y="-114.761875" 
	z="0"/> 
        <rotationref ref="rIdentity"/>
      </physvol>
      <physvol>
        <volumeref ref="volG10BoardZSideCenterSeg"/>
        <position name="posG10BoardZSideCenterSeg-U-0" unit="cm" 
	x="0" 
	y="-115.079375" 
	z="0"/> 
        <rotationref ref="rIdentity"/>
      </physvol>
      <physvol>
        <volumeref ref="volG10BoardZSideCenterSeg"/>
        <position name="posG10BoardZSideCenterSeg-Grid-0" unit="cm" 
	x="0" 
	y="-115.396875"
	z="0"/> 
        <rotationref ref="rIdentity"/>
      </physvol>

     <physvol>
       <volumeref ref="volOpDetSensitive_0-0"/>
       <position name="posPaddle-0-TPC-1-0-0" unit="cm" 
         x="0" 
	 y="-100.474375" 
         z="0 + 0/2"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volOpDetSensitive_0-1"/>
       <position name="posPaddle-1-TPC-1-0-0" unit="cm" 
         x="0" 
	 y="-82.9597697368421" 
         z="0 + 0/2"/>
       <rotationref ref="rPlus180AboutY"/>
     </physvol>
     <physvol>
       <volumeref ref="volOpDetSensitive_0-2"/>
       <position name="posPaddle-2-TPC-1-0-0" unit="cm" 
         x="0" 
	 y="-65.4451644736842" 
         z="0 + 0/2"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volOpDetSensitive_0-3"/>
       <position name="posPaddle-3-TPC-1-0-0" unit="cm" 
         x="0" 
	 y="-47.9305592105263" 
         z="0 + 0/2"/>
       <rotationref ref="rPlus180AboutY"/>
     </physvol>
     <physvol>
       <volumeref ref="volOpDetSensitive_0-4"/>
       <position name="posPaddle-4-TPC-1-0-0" unit="cm" 
         x="0" 
	 y="-30.4159539473685" 
         z="0 + 0/2"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volOpDetSensitive_0-5"/>
       <position name="posPaddle-5-TPC-1-0-0" unit="cm" 
         x="0" 
	 y="-12.9013486842106" 
         z="0 + 0/2"/>
       <rotationref ref="rPlus180AboutY"/>
     </physvol>
     <physvol>
       <volumeref ref="volOpDetSensitive_0-6"/>
       <position name="posPaddle-6-TPC-1-0-0" unit="cm" 
         x="0" 
	 y="4.61325657894734" 
         z="0 + 0/2"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volOpDetSensitive_0-7"/>
       <position name="posPaddle-7-TPC-1-0-0" unit="cm" 
         x="0" 
	 y="22.1278618421052" 
         z="0 + 0/2"/>
       <rotationref ref="rPlus180AboutY"/>
     </physvol>
     <physvol>
       <volumeref ref="volOpDetSensitive_0-8"/>
       <position name="posPaddle-8-TPC-1-0-0" unit="cm" 
         x="0" 
	 y="39.6424671052631" 
         z="0 + 0/2"/>
       <rotationref ref="rIdentity"/>
     </physvol>
     <physvol>
       <volumeref ref="volOpDetSensitive_0-9"/>
       <position name="posPaddle-9-TPC-1-0-0" unit="cm" 
         x="0" 
	 y="57.157072368421" 
         z="0 + 0/2"/>
       <rotationref ref="rPlus180AboutY"/>
     </physvol>

      <physvol>
        <volumeref ref="volTPCInner"/>
        <position name="posTPC-0" unit="cm" 
	  x="0 - 5.0661/2 - 101.443/2" 
	  y="-25" 
	  z="0"/> 
        <rotationref ref="rPlus180AboutY"/>
      </physvol>
      <physvol>
        <volumeref ref="volTPCInner"/>
        <position name="posTPC-1" unit="cm"
	  x="0 + 5.0661/2 + 101.443/2" 
	  y="-25"
	  z="0"/>
        <rotationref ref="rIdentity"/>
      </physvol>

      <physvol>
        <volumeref ref="volCathode"/>
        <position name="posCathode-1-0" unit="cm" 
	x="-103.98405" 
	y="-25" 
	z="0"/> 
        <rotationref ref="rIdentity"/>
      </physvol>
      <physvol>
        <volumeref ref="volCathode"/>
        <position name="posCathode-1-1" unit="cm" 
	x="103.98405" 
	y="-25" 
	z="0"/> 
        <rotationref ref="rIdentity"/>
      </physvol>

    </volume>

    <volume name="volFoamPadding">
      <materialref ref="FD_foam"/>
      <solidref ref="FoamPadding"/>
    </volume>

    <volume name="volSteelSupport">
      <materialref ref="AirSteelMixture"/>
      <solidref ref="SteelSupport"/>
    </volume>

    <volume name="volDetEnclosure">
      <materialref ref="Air"/>
      <solidref ref="DetEnclosure"/>

       <physvol>
           <volumeref ref="volFoamPadding"/>
           <positionref ref="posCryoInDetEnc"/>
       </physvol>
       <physvol>
           <volumeref ref="volSteelSupport"/>
           <positionref ref="posCryoInDetEnc"/>
       </physvol>
       <physvol>
           <volumeref ref="volCryostat"/>
           <positionref ref="posCryoInDetEnc"/>
       </physvol>
    </volume>

    <volume name="volWorld" >
      <materialref ref="DUSEL_Rock"/>
      <solidref ref="World"/>

      <physvol>
        <volumeref ref="volDetEnclosure"/>
	<position name="posDetEnclosure" unit="cm" x="0" y="215.714375" z="58.02375"/>
      </physvol>

    </volume>
</structure>

<setup name="Default" version="1.0">
  <world ref="volWorld" />
</setup>

</gdml>
