Skip to content
Snippets Groups Projects
fake_dirc.xml 3.39 KiB
Newer Older
Sylvester Joosten's avatar
Sylvester Joosten committed
    <constant name="DIRCModule_count"           value="CaloSides" />

    <constant name="DIRCBar_thickness"          value="17*mm" />
    <constant name="DIRCBar_length"             value="DIRC_length-8*cm" />

    <constant name="DIRCSkinFront_thickness"    value="2.5*mm" />
    <constant name="DIRCSkinBack_thickness"     value="2.5*mm" />

    <constant name="DIRCFrame_width"            value="20*mm"/>
    <constant name="DIRCFrame_length"           value="DIRC_length"/>
    <constant name="DIRCFrame_thickness"        value="40*mm"/>

    <constant name="DIRCModule_rmax"            value="DIRC_rmin + DIRCBar_thickness + DIRCSkinFront_thickness + DIRCSkinBack_thickness"/>
    <constant name="DIRCModule_thickness"       value="DIRCModule_rmax - DIRC_rmin" />
    <constant name="DIRCFrame_rmax"             value="DIRC_rmin + DIRCFrame_thickness" />

Sylvester Joosten's avatar
Sylvester Joosten committed
    <constant name="DIRCModule_halfangle"       value="180*degree/DIRCModule_count" />
    <constant name="DIRCModule_width"           value="2*DIRC_rmin * tan(DIRCModule_halfangle)"/>

    <constant name="DIRCModule_rmin"            value="DIRC_rmin + 1*cm"/>

  </define>


  <materials>
  </materials>

  <limits>
  </limits>

  <regions>
  </regions>

  <display>
  </display>

  <detectors>
    <detector id="BarrelDIRC_ID" name="FakeDIRC" type="athena_FakeDIRC" readout="DIRCBarHits" vis="DIRCVis">
      <dimensions rmin="DIRC_rmin" rmax="DIRC_rmax" length="DIRC_length" />
      <position x="0" y="0" z="DIRC_offset" />
      <comment> Fake DIRC modules </comment>
      <module name="DIRCModule" vis="DIRCModuleVis">
        <module_component name="FrontSkin"
               material="CarbonFiber"
               sensitive="false"
               width="DIRCModule_width"
               thickness="DIRCSkinFront_thickness"
               length="DIRCBar_length" />
        <module_component name="QuartzBar"
               material="Quartz"
               sensitive="true"
               width="DIRCModule_width"
               thickness="DIRCBar_thickness"
               vis="DIRCBarVis"
               length="DIRCBar_length" />
        <module_component name="BackSkin"
               material="CarbonFiber"
               sensitive="false"
               width="DIRCModule_width"
               thickness="DIRCSkinBack_thickness"
               vis="DIRCSupportVis"
               length="DIRCBar_length" />
        <frame material="StainlessSteel"
               width="DIRCFrame_width"
               length="DIRCFrame_length"
               vis="DIRCFrameVis"
               thickness="DIRCFrame_thickness" />
      </module>
      <comment> Fake DIRC layers </comment>
      <layer module="DIRCModule" id="1" vis="DIRCLayerVis">
        <barrel_envelope
          inner_r="DIRC_rmin"
          outer_r="DIRC_rmax"
          z_length="DIRC_length" />
        <rphi_layout
          phi_tilt="0"
          nphi="DIRCModule_count"
          phi0="0"
          rc="0.5*(DIRCModule_rmin+DIRCModule_rmax)"
          dr="0" />
        <z_layout 
          dr="0.0*mm"
          z0="0.0*mm"
          nz="1" />
      </layer>
    </detector>
  </detectors>

  <readouts>
    <readout name="DIRCBarHits">
      <segmentation type="CartesianGridXY" grid_size_x="3.0*mm" grid_size_y="3.0*mm" />
      <id>system:8,layer:4,module:8,section:4,x:32:-16,y:-16</id>
    </readout>
  </readouts>

  <plugins>
  </plugins>

  <fields>
  </fields>
</lccdd>