<?xml version="1.0" encoding="UTF-8"?>
<lccdd>
  <define>
    <constant name="ce_MRICHRMin"   value="15*cm"/>
    <constant name="ce_MRICHRMax"   value="BarrelTracking_rmax"/>
    <constant name="ce_MRICHLength" value="BackwardCherenkov_length"/>
    <constant name="ce_MRICHZMin"   value="-BarrelTracking_length/2.0 - BackwardTracking_length"/>

  </define>

  <detectors>
    <detector id="ce_MRICH_ID" name="ce_MRICH" type="refdet_ce_MRICH" readout="MRICHHits" vis="BlueVis" material="Air">
      <dimensions rmin="ce_MRICHRMin" rmax="ce_MRICHRMax" length="ce_MRICHLength" z="ce_MRICHZMin"/>
      <modules material="Quartz" thickness="10*cm" width="10*cm" gap="1*cm" />
    </detector>
  </detectors>

  <readouts>
    <readout name="MRICHHits">
      <segmentation type="CartesianGridXY" grid_size_x="3*mm" grid_size_y="3*mm" />
      <id>system:8,sector:8,module:14,x:32:-16,y:-16</id>
    </readout>
  </readouts>

</lccdd>