Back to home page

EIC code displayed by LXR

 
 

    


Warning, /athena/compact/central_tracker_hybrid_v2.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <lccdd>
0003   <comment>
0004     Master tracker parameters
0005 
0006       Central Tracking region consists of:
0007       |----------------------------------------------------------------------------|
0008       |         |                       OuterBarrel                      |         |
0009       |         |--------------------------------------------------------|         |
0010       |         |         |            MedialBarrel            |         |         |
0011       |         |         |------------------------------------|         |         |
0012       |         |         |         |  InnerBarrel   |         |         |         |
0013       |         |         |         |----------------|         |         |         |
0014       |  Outer  | Medial  |  Inner  | Vertex Tracker |  Inner  | Medial  |  Outer  |
0015       | EndcapN | EndcapN | EndcapN | Vertex Tracker | EndcapP | EndcapP | EndcapP |
0016       |----------------------------------------------------------------------------|
0017       ^                                                                            ^
0018       CentralTrackingRegionN_zmax                          CentralTrackingRegionP_zmax
0019 
0020   </comment>
0021   <define>
0022     <comment> Inner tracker setup </comment>
0023     <constant name="InnerTrackerBarrel_rmin"                value="13.38*cm"/>
0024     <constant name="InnerTrackerBarrel_offset"              value="4.62*cm"/>
0025     <constant name="InnerTrackerBarrel_count"               value="2"/>
0026     <constant name="InnerTrackerBarrelMod_width"            value="4.*cm"/>
0027     <constant name="InnerTrackerBarrelCone_zmin"            value="16.8*cm"/>
0028     <constant name="InnerTrackerBarrelCone_zmax"            value="24.54*cm"/>
0029     <constant name="InnerTrackerEndcap_zmin"                value="25*cm"/>
0030     <constant name="InnerTrackerEndcap_rmin"                value="Beampipe_rmax + 50*um"/>
0031     <constant name="InnerTrackerEndcap_offset"              value="24*cm"/>
0032     <constant name="InnerTrackerEndcap_count"               value="2"/>
0033 
0034     <comment> Medial tracker setup </comment>
0035     <constant name="MedialTrackerBarrel_rmin"               value="47.72*cm"/>
0036     <constant name="MedialTrackerBarrel_offset"             value="1.85*cm"/>
0037     <constant name="MedialTrackerBarrel_count"              value="2"/>
0038     <constant name="MedialTrackerEndcap_zmin"               value="73*cm"/>
0039     <constant name="MedialTrackerEndcap_offset"             value="0*cm"/>
0040     <constant name="MedialTrackerEndcap_count"              value="1"/>
0041     <constant name="MedialTrackerEndcapP_rmin"              value="Beampipe_rmax + 3*mm"/>
0042     <constant name="MedialTrackerEndcapN_rmin"              value="InnerTrackerEndcap_rmin"/>
0043 
0044     <comment> Outer tracker setup </comment>
0045     <constant name="OuterTrackerBarrel_rmin"                value="75.61*cm"/>
0046     <constant name="OuterTrackerBarrel_offset"              value="1.85*cm"/>
0047     <constant name="OuterTrackerBarrel_count"               value="2"/>
0048     <constant name="OuterTrackerEndcapP_zmin"               value="103.67*cm"/>
0049     <constant name="OuterTrackerEndcapP_offset"             value="30.66*cm"/>
0050     <constant name="OuterTrackerEndcapP_count"              value="3"/>
0051     <constant name="OuterTrackerEndcapN_zmin"               value="109*cm"/>
0052     <constant name="OuterTrackerEndcapN_offset"             value="36.00*cm"/>
0053     <constant name="OuterTrackerEndcapN_count"              value="2"/>
0054     
0055     <comment> Gem disk setup. 
0056       Note: some GEM disk z-positions are moved slightly (below in the parametrization)
0057             to avoid vertical overlaps with the silicon disks (which is not allowed by ACTS).
0058             @FIXME
0059     </comment>
0060     <constant name="GEMEndcapPDisk1_zmin"                   value="103*cm"/>
0061     <constant name="GEMEndcapPDisk2_zmin"                   value="164.5"/>
0062     <constant name="GEMEndcapPDisk3_zmin"                   value="ForwardTrackingRegion_zmin + 2*cm"/>
0063     <constant name="GEMEndcapP_count"                       value="3"/>
0064     <constant name="GEMEndcapN_zmin"                        value="103*cm"/>
0065     <constant name="GEMEndcapN_offset"                      value="41.5*cm"/>
0066     <constant name="GEMEndcapN_count"                       value="2"/>
0067 
0068     <comment> Silicon tracker parameters </comment>
0069     <constant name="SiTrackerBarrelSpaceFrameCF_thickness"  value="0.12*mm"/> 
0070     <constant name="SiTrackerBarrelSpaceFrame_height"       value="1.0*cm"/>
0071     <constant name="SiTrackerEndcapAl_thickness"            value="0.15*mm"/> 
0072     <constant name="SiTrackerEndcapCF_thickness"            value="0.12*mm"/>
0073     <constant name="SiTrackerEndcapMod_count"               value="36"/>
0074     <constant name="SiTrackerEndcapMod_dz"                  value="0" />
0075     <constant name="SiTrackerEndcapMod_overlap"             value="0"/>
0076     <constant name="SiTrackerSensor_thickness"              value="40*um"/>
0077     <constant name="SiTrackerCyl_rmin"                      value="43.23" />
0078     <constant name="SiTrackerServiceConeAl_thickness"       value="2.5*mm" />
0079     <constant name="SiTrackerServiceCylAl_thickness"        value="2.5*mm" />
0080     <constant name="SiTrackerSupportConeCF_thickness"       value="2*mm" />
0081     <constant name="SiTrackerSupportCylCF_thickness"        value="2*mm" />
0082 
0083     <comment> MMGAS tracker parameters </comment>
0084     <constant name="MMKaptonOverlay_thickness"              value="50*um"/>
0085     <constant name="MMCuGround_thickness"                   value="1.58*um"/>
0086     <constant name="MMPCB_thickness"                        value="100*um"/>
0087     <constant name="MMCuStrip_thickness"                    value="12*um"/>
0088     <constant name="MMKaptonStrip_thickness"                value="75*um"/>
0089     <constant name="MMResistiveStrip_thickness"             value="128*um"/>
0090     <constant name="MMGas_thickness"                        value="20*um"/>
0091     <constant name="MMMesh_thickness"                       value="18*um"/>
0092     <constant name="MMGasGap_thickness"                     value="3000*um"/>
0093     <constant name="MMDriftCuElectrode_thickness"           value="5*um"/>
0094     <constant name="MMDriftKapton_thickness"                value="250*um"/>
0095     <constant name="MMDriftCuGround_thickness"              value="0.41*um"/>
0096 
0097     <comment> GEM tracker parameters </comment>
0098     <constant name="GEMEndcapMod_count"                     value="12"/>
0099     <constant name="GEMFrame_thickness"                     value="13.0*mm"/>
0100     <constant name="GEMFrameBotEdge_width"                  value="10.0*mm"/>
0101     <constant name="GEMFrameTopEdge_width"                  value="50.0*mm"/>
0102     <constant name="GEMFrameSideEdge_width"                 value="10.0*mm"/>
0103     <constant name="GEMSpoke_thickness"                     value="1.0*mm"/>
0104     <constant name="GEMSpoke_width"                         value="GEMFrameSideEdge_width"/>
0105     <comment> Account for the fact that GEMs have holes, so they are not solid volumes </comment>
0106     <constant name="GEMAreaFactor" value="0.80" />
0107     <comment> GEM layers </comment>
0108     <constant name="GEMMylar_thickness"                     value="25.0*um"/>
0109     <constant name="GEMGas_thickness"                       value="2.0*mm"/>
0110     <constant name="GEMDriftRegion_thickness"               value="3.0*mm"/>
0111     <constant name="GEMKapton_thickness"                    value="50*um"/>
0112     <constant name="GEMCuFoil_thickness"                    value="10*um"/>
0113     <constant name="GEMCuElectrode_thickness"               value="5.0*um"/>
0114 
0115   </define>
0116 
0117   <documentation>
0118     ## Inner silicon tracker barrel
0119     ### Silicon Tracker
0120 
0121 #### Some references:
0122 
0123 - With some added info on ITS3 chip from https://indico.bnl.gov/event/10677/contributions/45591/attachments/33204/53254/20210318-IR2%40EIC-SVT.pdf
0124 To be used as standin until we get more detailed specs from the working group on the tracker.
0125 - https://wiki.bnl.gov/athena/index.php/Tracking
0126 
0127 #### ITS3 sensors
0128 
0129 ITS3 sensor thickness: 
0130 - 40um, pixel size: 10um (segmentation)
0131 - total X0 0.55% per barrel layer:
0132 -  0.35 mm aluminum ~ 0.4% X0. 
0133 -  2 x carbonfiber (RL ~ 28) 0.12 mm (!!! material scan shows ~0.17mm, need to check later) to match Si (RL~9) of 0.04mm ~ 0.04%
0134 
0135 total X0 0.24% per disk layer (4 sectors per disk):
0136   - 0.15 mm aluminum ~ 0.16% X0. 
0137   - 1 x carbonfiber (RL ~ 28) 0.12 mm to match Si (RL~9) of 0.04mm ~ 0.04%
0138 
0139   </documentation>
0140   <define>
0141     <constant name="InnerTrackerBarrelMod1_rmin"         value="InnerTrackerBarrel_rmin" />
0142     <constant name="InnerTrackerBarrelMod2_rmin"         value="InnerTrackerBarrelMod1_rmin + 1 * InnerTrackerBarrel_offset" />
0143     <constant name="InnerTrackerBarrelCone_length"       value="InnerTrackerBarrelCone_zmax - InnerTrackerBarrelCone_zmin" />
0144     <constant name="InnerTrackerBarrelCone_z"            value="(InnerTrackerBarrelCone_zmax + InnerTrackerBarrelCone_zmin)/2" />
0145     <constant name="InnerTrackerBarrelCone_thickness"    value="SiTrackerSupportConeCF_thickness + SiTrackerServiceConeAl_thickness" />
0146     <comment> Shorten Module (with non-zero thickness!) to avoid overlaps with support cone</comment>
0147     <constant name="InnerTrackerBarrelMod1_length"       value="2 * InnerTrackerBarrelMod1_rmin / CentralTrackingBarrel_tan - 0.5*cm - 2. * InnerTrackerBarrelCone_thickness" /> 
0148     <constant name="InnerTrackerBarrelMod2_length"       value="2 * InnerTrackerBarrelMod2_rmin / CentralTrackingBarrel_tan - 0.5*cm - 2. * InnerTrackerBarrelCone_thickness" /> 
0149     <constant name="InnerTrackerBarrelServiceCone_rmin1" value="InnerTrackerBarrelCone_zmin * CentralTrackingBarrel_tan" />
0150     <constant name="InnerTrackerBarrelServiceCone_rmax1" value="InnerTrackerBarrelServiceCone_rmin1 + SiTrackerServiceConeAl_thickness" />
0151     <constant name="InnerTrackerBarrelServiceCone_rmin2" value="InnerTrackerBarrelCone_zmax * CentralTrackingBarrel_tan" />
0152     <constant name="InnerTrackerBarrelServiceCone_rmax2" value="InnerTrackerBarrelServiceCone_rmin2 + SiTrackerServiceConeAl_thickness" />
0153     <constant name="InnerTrackerBarrelSupportCone_rmin1" value="InnerTrackerBarrelServiceCone_rmax1" />
0154     <constant name="InnerTrackerBarrelSupportCone_rmax1" value="InnerTrackerBarrelSupportCone_rmin1 + SiTrackerSupportConeCF_thickness" />
0155     <constant name="InnerTrackerBarrelSupportCone_rmin2" value="InnerTrackerBarrelServiceCone_rmax2" />
0156     <constant name="InnerTrackerBarrelSupportCone_rmax2" value="InnerTrackerBarrelSupportCone_rmin2 + SiTrackerSupportConeCF_thickness" />
0157     <constant name="InnerTrackerBarrelLayer1_length"     value="InnerTrackerBarrelMod1_length + 1*um" />
0158     <constant name="InnerTrackerBarrelLayer2_length"     value="InnerTrackerBarrelMod2_length + 1*um" />
0159     <constant name="InnerTrackerBarrelLayer_thickness"   value="1.1*cm" />
0160     <comment> Place asymmetrically in the layer (module sits near the bottom). </comment>
0161     <constant name="InnerTrackerBarrelLayer1_rmin"       value="InnerTrackerBarrelMod1_rmin - InnerTrackerBarrelLayer_thickness / 25" />
0162     <constant name="InnerTrackerBarrelLayer2_rmin"       value="InnerTrackerBarrelMod2_rmin - InnerTrackerBarrelLayer_thickness / 25" />
0163     <constant name="InnerTrackerBarrelLayer1_rmax"       value="InnerTrackerBarrelLayer1_rmin + InnerTrackerBarrelLayer_thickness" />
0164     <constant name="InnerTrackerBarrelLayer2_rmax"       value="InnerTrackerBarrelLayer2_rmin + InnerTrackerBarrelLayer_thickness" />
0165     <constant name="InnerTrackerBarrelEnvelope_length"   value="2 * InnerTrackerBarrelCone_zmax" />
0166     <constant name="InnerTrackerBarrelEnvelope_rmin"     value="VertexTrackingRegion_rmax" />
0167     <constant name="InnerTrackerBarrelEnvelope_rmax"     value="InnerTrackerBarrelLayer2_rmax" />
0168     <comment> Barrel staves, nmodules = np.pi/np.arcsin(frame_width*np.cos(tilt_angle)/2.0/R) </comment>
0169     <comment> (rounded up by 2 to avoid holes)</comment>
0170     <constant name="InnerTrackerBarrelModTilt_angle"     value="3.0*degree"/>
0171     <constant name="InnerTrackerBarrelMod1_count"        value="floor(180.*degree/asin(InnerTrackerBarrelMod_width*cos(InnerTrackerBarrelModTilt_angle)/2/InnerTrackerBarrelMod1_rmin))+2"/>
0172     <constant name="InnerTrackerBarrelMod2_count"        value="floor(180.*degree/asin(InnerTrackerBarrelMod_width*cos(InnerTrackerBarrelModTilt_angle)/2/InnerTrackerBarrelMod2_rmin))+2"/>
0173   </define>
0174   <detectors>
0175     <detector
0176       id="TrackerBarrel_0_ID"
0177       name="InnerTrackerBarrel"
0178       type="athena_TrackerBarrel"
0179       readout="TrackerBarrelHits"
0180       insideTrackingVolume="true">
0181       <dimensions
0182         rmin="InnerTrackerBarrelEnvelope_rmin"
0183         rmax="InnerTrackerBarrelEnvelope_rmax" 
0184         length="InnerTrackerBarrelEnvelope_length"/>
0185       <support material="Aluminum" name="serv_cone_pos" vis="TrackerServiceVis">
0186         <shape type="Cone"
0187           rmin1="InnerTrackerBarrelServiceCone_rmin1"
0188           rmax1="InnerTrackerBarrelServiceCone_rmax1"
0189           rmin2="InnerTrackerBarrelServiceCone_rmin2"
0190           rmax2="InnerTrackerBarrelServiceCone_rmax2" 
0191           z="InnerTrackerBarrelCone_length/2"/>
0192         <position x="0*cm" y="0*cm" z="InnerTrackerBarrelCone_z" />
0193       </support>
0194       <support material="CarbonFiber" name="sup_cone_pos" vis="TrackerSupportVis">
0195         <shape type="Cone"
0196           rmin1="InnerTrackerBarrelSupportCone_rmin1"
0197           rmax1="InnerTrackerBarrelSupportCone_rmax1"
0198           rmin2="InnerTrackerBarrelSupportCone_rmin2"
0199           rmax2="InnerTrackerBarrelSupportCone_rmax2" 
0200           z="InnerTrackerBarrelCone_length/2"/>
0201         <position x="0*cm" y="0*cm" z="InnerTrackerBarrelCone_z" />
0202       </support>
0203       <support material="Aluminum" name="serv_cone_neg" vis="TrackerServiceVis">
0204         <shape type="Cone"
0205           rmin1="InnerTrackerBarrelServiceCone_rmin2"
0206           rmax1="InnerTrackerBarrelServiceCone_rmax2"
0207           rmin2="InnerTrackerBarrelServiceCone_rmin1"
0208           rmax2="InnerTrackerBarrelServiceCone_rmax1" 
0209           z="InnerTrackerBarrelCone_length/2"/>
0210         <position x="0*cm" y="0*cm" z="-InnerTrackerBarrelCone_z" />
0211       </support>
0212       <support material="CarbonFiber" name="sup_cone_neg" vis="TrackerSupportVis">
0213         <shape type="Cone"
0214           rmin1="InnerTrackerBarrelSupportCone_rmin2"
0215           rmax1="InnerTrackerBarrelSupportCone_rmax2"
0216           rmin2="InnerTrackerBarrelSupportCone_rmin1"
0217           rmax2="InnerTrackerBarrelSupportCone_rmax1" 
0218           z="InnerTrackerBarrelCone_length/2"/>
0219         <position x="0*cm" y="0*cm" z="-InnerTrackerBarrelCone_z" />
0220       </support>
0221       <comment>
0222         Tracker Barrel Modules
0223       </comment>
0224       <module name="InnerTrackerBarrel_Mod1" vis="TrackerModuleVis">
0225         <frame material="CarbonFiber" vis="TrackerSupportVis" 
0226           width="InnerTrackerBarrelMod_width"  
0227           height="SiTrackerBarrelSpaceFrame_height" 
0228           length="InnerTrackerBarrelMod1_length"
0229           thickness="SiTrackerBarrelSpaceFrameCF_thickness" />
0230         <module_component name="silicon" 
0231           width="InnerTrackerBarrelMod_width"
0232           length="InnerTrackerBarrelMod1_length" thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0233         <module_component name="aluminum1" material="Aluminum" sensitive="false"
0234           width="InnerTrackerBarrelMod_width" length="InnerTrackerBarrelMod1_length" thickness="0.4*mm" vis="TrackerServiceVis"/>
0235       </module>
0236       <module name="InnerTrackerBarrel_Mod2" vis="TrackerModuleVis">
0237         <frame material="CarbonFiber" vis="TrackerSupportVis" 
0238           width="InnerTrackerBarrelMod_width"  
0239           height="SiTrackerBarrelSpaceFrame_height" 
0240           length="InnerTrackerBarrelMod2_length"
0241           thickness="SiTrackerBarrelSpaceFrameCF_thickness" />
0242         <module_component name="silicon" 
0243           width="InnerTrackerBarrelMod_width"
0244           length="InnerTrackerBarrelMod2_length" thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0245         <module_component name="aluminum1" material="Aluminum" sensitive="false"
0246           width="InnerTrackerBarrelMod_width" length="InnerTrackerBarrelMod2_length" thickness="0.4*mm" vis="TrackerServiceVis" />
0247       </module>
0248       <layer module="InnerTrackerBarrel_Mod1" id="1" vis="TrackerLayerVis">
0249         <barrel_envelope
0250           inner_r="InnerTrackerBarrelLayer1_rmin"
0251           outer_r="InnerTrackerBarrelLayer1_rmax"
0252           z_length="InnerTrackerBarrelLayer1_length"/>
0253         <layer_material surface="outer" binning="binPhi,binZ" bins0="100*InnerTrackerBarrelMod1_count" bins1="100" />
0254         <rphi_layout phi_tilt="InnerTrackerBarrelModTilt_angle" nphi="InnerTrackerBarrelMod1_count" phi0="0.0" rc="InnerTrackerBarrelMod1_rmin" dr="0.0 * mm"/>
0255         <z_layout dr="0.0 * mm" z0="0.0 * mm" nz="1"/>
0256       </layer>
0257       <layer module="InnerTrackerBarrel_Mod2" id="2" vis="TrackerLayerVis">
0258         <barrel_envelope
0259           inner_r="InnerTrackerBarrelLayer2_rmin"
0260           outer_r="InnerTrackerBarrelLayer2_rmax"
0261           z_length="InnerTrackerBarrelLayer2_length"/>
0262         <layer_material surface="outer" binning="binPhi,binZ" bins0="100*InnerTrackerBarrelMod2_count" bins1="100" />
0263         <rphi_layout phi_tilt="InnerTrackerBarrelModTilt_angle" nphi="InnerTrackerBarrelMod2_count" phi0="0.0" rc="InnerTrackerBarrelMod2_rmin" dr="0.0 * mm"/>
0264         <z_layout dr="0.0 * mm" z0="0.0 * mm" nz="1"/>
0265       </layer>
0266     </detector>
0267   </detectors>
0268   <documentation>
0269     ## Inner silicon tracker disks, symmetric between N and P
0270   </documentation>
0271   <define>
0272     <comment> Global Si endcap variables </comment>
0273     <constant name="SiTrackerEndcapMod_thickness"   value="SiTrackerEndcapCF_thickness + SiTrackerEndcapAl_thickness + SiTrackerSensor_thickness" />
0274     <constant name="SiTrackerEndcapMod_angle"       value="360.0*degree / SiTrackerEndcapMod_count * (1 + SiTrackerEndcapMod_overlap)" />
0275     <constant name="SiTrackerEndcapLayer_thickness" value="SiTrackerEndcapMod_thickness + 2 * SiTrackerEndcapMod_dz + 1*um" />
0276     <constant name="SiTrackerServiceCyl_rmin" value="SiTrackerCyl_rmin"/>
0277     <constant name="SiTrackerServiceCyl_rmax" value="SiTrackerServiceCyl_rmin + SiTrackerServiceCylAl_thickness"/>
0278     <constant name="SiTrackerSupportCyl_rmin" value="SiTrackerServiceCyl_rmax"/>
0279     <constant name="SiTrackerSupportCyl_rmax" value="SiTrackerSupportCyl_rmin + SiTrackerSupportCylCF_thickness"/>
0280 
0281     <comment> Inner Si endcap setup </comment>
0282     <constant name="InnerTrackerEndcapMod1_zmin"  value="InnerTrackerEndcap_zmin" />
0283     <constant name="InnerTrackerEndcapMod1_rmin"  value="InnerTrackerEndcap_rmin" />
0284     <constant name="InnerTrackerEndcapMod1_rmax"  value="min(InnerTrackerEndcapMod1_zmin * CentralTrackingBarrel_tan * 0.995, SiTrackerCyl_rmin)" />
0285     <constant name="InnerTrackerEndcapMod1_x1"    value="2 * InnerTrackerEndcapMod1_rmin * tan(SiTrackerEndcapMod_angle/2)" />
0286     <constant name="InnerTrackerEndcapMod1_x2"    value="2 * InnerTrackerEndcapMod1_rmax * sin(SiTrackerEndcapMod_angle/2)" />
0287     <constant name="InnerTrackerEndcapMod1_y"     value="InnerTrackerEndcapMod1_rmax * cos(SiTrackerEndcapMod_angle/2) - InnerTrackerEndcapMod1_rmin" />
0288 
0289     <constant name="InnerTrackerEndcapMod2_zmin"  value="InnerTrackerEndcapMod1_zmin + 1 * InnerTrackerEndcap_offset" />
0290     <constant name="InnerTrackerEndcapMod2_rmin"  value="InnerTrackerEndcap_rmin" />
0291     <constant name="InnerTrackerEndcapMod2_rmax"  value="min(InnerTrackerEndcapMod2_zmin * CentralTrackingBarrel_tan * 0.995, SiTrackerCyl_rmin)" />
0292     <constant name="InnerTrackerEndcapMod2_x1"    value="2 * InnerTrackerEndcapMod2_rmin * tan(SiTrackerEndcapMod_angle/2)" />
0293     <constant name="InnerTrackerEndcapMod2_x2"    value="2 * InnerTrackerEndcapMod2_rmax * sin(SiTrackerEndcapMod_angle/2)" />
0294     <constant name="InnerTrackerEndcapMod2_y"     value="InnerTrackerEndcapMod2_rmax * cos(SiTrackerEndcapMod_angle/2) - InnerTrackerEndcapMod2_rmin" />
0295 
0296     <constant name="InnerTrackerEndcapLayer1_rmin"        value="InnerTrackerEndcapMod1_rmin - 1*um" />
0297     <constant name="InnerTrackerEndcapLayer1_rmax"        value="InnerTrackerEndcapMod1_rmax + 1*um" />
0298     <constant name="InnerTrackerEndcapLayer1_zmin"        value="InnerTrackerEndcapMod1_zmin - SiTrackerEndcapLayer_thickness/2" />
0299     <constant name="InnerTrackerEndcapLayer2_rmin"        value="InnerTrackerEndcapMod2_rmin - 1*um" />
0300     <constant name="InnerTrackerEndcapLayer2_rmax"        value="InnerTrackerEndcapMod2_rmax + 1*um" />
0301     <constant name="InnerTrackerEndcapLayer2_zmin"        value="InnerTrackerEndcapMod2_zmin - SiTrackerEndcapLayer_thickness/2" />
0302 
0303     <constant name="InnerTrackerEndcapCone_zmin"          value="InnerTrackerBarrelCone_zmax" />
0304     <constant name="InnerTrackerEndcapServiceCone_rmin1"  value="InnerTrackerEndcapCone_zmin * CentralTrackingBarrel_tan" />
0305     <constant name="InnerTrackerEndcapServiceCone_rmax1"  value="InnerTrackerEndcapServiceCone_rmin1 + SiTrackerServiceConeAl_thickness" />
0306     <constant name="InnerTrackerEndcapServiceCone_rmin2"  value="SiTrackerServiceCyl_rmin" />
0307     <constant name="InnerTrackerEndcapServiceCone_rmax2"  value="SiTrackerServiceCyl_rmax" />
0308     <constant name="InnerTrackerEndcapCone_zmax"          value="InnerTrackerEndcapServiceCone_rmin2 / CentralTrackingBarrel_tan" />
0309     <constant name="InnerTrackerEndcapCone_z"             value="(InnerTrackerEndcapCone_zmax + InnerTrackerEndcapCone_zmin)/2" />
0310     <constant name="InnerTrackerEndcapCone_length"        value="InnerTrackerEndcapCone_zmax - InnerTrackerEndcapCone_zmin" />
0311     <constant name="InnerTrackerEndcapSupportCone_rmin1"  value="InnerTrackerEndcapServiceCone_rmax1" />
0312     <constant name="InnerTrackerEndcapSupportCone_rmax1"  value="InnerTrackerEndcapSupportCone_rmin1 + SiTrackerSupportConeCF_thickness" />
0313     <constant name="InnerTrackerEndcapSupportCone_rmin2"  value="SiTrackerSupportCyl_rmin" />
0314     <constant name="InnerTrackerEndcapSupportCone_rmax2"  value="SiTrackerSupportCyl_rmax" />
0315 
0316     <comment> The tracker endcap ends at the same place as the medial tracker barrel that sits around it </comment>
0317     <constant name="InnerTrackerEndcap_zmax"              value="MedialTrackerBarrel_rmin / CentralTrackingBarrel_tan" />
0318     <constant name="InnerTrackerEndcapCyl_zmin"           value="InnerTrackerEndcapCone_zmax" />
0319     <constant name="InnerTrackerEndcapCyl_zmax"           value="InnerTrackerEndcap_zmax" />
0320     <constant name="InnerTrackerEndcapCyl_z"              value="(InnerTrackerEndcapCyl_zmin + InnerTrackerEndcapCyl_zmax)/2" />
0321     <constant name="InnerTrackerEndcapCyl_length"         value="InnerTrackerEndcapCyl_zmax - InnerTrackerEndcapCyl_zmin" />
0322 
0323   </define>
0324   <detectors>
0325     <detector
0326       id="TrackerEndcapP_0_ID"
0327       name="InnerTrackerEndcapP"
0328       type="athena_TrapEndcapTracker"
0329       readout="TrackerEndcapHits1"
0330       vis="TrackerVis"
0331       reflect="false">
0332       <support material="Aluminum" name="serv_cone_pos" vis="TrackerServiceVis">
0333         <shape type="Cone"
0334           rmin1="InnerTrackerEndcapServiceCone_rmin1"
0335           rmax1="InnerTrackerEndcapServiceCone_rmax1"
0336           rmin2="InnerTrackerEndcapServiceCone_rmin2"
0337           rmax2="InnerTrackerEndcapServiceCone_rmax2" 
0338           z="InnerTrackerEndcapCone_length/2"/>
0339         <position x="0*cm" y="0*cm" z="InnerTrackerEndcapCone_z" />
0340       </support>
0341       <support material="CarbonFiber" name="sup_cone_pos" vis="TrackerSupportVis">
0342         <shape type="Cone"
0343           rmin1="InnerTrackerEndcapSupportCone_rmin1"
0344           rmax1="InnerTrackerEndcapSupportCone_rmax1"
0345           rmin2="InnerTrackerEndcapSupportCone_rmin2"
0346           rmax2="InnerTrackerEndcapSupportCone_rmax2" 
0347           z="InnerTrackerEndcapCone_length/2"/>
0348         <position x="0*cm" y="0*cm" z="InnerTrackerEndcapCone_z" />
0349       </support>
0350       <support material="Aluminum" name="serv_cyl_pos" vis="TrackerServiceVis"
0351           rmin="SiTrackerServiceCyl_rmin"
0352           thickness="SiTrackerServiceCylAl_thickness"
0353           length="InnerTrackerEndcapCyl_length"
0354           zstart="InnerTrackerEndcapCyl_zmin" />
0355       <support material="CarbonFiber" name="sup_cyl_pos" vis="TrackerSupportVis"
0356           rmin="SiTrackerSupportCyl_rmin"
0357           thickness="SiTrackerSupportCylCF_thickness"
0358           length="InnerTrackerEndcapCyl_length"
0359           zstart="InnerTrackerEndcapCyl_zmin" />
0360       <module name="Module1" vis="TrackerModuleVis">
0361         <trd x1="InnerTrackerEndcapMod1_x1/2" x2="InnerTrackerEndcapMod1_x2/2" z="InnerTrackerEndcapMod1_y/2" />
0362         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0363         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0364         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0365       </module>
0366       <module name="Module2" vis="TrackerModuleVis">
0367         <trd x1="InnerTrackerEndcapMod2_x1/2" x2="InnerTrackerEndcapMod2_x2/2" z="InnerTrackerEndcapMod2_y/2" />
0368         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0369         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0370         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0371       </module>
0372       <layer id="1">
0373         <envelope vis="TrackerLayerVis"
0374           rmin="InnerTrackerEndcapLayer1_rmin"
0375           rmax="InnerTrackerEndcapLayer1_rmax"
0376           length="SiTrackerEndcapLayer_thickness"
0377           zstart="InnerTrackerEndcapLayer1_zmin" />
0378         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0379         <ring 
0380           r="InnerTrackerEndcapMod1_rmin + InnerTrackerEndcapMod1_y/2"
0381           zstart="0"
0382           nmodules="SiTrackerEndcapMod_count"
0383           dz="SiTrackerEndcapMod_dz"
0384           module="Module1" />
0385       </layer>
0386       <layer id="2">
0387         <envelope vis="TrackerLayerVis"
0388           rmin="InnerTrackerEndcapLayer2_rmin"
0389           rmax="InnerTrackerEndcapLayer2_rmax"
0390           length="SiTrackerEndcapLayer_thickness"
0391           zstart="InnerTrackerEndcapLayer2_zmin" />
0392         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0393         <ring 
0394           r="InnerTrackerEndcapMod2_rmin + InnerTrackerEndcapMod2_y/2"
0395           zstart="0"
0396           nmodules="SiTrackerEndcapMod_count"
0397           dz="SiTrackerEndcapMod_dz"
0398           module="Module2" />
0399       </layer>
0400     </detector>
0401     <detector
0402       id="TrackerEndcapN_0_ID"
0403       name="InnerTrackerEndcapN"
0404       type="athena_TrapEndcapTracker"
0405       readout="TrackerEndcapHits2"
0406       vis="TrackerVis"
0407       reflect="true">
0408       <support material="Aluminum" name="serv_cone_neg" vis="TrackerServiceVis">
0409         <shape type="Cone"
0410           rmin1="InnerTrackerEndcapServiceCone_rmin2"
0411           rmax1="InnerTrackerEndcapServiceCone_rmax2"
0412           rmin2="InnerTrackerEndcapServiceCone_rmin1"
0413           rmax2="InnerTrackerEndcapServiceCone_rmax1" 
0414           z="InnerTrackerEndcapCone_length/2"/>
0415         <position x="0*cm" y="0*cm" z="-1*InnerTrackerEndcapCone_z" />
0416       </support>
0417       <support material="CarbonFiber" name="sup_cone_neg" vis="TrackerSupportVis">
0418         <shape type="Cone"
0419           rmin1="InnerTrackerEndcapSupportCone_rmin2"
0420           rmax1="InnerTrackerEndcapSupportCone_rmax2"
0421           rmin2="InnerTrackerEndcapSupportCone_rmin1"
0422           rmax2="InnerTrackerEndcapSupportCone_rmax1" 
0423           z="InnerTrackerEndcapCone_length/2"/>
0424         <position x="0*cm" y="0*cm" z="-1*InnerTrackerEndcapCone_z" />
0425       </support>
0426       <support material="Aluminum" name="serv_cyl_neg" vis="TrackerServiceVis"
0427           rmin="SiTrackerServiceCyl_rmin"
0428           thickness="SiTrackerServiceCylAl_thickness"
0429           length="InnerTrackerEndcapCyl_length"
0430           zstart="InnerTrackerEndcapCyl_zmin" />
0431       <support material="CarbonFiber" name="sup_cyl_neg" vis="TrackerSupportVis"
0432           rmin="SiTrackerSupportCyl_rmin"
0433           thickness="SiTrackerSupportCylCF_thickness"
0434           length="InnerTrackerEndcapCyl_length"
0435           zstart="InnerTrackerEndcapCyl_zmin" />
0436       <module name="Module1" vis="TrackerModuleVis">
0437         <trd x1="InnerTrackerEndcapMod1_x1/2" x2="InnerTrackerEndcapMod1_x2/2" z="InnerTrackerEndcapMod1_y/2" />
0438         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0439         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0440         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0441       </module>
0442       <module name="Module2" vis="TrackerModuleVis">
0443         <trd x1="InnerTrackerEndcapMod2_x1/2" x2="InnerTrackerEndcapMod2_x2/2" z="InnerTrackerEndcapMod2_y/2" />
0444         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0445         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0446         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0447       </module>
0448       <layer id="1">
0449         <envelope vis="TrackerLayerVis"
0450           rmin="InnerTrackerEndcapLayer1_rmin"
0451           rmax="InnerTrackerEndcapLayer1_rmax"
0452           length="SiTrackerEndcapLayer_thickness"
0453           zstart="InnerTrackerEndcapLayer1_zmin" />
0454         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0455         <ring 
0456           r="InnerTrackerEndcapMod1_rmin + InnerTrackerEndcapMod1_y/2"
0457           zstart="0"
0458           nmodules="SiTrackerEndcapMod_count"
0459           dz="SiTrackerEndcapMod_dz"
0460           module="Module1" />
0461       </layer>
0462       <layer id="2">
0463         <envelope vis="TrackerLayerVis"
0464           rmin="InnerTrackerEndcapLayer2_rmin"
0465           rmax="InnerTrackerEndcapLayer2_rmax"
0466           length="SiTrackerEndcapLayer_thickness"
0467           zstart="InnerTrackerEndcapLayer2_zmin" />
0468         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0469         <ring 
0470           r="InnerTrackerEndcapMod2_rmin + InnerTrackerEndcapMod2_y/2"
0471           zstart="0"
0472           nmodules="SiTrackerEndcapMod_count"
0473           dz="SiTrackerEndcapMod_dz"
0474           module="Module2" />
0475       </layer>
0476     </detector>
0477   </detectors>
0478   <documentation>
0479     ## Medial barrel tracker (MMGAS)
0480   </documentation>
0481   <define>
0482     <comment> Global MMGAS variables </comment>
0483     <constant 
0484       name="MMTrackerBarrelMod_thickness"    
0485       value="MMKaptonOverlay_thickness + MMCuGround_thickness + MMPCB_thickness
0486            + MMCuStrip_thickness + MMKaptonStrip_thickness + MMResistiveStrip_thickness
0487            + MMGas_thickness + MMMesh_thickness + MMGasGap_thickness 
0488            + MMDriftCuElectrode_thickness + MMDriftKapton_thickness 
0489            + MMDriftCuGround_thickness" />
0490     <comment> Medial barrel implementation </comment>
0491     <comment> The value of InnerTrackerEndcap_zmax is calculated above based on the rmin of the MedialTrackerBarrel </comment>
0492     <constant name="MedialTrackerBarrel_length"           value="2 * InnerTrackerEndcap_zmax"/>
0493     <constant name="MedialTrackerBarrelMod1_rmin"         value="MedialTrackerBarrel_rmin"/>
0494     <constant name="MedialTrackerBarrelMod_length"        value="MedialTrackerBarrel_length - 2*um" />
0495     <constant name="MedialTrackerBarrelMod2_rmin"         value="MedialTrackerBarrel_rmin + 1 * MedialTrackerBarrel_offset"/>
0496     <constant name="MedialTrackerBarrelMod_count"         value="128" />
0497     <constant name="MedialTrackerBarrelMod1_width"        value="2*MedialTrackerBarrelMod1_rmin * tan(180*degree/MedialTrackerBarrelMod_count)" />
0498     <constant name="MedialTrackerBarrelMod2_width"        value="2*MedialTrackerBarrelMod2_rmin * tan(180*degree/MedialTrackerBarrelMod_count)" />
0499 
0500     <constant name="MedialTrackerBarrelLayer_length"      value="MedialTrackerBarrel_length"/>
0501     <constant name="MedialTrackerBarrelLayer_thickness"   value="MMTrackerBarrelMod_thickness + 1.0*cm"/>
0502     <constant name="MedialTrackerBarrelLayer1_rmin"       value="MedialTrackerBarrelMod1_rmin - MedialTrackerBarrelLayer_thickness / 5" />
0503     <constant name="MedialTrackerBarrelLayer1_rmax"       value="MedialTrackerBarrelLayer1_rmin + MedialTrackerBarrelLayer_thickness" />
0504     <constant name="MedialTrackerBarrelLayer2_rmin"       value="MedialTrackerBarrelMod2_rmin - MedialTrackerBarrelLayer_thickness / 5" />
0505     <constant name="MedialTrackerBarrelLayer2_rmax"       value="MedialTrackerBarrelLayer2_rmin + MedialTrackerBarrelLayer_thickness" />
0506 
0507     <constant name="MedialTrackerBarrelEnvelope_rmin"   value="MedialTrackerBarrelLayer1_rmin" />
0508     <constant name="MedialTrackerBarrelEnvelope_rmax"   value="MedialTrackerBarrelLayer2_rmax" />
0509     <constant name="MedialTrackerBarrelEnvelope_length" value="MedialTrackerBarrelLayer_length" />
0510   </define>
0511   <detectors>
0512     <detector
0513       id="TrackerBarrel_1_ID"
0514       name="MedialTrackerBarrel"
0515       type="athena_TrackerBarrel"
0516       readout="MPGDTrackerBarrelHits1"
0517       insideTrackingVolume="true">
0518       <dimensions
0519         rmin="MedialTrackerBarrelEnvelope_rmin"
0520         rmax="MedialTrackerBarrelEnvelope_rmax" 
0521         length="MedialTrackerBarrelEnvelope_length"/>
0522       <module name="MedialTrackerBarrel_Mod1" vis="TrackerMPGDVis">
0523         <comment> Going from the inside (sensitive) side to the readout side </comment>
0524         <module_component name="DriftCuGround" thickness="MMDriftCuGround_thickness" material="Copper" vis="TrackerMPGDVis" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0525         <module_component name="DriftKapton" thickness="MMDriftKapton_thickness" material="Kapton" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0526         <module_component name="DriftCuElectrode" thickness="MMDriftCuElectrode_thickness" material="Copper" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0527         <module_component name="GasGap" thickness="MMGasGap_thickness" material="Ar90IsoButane" sensitive="True" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0528         <module_component name="Mesh" thickness="MMMesh_thickness" material="MMGAS_InoxForMesh" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0529         <module_component name="Gas" thickness="MMGas_thickness" material="Ar90IsoButane" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0530         <module_component name="ResistiveStrips" thickness="MMResistiveStrip_thickness" material="MMGAS_ResistivePaste" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0531         <module_component name="KaptonStrips" thickness="MMKaptonStrip_thickness" material="Kapton" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0532         <module_component name="CuStrips" thickness="MMCuStrip_thickness" material="Copper" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0533         <module_component name="PCB" thickness="MMPCB_thickness" material="Fr4" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0534         <module_component name="CuGround" thickness="MMCuGround_thickness" material="Copper" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0535         <module_component name="KaptonOverlay" thickness="MMKaptonOverlay_thickness" material="Kapton" vis="TrackerSupportVis" width="MedialTrackerBarrelMod1_width" length="MedialTrackerBarrelMod_length"/>
0536       </module>
0537       <module name="MedialTrackerBarrel_Mod2" vis="TrackerMPGDVis">
0538         <comment> Going from the inside (sensitive) side to the readout side </comment>
0539         <module_component name="DriftCuGround" thickness="MMDriftCuGround_thickness" material="Copper" vis="TrackerMPGDVis" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0540         <module_component name="DriftKapton" thickness="MMDriftKapton_thickness" material="Kapton" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0541         <module_component name="DriftCuElectrode" thickness="MMDriftCuElectrode_thickness" material="Copper" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0542         <module_component name="GasGap" thickness="MMGasGap_thickness" material="Ar90IsoButane" sensitive="True" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0543         <module_component name="Mesh" thickness="MMMesh_thickness" material="MMGAS_InoxForMesh" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0544         <module_component name="Gas" thickness="MMGas_thickness" material="Ar90IsoButane" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0545         <module_component name="ResistiveStrips" thickness="MMResistiveStrip_thickness" material="MMGAS_ResistivePaste" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0546         <module_component name="KaptonStrips" thickness="MMKaptonStrip_thickness" material="Kapton" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0547         <module_component name="CuStrips" thickness="MMCuStrip_thickness" material="Copper" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0548         <module_component name="PCB" thickness="MMPCB_thickness" material="Fr4" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0549         <module_component name="CuGround" thickness="MMCuGround_thickness" material="Copper" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0550         <module_component name="KaptonOverlay" thickness="MMKaptonOverlay_thickness" material="Kapton" vis="TrackerSupportVis" width="MedialTrackerBarrelMod2_width" length="MedialTrackerBarrelMod_length"/>
0551       </module>
0552       <layer module="MedialTrackerBarrel_Mod1" id="1" vis="TrackerMMGASLayerVis">
0553         <barrel_envelope
0554           inner_r="MedialTrackerBarrelLayer1_rmin"
0555           outer_r="MedialTrackerBarrelLayer1_rmax"
0556           z_length="MedialTrackerBarrelLayer_length"/>
0557         <layer_material surface="outer" binning="binPhi,binZ" bins0="10*MedialTrackerBarrelMod_count" bins1="100" />
0558         <rphi_layout phi_tilt="0" nphi="MedialTrackerBarrelMod_count" phi0="0.0" rc="MedialTrackerBarrelMod1_rmin" dr="0.0 * mm"/>
0559         <z_layout dr="0.0 * mm" z0="0.0 * mm" nz="1"/>
0560       </layer>
0561       <layer module="MedialTrackerBarrel_Mod2" id="2" vis="TrackerMMGASLayerVis">
0562         <barrel_envelope
0563           inner_r="MedialTrackerBarrelLayer2_rmin"
0564           outer_r="MedialTrackerBarrelLayer2_rmax"
0565           z_length="MedialTrackerBarrelLayer_length"/>
0566         <layer_material surface="outer" binning="binPhi,binZ" bins0="10*MedialTrackerBarrelMod_count" bins1="100" />
0567         <rphi_layout phi_tilt="0" nphi="MedialTrackerBarrelMod_count" phi0="0.0" rc="MedialTrackerBarrelMod2_rmin" dr="0.0 * mm"/>
0568         <z_layout dr="0.0 * mm" z0="0.0 * mm" nz="1"/>
0569       </layer>
0570     </detector>
0571   </detectors>
0572   <documentation>
0573     ## Medial silicon tracker disks (1 each), symmetric between N and P except for disk rmin
0574   </documentation>
0575   <define>
0576     <comment> Medial Si endcap setup </comment>
0577     <constant name="MedialTrackerEndcapPMod1_zmin"  value="MedialTrackerEndcap_zmin" />
0578     <constant name="MedialTrackerEndcapPMod1_rmin"  value="MedialTrackerEndcapP_rmin" />
0579     <constant name="MedialTrackerEndcapPMod1_rmax"  value="min(MedialTrackerEndcapPMod1_zmin * CentralTrackingBarrel_tan * 0.995, SiTrackerCyl_rmin)" />
0580     <constant name="MedialTrackerEndcapPMod1_x1"    value="2 * MedialTrackerEndcapPMod1_rmin * tan(SiTrackerEndcapMod_angle/2)" />
0581     <constant name="MedialTrackerEndcapPMod1_x2"    value="2 * MedialTrackerEndcapPMod1_rmax * sin(SiTrackerEndcapMod_angle/2)" />
0582     <constant name="MedialTrackerEndcapPMod1_y"     value="MedialTrackerEndcapPMod1_rmax * cos(SiTrackerEndcapMod_angle/2) - MedialTrackerEndcapPMod1_rmin" />
0583 
0584     <constant name="MedialTrackerEndcapPLayer1_rmin"  value="MedialTrackerEndcapPMod1_rmin - 1*um" />
0585     <constant name="MedialTrackerEndcapPLayer1_rmax"  value="MedialTrackerEndcapPMod1_rmax + 1*um" />
0586     <constant name="MedialTrackerEndcapPLayer1_zmin"  value="MedialTrackerEndcapPMod1_zmin - SiTrackerEndcapLayer_thickness/2" />
0587 
0588     <constant name="MedialTrackerEndcapNMod1_zmin"  value="MedialTrackerEndcap_zmin" />
0589     <constant name="MedialTrackerEndcapNMod1_rmin"  value="MedialTrackerEndcapN_rmin" />
0590     <constant name="MedialTrackerEndcapNMod1_rmax"  value="min(MedialTrackerEndcapNMod1_zmin * CentralTrackingBarrel_tan * 0.995, SiTrackerCyl_rmin)" />
0591     <constant name="MedialTrackerEndcapNMod1_x1"    value="2 * MedialTrackerEndcapNMod1_rmin * tan(SiTrackerEndcapMod_angle/2)" />
0592     <constant name="MedialTrackerEndcapNMod1_x2"    value="2 * MedialTrackerEndcapNMod1_rmax * sin(SiTrackerEndcapMod_angle/2)" />
0593     <constant name="MedialTrackerEndcapNMod1_y"     value="MedialTrackerEndcapNMod1_rmax * cos(SiTrackerEndcapMod_angle/2) - MedialTrackerEndcapNMod1_rmin" />
0594 
0595     <constant name="MedialTrackerEndcapNLayer1_rmin"  value="MedialTrackerEndcapNMod1_rmin - 1*um" />
0596     <constant name="MedialTrackerEndcapNLayer1_rmax"  value="MedialTrackerEndcapNMod1_rmax + 1*um" />
0597     <constant name="MedialTrackerEndcapNLayer1_zmin"  value="MedialTrackerEndcapNMod1_zmin - SiTrackerEndcapLayer_thickness/2" />
0598 
0599     <comment> The tracker endcap ends at the same place as the outer tracker barrel that sits around it </comment>
0600     <constant name="MedialTrackerEndcap_zmax"              value="OuterTrackerBarrel_rmin / CentralTrackingBarrel_tan" />
0601     <constant name="MedialTrackerEndcapCyl_zmin"           value="InnerTrackerEndcap_zmax" />
0602     <constant name="MedialTrackerEndcapCyl_zmax"           value="MedialTrackerEndcap_zmax" />
0603     <constant name="MedialTrackerEndcapCyl_z"              value="(MedialTrackerEndcapCyl_zmin + MedialTrackerEndcapCyl_zmax)/2" />
0604     <constant name="MedialTrackerEndcapCyl_length"         value="MedialTrackerEndcapCyl_zmax - MedialTrackerEndcapCyl_zmin" />
0605 
0606   </define>
0607   <detectors>
0608     <detector
0609       id="TrackerEndcapP_1_ID"
0610       name="MedialTrackerEndcapP"
0611       type="athena_TrapEndcapTracker"
0612       readout="TrackerEndcapHits3"
0613       vis="TrackerVis"
0614       reflect="false">
0615       <support material="Aluminum" name="serv_cyl_pos" vis="TrackerServiceVis"
0616           rmin="SiTrackerServiceCyl_rmin"
0617           thickness="SiTrackerServiceCylAl_thickness"
0618           length="MedialTrackerEndcapCyl_length"
0619           zstart="MedialTrackerEndcapCyl_zmin" />
0620       <support material="CarbonFiber" name="sup_cyl_pos" vis="TrackerSupportVis"
0621           rmin="SiTrackerSupportCyl_rmin"
0622           thickness="SiTrackerSupportCylCF_thickness"
0623           length="MedialTrackerEndcapCyl_length"
0624           zstart="MedialTrackerEndcapCyl_zmin" />
0625       <module name="Module1" vis="TrackerModuleVis">
0626         <trd x1="MedialTrackerEndcapPMod1_x1/2" x2="MedialTrackerEndcapPMod1_x2/2" z="MedialTrackerEndcapPMod1_y/2" />
0627         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0628         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0629         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0630       </module>
0631       <layer id="1">
0632         <envelope vis="TrackerLayerVis"
0633           rmin="MedialTrackerEndcapPLayer1_rmin"
0634           rmax="MedialTrackerEndcapPLayer1_rmax"
0635           length="SiTrackerEndcapLayer_thickness"
0636           zstart="MedialTrackerEndcapPLayer1_zmin" />
0637         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0638         <ring 
0639           r="MedialTrackerEndcapPMod1_rmin + MedialTrackerEndcapPMod1_y/2"
0640           zstart="0"
0641           nmodules="SiTrackerEndcapMod_count"
0642           dz="SiTrackerEndcapMod_dz"
0643           module="Module1" />
0644       </layer>
0645     </detector>
0646     <detector
0647       id="TrackerEndcapN_1_ID"
0648       name="MedialTrackerEndcapN"
0649       type="athena_TrapEndcapTracker"
0650       readout="TrackerEndcapHits4"
0651       vis="TrackerVis"
0652       reflect="true">
0653       <support material="Aluminum" name="serv_cyl_neg" vis="TrackerServiceVis"
0654           rmin="SiTrackerServiceCyl_rmin"
0655           thickness="SiTrackerServiceCylAl_thickness"
0656           length="MedialTrackerEndcapCyl_length"
0657           zstart="MedialTrackerEndcapCyl_zmin" />
0658       <support material="CarbonFiber" name="sup_cyl_neg" vis="TrackerSupportVis"
0659           rmin="SiTrackerSupportCyl_rmin"
0660           thickness="SiTrackerSupportCylCF_thickness"
0661           length="MedialTrackerEndcapCyl_length"
0662           zstart="MedialTrackerEndcapCyl_zmin" />
0663       <module name="Module1" vis="TrackerModuleVis">
0664         <trd x1="MedialTrackerEndcapNMod1_x1/2" x2="MedialTrackerEndcapNMod1_x2/2" z="MedialTrackerEndcapNMod1_y/2" />
0665         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0666         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0667         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0668       </module>
0669       <layer id="1">
0670         <envelope vis="TrackerLayerVis"
0671           rmin="MedialTrackerEndcapNLayer1_rmin"
0672           rmax="MedialTrackerEndcapNLayer1_rmax"
0673           length="SiTrackerEndcapLayer_thickness"
0674           zstart="MedialTrackerEndcapNLayer1_zmin" />
0675         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0676         <ring 
0677           r="MedialTrackerEndcapNMod1_rmin + MedialTrackerEndcapNMod1_y/2"
0678           zstart="0"
0679           nmodules="SiTrackerEndcapMod_count"
0680           dz="SiTrackerEndcapMod_dz"
0681           module="Module1" />
0682       </layer>
0683     </detector>
0684   </detectors>
0685   <documentation>
0686     ## Outer barrel tracker (MMGAS)
0687   </documentation>
0688   <define>
0689     <comment> The value of MedialTrackerEndcap_zmax is calculated above based on the rmin of the OuterTrackerBarrel </comment>
0690     <constant name="OuterTrackerBarrel_length"            value="2 * MedialTrackerEndcap_zmax"/>
0691     <constant name="OuterTrackerBarrelMod1_rmin"          value="OuterTrackerBarrel_rmin"/>
0692     <constant name="OuterTrackerBarrelMod_length"         value="OuterTrackerBarrel_length - 2*um" />
0693     <constant name="OuterTrackerBarrelMod2_rmin"          value="OuterTrackerBarrel_rmin + 1 * OuterTrackerBarrel_offset"/>
0694     <constant name="OuterTrackerBarrelMod_count"          value="128" />
0695     <constant name="OuterTrackerBarrelMod1_width"         value="2*OuterTrackerBarrelMod1_rmin * tan(180*degree/OuterTrackerBarrelMod_count)" />
0696     <constant name="OuterTrackerBarrelMod2_width"         value="2*OuterTrackerBarrelMod2_rmin * tan(180*degree/OuterTrackerBarrelMod_count)" />
0697 
0698     <constant name="OuterTrackerBarrelLayer_length"       value="OuterTrackerBarrel_length"/>
0699     <constant name="OuterTrackerBarrelLayer_thickness"    value="MMTrackerBarrelMod_thickness + 1.0*cm"/>
0700     <constant name="OuterTrackerBarrelLayer1_rmin"        value="OuterTrackerBarrelMod1_rmin - OuterTrackerBarrelLayer_thickness / 5" />
0701     <constant name="OuterTrackerBarrelLayer1_rmax"        value="OuterTrackerBarrelLayer1_rmin + OuterTrackerBarrelLayer_thickness" />
0702     <constant name="OuterTrackerBarrelLayer2_rmin"        value="OuterTrackerBarrelMod2_rmin - OuterTrackerBarrelLayer_thickness / 5" />
0703     <constant name="OuterTrackerBarrelLayer2_rmax"        value="OuterTrackerBarrelLayer2_rmin + OuterTrackerBarrelLayer_thickness" />
0704 
0705     <constant name="OuterTrackerBarrelEnvelope_rmin"    value="OuterTrackerBarrelLayer1_rmin" />
0706     <constant name="OuterTrackerBarrelEnvelope_rmax"    value="OuterTrackerBarrelLayer2_rmax" />
0707     <constant name="OuterTrackerBarrelEnvelope_length"  value="OuterTrackerBarrelLayer_length" />
0708   </define>
0709   <detectors>
0710     <detector
0711       id="TrackerBarrel_2_ID"
0712       name="OuterTrackerBarrel"
0713       type="athena_TrackerBarrel"
0714       readout="MPGDTrackerBarrelHits2"
0715       insideTrackingVolume="true">
0716       <dimensions
0717         rmin="OuterTrackerBarrelEnvelope_rmin"
0718         rmax="OuterTrackerBarrelEnvelope_rmax" 
0719         length="OuterTrackerBarrelEnvelope_length"/>
0720       <module name="OuterTrackerBarrel_Mod1" vis="TrackerMPGDVis">
0721         <comment> Going from the inside (sensitive) side to the readout side </comment>
0722         <module_component name="DriftCuGround" thickness="MMDriftCuGround_thickness" material="Copper" vis="TrackerMPGDVis" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0723         <module_component name="DriftKapton" thickness="MMDriftKapton_thickness" material="Kapton" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0724         <module_component name="DriftCuElectrode" thickness="MMDriftCuElectrode_thickness" material="Copper" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0725         <module_component name="GasGap" thickness="MMGasGap_thickness" material="Ar90IsoButane" sensitive="True" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0726         <module_component name="Mesh" thickness="MMMesh_thickness" material="MMGAS_InoxForMesh" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0727         <module_component name="Gas" thickness="MMGas_thickness" material="Ar90IsoButane" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0728         <module_component name="ResistiveStrips" thickness="MMResistiveStrip_thickness" material="MMGAS_ResistivePaste" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0729         <module_component name="KaptonStrips" thickness="MMKaptonStrip_thickness" material="Kapton" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0730         <module_component name="CuStrips" thickness="MMCuStrip_thickness" material="Copper" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0731         <module_component name="PCB" thickness="MMPCB_thickness" material="Fr4" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0732         <module_component name="CuGround" thickness="MMCuGround_thickness" material="Copper" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0733         <module_component name="KaptonOverlay" thickness="MMKaptonOverlay_thickness" material="Kapton" vis="TrackerSupportVis" width="OuterTrackerBarrelMod1_width" length="OuterTrackerBarrelMod_length"/>
0734       </module>
0735       <module name="OuterTrackerBarrel_Mod2" vis="TrackerMPGDVis">
0736         <comment> Going from the inside (sensitive) side to the readout side </comment>
0737         <module_component name="DriftCuGround" thickness="MMDriftCuGround_thickness" material="Copper" vis="TrackerMPGDVis" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0738         <module_component name="DriftKapton" thickness="MMDriftKapton_thickness" material="Kapton" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0739         <module_component name="DriftCuElectrode" thickness="MMDriftCuElectrode_thickness" material="Copper" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0740         <module_component name="GasGap" thickness="MMGasGap_thickness" material="Ar90IsoButane" sensitive="True" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0741         <module_component name="Mesh" thickness="MMMesh_thickness" material="MMGAS_InoxForMesh" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0742         <module_component name="Gas" thickness="MMGas_thickness" material="Ar90IsoButane" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0743         <module_component name="ResistiveStrips" thickness="MMResistiveStrip_thickness" material="MMGAS_ResistivePaste" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0744         <module_component name="KaptonStrips" thickness="MMKaptonStrip_thickness" material="Kapton" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0745         <module_component name="CuStrips" thickness="MMCuStrip_thickness" material="Copper" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0746         <module_component name="PCB" thickness="MMPCB_thickness" material="Fr4" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0747         <module_component name="CuGround" thickness="MMCuGround_thickness" material="Copper" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0748         <module_component name="KaptonOverlay" thickness="MMKaptonOverlay_thickness" material="Kapton" vis="TrackerSupportVis" width="OuterTrackerBarrelMod2_width" length="OuterTrackerBarrelMod_length"/>
0749       </module>
0750       <layer module="OuterTrackerBarrel_Mod1" id="1" vis="TrackerMMGASLayerVis">
0751         <barrel_envelope
0752           inner_r="OuterTrackerBarrelLayer1_rmin"
0753           outer_r="OuterTrackerBarrelLayer1_rmax"
0754           z_length="OuterTrackerBarrelLayer_length"/>
0755         <layer_material surface="outer" binning="binPhi,binZ" bins0="10*OuterTrackerBarrelMod_count" bins1="100" />
0756         <rphi_layout phi_tilt="0" nphi="OuterTrackerBarrelMod_count" phi0="0.0" rc="OuterTrackerBarrelMod1_rmin" dr="0.0 * mm"/>
0757         <z_layout dr="0.0 * mm" z0="0.0 * mm" nz="1"/>
0758       </layer>
0759       <layer module="OuterTrackerBarrel_Mod2" id="2" vis="TrackerMMGASLayerVis">
0760         <barrel_envelope
0761           inner_r="OuterTrackerBarrelLayer2_rmin"
0762           outer_r="OuterTrackerBarrelLayer2_rmax"
0763           z_length="OuterTrackerBarrelLayer_length"/>
0764         <layer_material surface="outer" binning="binPhi,binZ" bins0="10*OuterTrackerBarrelMod_count" bins1="100" />
0765         <rphi_layout phi_tilt="0" nphi="OuterTrackerBarrelMod_count" phi0="0.0" rc="OuterTrackerBarrelMod2_rmin" dr="0.0 * mm"/>
0766         <z_layout dr="0.0 * mm" z0="0.0 * mm" nz="1"/>
0767       </layer>
0768     </detector>
0769   </detectors>
0770   <documentation>
0771     ## Outer silicon tracker disks (3P, 2N)
0772   </documentation>
0773   <define>
0774     <comment> Positive disks </comment>
0775     <constant name="OuterTrackerEndcapPMod1_zmin" value="OuterTrackerEndcapP_zmin" />
0776     <constant name="OuterTrackerEndcapPMod1_rmin" value="OuterTrackerEndcapPMod1_zmin * CentralTrackingRegionP_tan * 0.99" />
0777     <constant name="OuterTrackerEndcapPMod1_rmax"  value="SiTrackerCyl_rmin" />
0778     <constant name="OuterTrackerEndcapPMod1_x1"    value="2 * OuterTrackerEndcapPMod1_rmin * tan(SiTrackerEndcapMod_angle/2)" />
0779     <constant name="OuterTrackerEndcapPMod1_x2"    value="2 * OuterTrackerEndcapPMod1_rmax * sin(SiTrackerEndcapMod_angle/2)" />
0780     <constant name="OuterTrackerEndcapPMod1_y"     value="OuterTrackerEndcapPMod1_rmax * cos(SiTrackerEndcapMod_angle/2) - OuterTrackerEndcapPMod1_rmin" />
0781     <constant name="OuterTrackerEndcapPLayer1_rmin"  value="OuterTrackerEndcapPMod1_rmin - 1*um" />
0782     <constant name="OuterTrackerEndcapPLayer1_rmax"  value="OuterTrackerEndcapPMod1_rmax + 1*um" />
0783     <constant name="OuterTrackerEndcapPLayer1_zmin"  value="OuterTrackerEndcapPMod1_zmin - SiTrackerEndcapLayer_thickness/2" />
0784 
0785     <constant name="OuterTrackerEndcapPMod2_zmin" value="OuterTrackerEndcapP_zmin + 1 * OuterTrackerEndcapP_offset" />
0786     <constant name="OuterTrackerEndcapPMod2_rmin" value="OuterTrackerEndcapPMod2_zmin * CentralTrackingRegionP_tan * 0.99" />
0787     <constant name="OuterTrackerEndcapPMod2_rmax"  value="SiTrackerCyl_rmin" />
0788     <constant name="OuterTrackerEndcapPMod2_x1"    value="2 * OuterTrackerEndcapPMod2_rmin * tan(SiTrackerEndcapMod_angle/2)" />
0789     <constant name="OuterTrackerEndcapPMod2_x2"    value="2 * OuterTrackerEndcapPMod2_rmax * sin(SiTrackerEndcapMod_angle/2)" />
0790     <constant name="OuterTrackerEndcapPMod2_y"     value="OuterTrackerEndcapPMod2_rmax * cos(SiTrackerEndcapMod_angle/2) - OuterTrackerEndcapPMod2_rmin" />
0791     <constant name="OuterTrackerEndcapPLayer2_rmin"  value="OuterTrackerEndcapPMod2_rmin - 1*um" />
0792     <constant name="OuterTrackerEndcapPLayer2_rmax"  value="OuterTrackerEndcapPMod2_rmax + 1*um" />
0793     <constant name="OuterTrackerEndcapPLayer2_zmin"  value="OuterTrackerEndcapPMod2_zmin - SiTrackerEndcapLayer_thickness/2" />
0794 
0795     <constant name="OuterTrackerEndcapPMod3_zmin" value="OuterTrackerEndcapP_zmin + 2 * OuterTrackerEndcapP_offset" />
0796     <constant name="OuterTrackerEndcapPMod3_rmin" value="OuterTrackerEndcapPMod3_zmin * CentralTrackingRegionP_tan * 1.00" />
0797     <constant name="OuterTrackerEndcapPMod3_rmax"  value="SiTrackerCyl_rmin" />
0798     <constant name="OuterTrackerEndcapPMod3_x1"    value="2 * OuterTrackerEndcapPMod3_rmin * tan(SiTrackerEndcapMod_angle/2)" />
0799     <constant name="OuterTrackerEndcapPMod3_x2"    value="2 * OuterTrackerEndcapPMod3_rmax * sin(SiTrackerEndcapMod_angle/2)" />
0800     <constant name="OuterTrackerEndcapPMod3_y"     value="OuterTrackerEndcapPMod3_rmax * cos(SiTrackerEndcapMod_angle/2) - OuterTrackerEndcapPMod3_rmin" />
0801     <constant name="OuterTrackerEndcapPLayer3_rmin"  value="OuterTrackerEndcapPMod3_rmin - 1*um" />
0802     <constant name="OuterTrackerEndcapPLayer3_rmax"  value="OuterTrackerEndcapPMod3_rmax + 1*um" />
0803     <constant name="OuterTrackerEndcapPLayer3_zmin"  value="OuterTrackerEndcapPMod3_zmin - SiTrackerEndcapLayer_thickness/2" />
0804 
0805     <comment> The Si tracker endcap ends at position of the last disk </comment>
0806     <constant name="OuterTrackerEndcapP_zmax"             value="OuterTrackerEndcapPLayer3_zmin + SiTrackerEndcapLayer_thickness" />
0807     <constant name="OuterTrackerEndcapPCyl_zmin"           value="MedialTrackerEndcap_zmax" />
0808     <constant name="OuterTrackerEndcapPCyl_zmax"           value="OuterTrackerEndcapP_zmax" />
0809     <constant name="OuterTrackerEndcapPCyl_z"              value="(OuterTrackerEndcapPCyl_zmin + OuterTrackerEndcapPCyl_zmax)/2" />
0810     <constant name="OuterTrackerEndcapPCyl_length"         value="OuterTrackerEndcapPCyl_zmax - OuterTrackerEndcapPCyl_zmin" />
0811 
0812     <comment> Negative disks </comment>
0813     <constant name="OuterTrackerEndcapNMod1_zmin" value="OuterTrackerEndcapN_zmin" />
0814     <constant name="OuterTrackerEndcapNMod1_rmin" value="OuterTrackerEndcapNMod1_zmin * CentralTrackingRegionN_tan * 1.00" />
0815     <constant name="OuterTrackerEndcapNMod1_rmax"  value="SiTrackerCyl_rmin" />
0816     <constant name="OuterTrackerEndcapNMod1_x1"    value="2 * OuterTrackerEndcapNMod1_rmin * tan(SiTrackerEndcapMod_angle/2)" />
0817     <constant name="OuterTrackerEndcapNMod1_x2"    value="2 * OuterTrackerEndcapNMod1_rmax * sin(SiTrackerEndcapMod_angle/2)" />
0818     <constant name="OuterTrackerEndcapNMod1_y"     value="OuterTrackerEndcapNMod1_rmax * cos(SiTrackerEndcapMod_angle/2) - OuterTrackerEndcapNMod1_rmin" />
0819     <constant name="OuterTrackerEndcapNLayer1_rmin"  value="OuterTrackerEndcapNMod1_rmin - 1*um" />
0820     <constant name="OuterTrackerEndcapNLayer1_rmax"  value="OuterTrackerEndcapNMod1_rmax + 1*um" />
0821     <constant name="OuterTrackerEndcapNLayer1_zmin"  value="OuterTrackerEndcapNMod1_zmin - SiTrackerEndcapLayer_thickness/2" />
0822 
0823     <constant name="OuterTrackerEndcapNMod2_zmin" value="OuterTrackerEndcapN_zmin + 1 * OuterTrackerEndcapN_offset" />
0824     <constant name="OuterTrackerEndcapNMod2_rmin" value="OuterTrackerEndcapNMod2_zmin * CentralTrackingRegionN_tan * 1.00" />
0825     <constant name="OuterTrackerEndcapNMod2_rmax"  value="SiTrackerCyl_rmin" />
0826     <constant name="OuterTrackerEndcapNMod2_x1"    value="2 * OuterTrackerEndcapNMod2_rmin * tan(SiTrackerEndcapMod_angle/2)" />
0827     <constant name="OuterTrackerEndcapNMod2_x2"    value="2 * OuterTrackerEndcapNMod2_rmax * sin(SiTrackerEndcapMod_angle/2)" />
0828     <constant name="OuterTrackerEndcapNMod2_y"     value="OuterTrackerEndcapNMod2_rmax * cos(SiTrackerEndcapMod_angle/2) - OuterTrackerEndcapNMod2_rmin" />
0829     <constant name="OuterTrackerEndcapNLayer2_rmin"  value="OuterTrackerEndcapNMod2_rmin - 1*um" />
0830     <constant name="OuterTrackerEndcapNLayer2_rmax"  value="OuterTrackerEndcapNMod2_rmax + 1*um" />
0831     <constant name="OuterTrackerEndcapNLayer2_zmin"  value="OuterTrackerEndcapNMod2_zmin - SiTrackerEndcapLayer_thickness/2" />
0832 
0833     <comment> The Si tracker endcap ends at position of the last disk </comment>
0834     <constant name="OuterTrackerEndcapN_zmax"             value="OuterTrackerEndcapNLayer2_zmin + SiTrackerEndcapLayer_thickness" />
0835     <constant name="OuterTrackerEndcapNCyl_zmin"           value="MedialTrackerEndcap_zmax" />
0836     <constant name="OuterTrackerEndcapNCyl_zmax"           value="OuterTrackerEndcapN_zmax" />
0837     <constant name="OuterTrackerEndcapNCyl_z"              value="(OuterTrackerEndcapNCyl_zmin + OuterTrackerEndcapNCyl_zmax)/2" />
0838     <constant name="OuterTrackerEndcapNCyl_length"         value="OuterTrackerEndcapNCyl_zmax - OuterTrackerEndcapNCyl_zmin" />
0839 
0840   </define>
0841   <detectors>
0842     <detector
0843       id="TrackerEndcapP_2_ID"
0844       name="OuterTrackerEndcapP"
0845       type="athena_TrapEndcapTracker"
0846       readout="TrackerEndcapHits5"
0847       vis="TrackerVis"
0848       reflect="false">
0849       <support material="Aluminum" name="serv_cyl_pos" vis="TrackerServiceVis"
0850           rmin="SiTrackerServiceCyl_rmin"
0851           thickness="SiTrackerServiceCylAl_thickness"
0852           length="OuterTrackerEndcapPCyl_length"
0853           zstart="OuterTrackerEndcapPCyl_zmin" />
0854       <support material="CarbonFiber" name="sup_cyl_pos" vis="TrackerSupportVis"
0855           rmin="SiTrackerSupportCyl_rmin"
0856           thickness="SiTrackerSupportCylCF_thickness"
0857           length="OuterTrackerEndcapPCyl_length"
0858           zstart="OuterTrackerEndcapPCyl_zmin" />
0859       <module name="Module1" vis="TrackerModuleVis">
0860         <trd x1="OuterTrackerEndcapPMod1_x1/2" x2="OuterTrackerEndcapPMod1_x2/2" z="OuterTrackerEndcapPMod1_y/2" />
0861         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0862         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0863         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0864       </module>
0865       <module name="Module2" vis="TrackerModuleVis">
0866         <trd x1="OuterTrackerEndcapPMod2_x1/2" x2="OuterTrackerEndcapPMod2_x2/2" z="OuterTrackerEndcapPMod2_y/2" />
0867         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0868         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0869         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0870       </module>
0871       <module name="Module3" vis="TrackerModuleVis">
0872         <trd x1="OuterTrackerEndcapPMod3_x1/2" x2="OuterTrackerEndcapPMod3_x2/2" z="OuterTrackerEndcapPMod3_y/2" />
0873         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0874         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0875         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0876       </module>
0877       <layer id="1">
0878         <envelope vis="TrackerLayerVis"
0879           rmin="OuterTrackerEndcapPLayer1_rmin"
0880           rmax="OuterTrackerEndcapPLayer1_rmax"
0881           length="SiTrackerEndcapLayer_thickness"
0882           zstart="OuterTrackerEndcapPLayer1_zmin" />
0883         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0884         <ring 
0885           r="OuterTrackerEndcapPMod1_rmin + OuterTrackerEndcapPMod1_y/2"
0886           zstart="0"
0887           nmodules="SiTrackerEndcapMod_count"
0888           dz="SiTrackerEndcapMod_dz"
0889           module="Module1" />
0890       </layer>
0891       <layer id="2">
0892         <envelope vis="TrackerLayerVis"
0893           rmin="OuterTrackerEndcapPLayer2_rmin"
0894           rmax="OuterTrackerEndcapPLayer2_rmax"
0895           length="SiTrackerEndcapLayer_thickness"
0896           zstart="OuterTrackerEndcapPLayer2_zmin" />
0897         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0898         <ring 
0899           r="OuterTrackerEndcapPMod2_rmin + OuterTrackerEndcapPMod2_y/2"
0900           zstart="0"
0901           nmodules="SiTrackerEndcapMod_count"
0902           dz="SiTrackerEndcapMod_dz"
0903           module="Module2" />
0904       </layer>
0905       <layer id="3">
0906         <envelope vis="TrackerLayerVis"
0907           rmin="OuterTrackerEndcapPLayer3_rmin"
0908           rmax="OuterTrackerEndcapPLayer3_rmax"
0909           length="SiTrackerEndcapLayer_thickness"
0910           zstart="OuterTrackerEndcapPLayer3_zmin" />
0911         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0912         <ring 
0913           r="OuterTrackerEndcapPMod3_rmin + OuterTrackerEndcapPMod3_y/2"
0914           zstart="0"
0915           nmodules="SiTrackerEndcapMod_count"
0916           dz="SiTrackerEndcapMod_dz"
0917           module="Module3" />
0918       </layer>
0919     </detector>
0920     <detector
0921       id="TrackerEndcapN_2_ID"
0922       name="OuterTrackerEndcapN"
0923       type="athena_TrapEndcapTracker"
0924       readout="TrackerEndcapHits6"
0925       vis="TrackerVis"
0926       reflect="true">
0927       <support material="Aluminum" name="serv_cyl_pos" vis="TrackerServiceVis"
0928           rmin="SiTrackerServiceCyl_rmin"
0929           thickness="SiTrackerServiceCylAl_thickness"
0930           length="OuterTrackerEndcapNCyl_length"
0931           zstart="OuterTrackerEndcapNCyl_zmin" />
0932       <support material="CarbonFiber" name="sup_cyl_pos" vis="TrackerSupportVis"
0933           rmin="SiTrackerSupportCyl_rmin"
0934           thickness="SiTrackerSupportCylCF_thickness"
0935           length="OuterTrackerEndcapNCyl_length"
0936           zstart="OuterTrackerEndcapNCyl_zmin" />
0937       <module name="Module1" vis="TrackerModuleVis">
0938         <trd x1="OuterTrackerEndcapNMod1_x1/2" x2="OuterTrackerEndcapNMod1_x2/2" z="OuterTrackerEndcapNMod1_y/2" />
0939         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0940         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0941         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0942       </module>
0943       <module name="Module2" vis="TrackerModuleVis">
0944         <trd x1="OuterTrackerEndcapNMod2_x1/2" x2="OuterTrackerEndcapNMod2_x2/2" z="OuterTrackerEndcapNMod2_y/2" />
0945         <module_component thickness="SiTrackerEndcapCF_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
0946         <module_component thickness="SiTrackerEndcapAl_thickness" material="Aluminum" vis="TrackerServiceVis" />
0947         <module_component thickness="SiTrackerSensor_thickness" material="Silicon" sensitive="true" vis="TrackerLayerVis" />
0948       </module>
0949       <layer id="1">
0950         <envelope vis="TrackerLayerVis"
0951           rmin="OuterTrackerEndcapNLayer1_rmin"
0952           rmax="OuterTrackerEndcapNLayer1_rmax"
0953           length="SiTrackerEndcapLayer_thickness"
0954           zstart="OuterTrackerEndcapNLayer1_zmin" />
0955         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0956         <ring 
0957           r="OuterTrackerEndcapNMod1_rmin + OuterTrackerEndcapNMod1_y/2"
0958           zstart="0"
0959           nmodules="SiTrackerEndcapMod_count"
0960           dz="SiTrackerEndcapMod_dz"
0961           module="Module1" />
0962       </layer>
0963       <layer id="2">
0964         <envelope vis="TrackerLayerVis"
0965           rmin="OuterTrackerEndcapNLayer2_rmin"
0966           rmax="OuterTrackerEndcapNLayer2_rmax"
0967           length="SiTrackerEndcapLayer_thickness"
0968           zstart="OuterTrackerEndcapNLayer2_zmin" />
0969         <layer_material surface="representing" binning="binPhi,binR" bins0="20*SiTrackerEndcapMod_count" bins1="256"/>
0970         <ring 
0971           r="OuterTrackerEndcapNMod2_rmin + OuterTrackerEndcapNMod2_y/2"
0972           zstart="0"
0973           nmodules="SiTrackerEndcapMod_count"
0974           dz="SiTrackerEndcapMod_dz"
0975           module="Module2" />
0976       </layer>
0977     </detector>
0978   </detectors>
0979   <documentation>
0980     ## GEM trackers (3P, 2N)
0981   </documentation>
0982   <define>
0983     <constant 
0984       name="GEMEndcapMod_thickness"   
0985       value="GEMMylar_thickness * 2 + GEMGas_thickness * 5 + GEMDriftRegion_thickness * 1
0986            + GEMKapton_thickness * (2 + 3 * GEMAreaFactor)
0987            + GEMCuFoil_thickness * (3 * GEMAreaFactor)
0988            + GEMCuElectrode_thickness * 2" />
0989     <constant name="GEMEndcapMod_dz"                value="GEMEndcapMod_thickness/2 + GEMSpoke_thickness/2" />
0990     <constant name="GEMEndcapMod_overlap"           value="0" />
0991     <constant name="GEMEndcapMod_angle"             value="360.0*degree / GEMEndcapMod_count * (1 + GEMEndcapMod_overlap)" />
0992     <constant name="GEMEndcapLayer_thickness"       value="GEMEndcapMod_thickness + 2 * GEMEndcapMod_dz + 1*um" />
0993 
0994     <comment> Parameters for the "ring" GEMS around the silicon tracker, which are all identical </comment>
0995     <constant name="GEMEndcapRingMod_rmin"          value="SiTrackerSupportCyl_rmax + GEMFrameBotEdge_width" />
0996     <constant name="GEMEndcapRingMod_rmax"          value="min(min(GEMEndcapPDisk1_zmin, GEMEndcapN_zmin) * CentralTrackingBarrel_tan * 0.995, CentralTrackingRegion_rmax) - GEMFrameTopEdge_width" />
0997     <constant name="GEMEndcapRingMod_x1"            value="2 * GEMEndcapRingMod_rmin * tan(GEMEndcapMod_angle/2)" />
0998     <constant name="GEMEndcapRingMod_x2"            value="2 * GEMEndcapRingMod_rmax * sin(GEMEndcapMod_angle/2)" />
0999     <constant name="GEMEndcapRingMod_y"             value="GEMEndcapRingMod_rmax * cos(GEMEndcapMod_angle/2) - GEMEndcapRingMod_rmin" />
1000     <constant name="GEMEndcapRingModBotFrame_rmin"  value="SiTrackerSupportCyl_rmax" />
1001     <constant name="GEMEndcapRingModBotFrame_y"     value="GEMFrameBotEdge_width" />
1002     <constant name="GEMEndcapRingModBotFrame_rmax"  value="(GEMEndcapRingModBotFrame_rmin + GEMEndcapRingModBotFrame_y)/cos(GEMEndcapMod_angle/2)" />
1003     <constant name="GEMEndcapRingModBotFrame_x1"    value="2 * GEMEndcapRingModBotFrame_rmin * tan(GEMEndcapMod_angle/2)" />
1004     <constant name="GEMEndcapRingModBotFrame_x2"    value="2 * GEMEndcapRingModBotFrame_rmax * sin(GEMEndcapMod_angle/2)" />
1005     <constant name="GEMEndcapRingModTopFrame_rmin"  value="GEMEndcapRingMod_rmin + GEMEndcapRingMod_y" />
1006     <constant name="GEMEndcapRingModTopFrame_y"     value="GEMFrameTopEdge_width" />
1007     <constant name="GEMEndcapRingModTopFrame_rmax"  value="(GEMEndcapRingModTopFrame_rmin + GEMEndcapRingModTopFrame_y)/cos(GEMEndcapMod_angle/2)" />
1008     <constant name="GEMEndcapRingModTopFrame_x1"    value="GEMEndcapRingMod_x2" />
1009     <constant name="GEMEndcapRingModTopFrame_x2"    value="2 * GEMEndcapRingModTopFrame_rmax * sin(GEMEndcapMod_angle/2)" />
1010     <constant name="GEMEndcapRingModSpoke_length"   value="GEMEndcapRingMod_rmax - GEMEndcapRingModBotFrame_rmax" />
1011     <constant name="GEMEndcapRingModSpoke_r"        value="(GEMEndcapRingMod_rmax + GEMEndcapRingModBotFrame_rmax)/2" />
1012     <constant name="GEMEndcapRingLayer_rmin"        value="GEMEndcapRingModBotFrame_rmin - 1*um" />
1013     <constant name="GEMEndcapRingLayer_rmax"        value="GEMEndcapRingModTopFrame_rmax + 1*um" />
1014 
1015     <comment> 
1016       z position of the "ring" GEMS, note that some are offset slightly 
1017       to not overlap in z with the silicon disks (an ACTS limitation).
1018     </comment>
1019     <constant name="GEMEndcapPMod1_zmin"            value="GEMEndcapPDisk1_zmin + GEMEndcapLayer_thickness" />
1020     <constant name="GEMEndcapPMod2_zmin"            value="GEMEndcapPDisk2_zmin - GEMEndcapLayer_thickness" />
1021     <constant name="GEMEndcapNMod1_zmin"            value="GEMEndcapN_zmin" />
1022     <constant name="GEMEndcapNMod2_zmin"            value="GEMEndcapN_zmin + 1 * GEMEndcapN_offset - GEMEndcapLayer_thickness" />
1023     <constant name="GEMEndcapPLayer1_zmin"          value="GEMEndcapPMod1_zmin - GEMEndcapLayer_thickness/2" />
1024     <constant name="GEMEndcapPLayer2_zmin"          value="GEMEndcapPMod2_zmin - GEMEndcapLayer_thickness/2" />
1025     <constant name="GEMEndcapNLayer1_zmin"          value="GEMEndcapNMod1_zmin - GEMEndcapLayer_thickness/2" />
1026     <constant name="GEMEndcapNLayer2_zmin"          value="GEMEndcapNMod2_zmin - GEMEndcapLayer_thickness/2" />
1027 
1028     <comment> Large forward disk (behind the RICH) </comment>
1029     <constant name="GEMEndcapPMod3_zmin"            value="GEMEndcapPDisk3_zmin" />
1030     <constant name="GEMEndcapPLayer3_zmin"          value="GEMEndcapPMod3_zmin - GEMEndcapLayer_thickness/2" />
1031 
1032     <constant name="GEMEndcapLargeModBotFrame_rmin"  value="GEMEndcapPMod3_zmin * ForwardTrackingRegion_tan" />
1033     <constant name="GEMEndcapLargeModBotFrame_y"     value="GEMFrameBotEdge_width" />
1034     <constant name="GEMEndcapLargeModBotFrame_rmax"  value="(GEMEndcapLargeModBotFrame_rmin + GEMEndcapLargeModBotFrame_y)/cos(GEMEndcapMod_angle/2)" />
1035     <constant name="GEMEndcapLargeModBotFrame_x1"    value="2 * GEMEndcapLargeModBotFrame_rmin * sin(GEMEndcapMod_angle/2)" />
1036     <constant name="GEMEndcapLargeModBotFrame_x2"    value="2 * GEMEndcapLargeModBotFrame_rmax * sin(GEMEndcapMod_angle/2)" />
1037     <constant name="GEMEndcapLargeMod_rmin"          value="GEMEndcapPMod3_zmin * ForwardTrackingRegion_tan + GEMFrameBotEdge_width" />
1038     <comment> Ensure there's always the length of the service gap in space available above the large GEM (top frame can extend into this at the corners). </comment>
1039     <constant name="GEMEndcapLargeMod_rmax"          value="min(GEMEndcapPMod3_zmin * CentralTrackingBarrel_tan, Solenoid_rmax-ForwardServiceGap_length)" />
1040     <constant name="GEMEndcapLargeMod_x1"            value="2 * GEMEndcapLargeMod_rmin * sin(GEMEndcapMod_angle/2)" />
1041     <constant name="GEMEndcapLargeMod_x2"            value="2 * GEMEndcapLargeMod_rmax * sin(GEMEndcapMod_angle/2)" />
1042     <constant name="GEMEndcapLargeMod_y"             value="GEMEndcapLargeMod_rmax * cos(GEMEndcapMod_angle/2) - GEMEndcapLargeMod_rmin" />
1043     <constant name="GEMEndcapLargeModTopFrame_rmin"  value="GEMEndcapLargeMod_rmin + GEMEndcapLargeMod_y" />
1044     <constant name="GEMEndcapLargeModTopFrame_y"     value="GEMFrameTopEdge_width" />
1045     <constant name="GEMEndcapLargeModTopFrame_rmax"  value="(GEMEndcapLargeModTopFrame_rmin + GEMEndcapLargeModTopFrame_y)/cos(GEMEndcapMod_angle/2)" />
1046     <constant name="GEMEndcapLargeModTopFrame_x1"    value="GEMEndcapLargeMod_x2" />
1047     <constant name="GEMEndcapLargeModTopFrame_x2"    value="2 * GEMEndcapLargeModTopFrame_rmax * sin(GEMEndcapMod_angle/2)" />
1048     <constant name="GEMEndcapLargeModSpoke_length"   value="GEMEndcapLargeMod_rmax - GEMEndcapLargeModBotFrame_rmax" />
1049     <constant name="GEMEndcapLargeModSpoke_r"        value="(GEMEndcapLargeMod_rmax + GEMEndcapLargeModBotFrame_rmax)/2" />
1050     <constant name="GEMEndcapLargeLayer_rmin"        value="GEMEndcapLargeModBotFrame_rmin - 1*um" />
1051     <constant name="GEMEndcapLargeLayer_rmax"        value="GEMEndcapLargeModTopFrame_rmax + 1*um" />
1052 
1053   </define>
1054   <detectors>
1055     <detector
1056       id="TrackerEndcapP_3_ID"
1057       name="GEMEndcapP"
1058       type="athena_TrapEndcapTracker"
1059       readout="GEMTrackerEndcapHits1"
1060       vis="TrackerVis"
1061       reflect="false">
1062       <module name="RingModule" vis="TrackerGEMModuleVis">
1063         <trd x1="GEMEndcapRingMod_x1/2" x2="GEMEndcapRingMod_x2/2" z="GEMEndcapRingMod_y/2" />
1064         <comment> going from back to front </comment>
1065         <module_component name="exit_window"      thickness="GEMMylar_thickness"        material="Mylar" vis="TrackerServiceVis" />
1066         <module_component name="exit_region"      thickness="GEMGas_thickness"          material="Ar10CO2"/>
1067         <module_component name="readout_cu"       thickness="GEMCuElectrode_thickness"  material="Copper"/>
1068         <module_component name="readout_foil"     thickness="GEMKapton_thickness"       material="Kapton"/>
1069         <module_component name="induction_region" thickness="GEMGas_thickness"          material="Ar10CO2"/>
1070         <module_component name="gem_foil_3_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1071         <module_component name="gem_foil_3"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1072         <module_component name="transfer_region2" thickness="GEMGas_thickness"                          material="Ar10CO2"/>
1073         <module_component name="gem_foil_2_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1074         <module_component name="gem_foil_2"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1075         <module_component name="transfer_region1" thickness="GEMGas_thickness"                          material="Ar10CO2"/>
1076         <module_component name="gem_foil_1_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1077         <module_component name="gem_foil_1"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1078         <module_component name="drift_region"     thickness="GEMDriftRegion_thickness"                  material="Ar10CO2" sensitive="true"/>
1079         <module_component name="cathode_cu"       thickness="GEMCuElectrode_thickness"  material="Copper"/>
1080         <module_component name="cathode_foil"     thickness="GEMKapton_thickness"       material="Kapton"/>
1081         <module_component name="entrance_region"  thickness="GEMGas_thickness"          material="Ar10CO2"/>
1082         <module_component name="entrance_window"  thickness="GEMMylar_thickness"        material="Mylar" vis="TrackerMPGDVis" />
1083       </module>
1084       <module name="RingBotFrame" vis="TrackerSupportVis">
1085         <trd x1="GEMEndcapRingModBotFrame_x1/2" x2="GEMEndcapRingModBotFrame_x2/2" z="GEMEndcapRingModBotFrame_y/2" />
1086         <module_component name="frame" thickness="GEMFrame_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
1087       </module>
1088       <module name="RingTopFrame" vis="TrackerSupportVis">
1089         <trd x1="GEMEndcapRingModTopFrame_x1/2" x2="GEMEndcapRingModTopFrame_x2/2" z="GEMEndcapRingModTopFrame_y/2" />
1090         <module_component name="frame" thickness="GEMFrame_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
1091       </module>
1092       <module name="RingSpoke" vis="TrackerSupportVis">
1093         <trd x1="GEMSpoke_width/2" x2="GEMSpoke_width/2" z="GEMEndcapRingModSpoke_length/2"/>
1094         <module_component thickness="GEMSpoke_thickness" material="Mylar" vis="TrackerSupportVis"/>
1095       </module>
1096       <layer id="1">
1097         <envelope vis="TrackerLayerVis"
1098           rmin="GEMEndcapRingLayer_rmin"
1099           rmax="GEMEndcapRingLayer_rmax"
1100           length="GEMEndcapLayer_thickness"
1101           zstart="GEMEndcapPLayer1_zmin" />
1102         <layer_material surface="representing" binning="binPhi,binR" bins0="20*GEMEndcapMod_count" bins1="256"/>
1103         <ring 
1104           r="GEMEndcapRingMod_rmin + GEMEndcapRingMod_y/2" zstart="0" dz="GEMEndcapMod_dz"
1105           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1106           module="RingModule" />
1107         <ring 
1108           r="GEMEndcapRingMod_rmin + GEMEndcapRingMod_y/2" zstart="0" dz="GEMEndcapMod_dz"
1109           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1110           module="RingModule" />
1111         <ring 
1112           r="GEMEndcapRingModBotFrame_rmin + GEMEndcapRingModBotFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1113           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1114           module="RingBotFrame" />
1115         <ring 
1116           r="GEMEndcapRingModBotFrame_rmin + GEMEndcapRingModBotFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1117           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1118           module="RingBotFrame" />
1119         <ring 
1120           r="GEMEndcapRingModTopFrame_rmin + GEMEndcapRingModTopFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1121           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1122           module="RingTopFrame" />
1123         <ring 
1124           r="GEMEndcapRingModTopFrame_rmin + GEMEndcapRingModTopFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1125           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1126           module="RingTopFrame" />
1127         <ring 
1128           r="GEMEndcapRingModSpoke_r" zstart="0" dz="0"
1129           nmodules="GEMEndcapMod_count/2" phi0="3*GEMEndcapMod_angle/2"
1130           module="RingSpoke" />
1131       </layer>
1132       <layer id="2">
1133         <envelope vis="TrackerLayerVis"
1134           rmin="GEMEndcapRingLayer_rmin"
1135           rmax="GEMEndcapRingLayer_rmax"
1136           length="GEMEndcapLayer_thickness"
1137           zstart="GEMEndcapPLayer2_zmin" />
1138         <layer_material surface="representing" binning="binPhi,binR" bins0="20*GEMEndcapMod_count" bins1="256"/>
1139         <ring 
1140           r="GEMEndcapRingMod_rmin + GEMEndcapRingMod_y/2" zstart="0" dz="GEMEndcapMod_dz"
1141           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1142           module="RingModule" />
1143         <ring 
1144           r="GEMEndcapRingMod_rmin + GEMEndcapRingMod_y/2" zstart="0" dz="GEMEndcapMod_dz"
1145           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1146           module="RingModule" />
1147         <ring 
1148           r="GEMEndcapRingModBotFrame_rmin + GEMEndcapRingModBotFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1149           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1150           module="RingBotFrame" />
1151         <ring 
1152           r="GEMEndcapRingModBotFrame_rmin + GEMEndcapRingModBotFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1153           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1154           module="RingBotFrame" />
1155         <ring 
1156           r="GEMEndcapRingModTopFrame_rmin + GEMEndcapRingModTopFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1157           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1158           module="RingTopFrame" />
1159         <ring 
1160           r="GEMEndcapRingModTopFrame_rmin + GEMEndcapRingModTopFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1161           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1162           module="RingTopFrame" />
1163         <ring 
1164           r="GEMEndcapRingModSpoke_r" zstart="0" dz="0"
1165           nmodules="GEMEndcapMod_count/2" phi0="3*GEMEndcapMod_angle/2"
1166           module="RingSpoke" />
1167       </layer>
1168     </detector>
1169     <detector
1170       id="TrackerEndcapN_3_ID"
1171       name="GEMEndcapN"
1172       type="athena_TrapEndcapTracker"
1173       readout="GEMTrackerEndcapHits2"
1174       vis="TrackerVis"
1175       reflect="true">
1176       <module name="RingModule" vis="TrackerGEMModuleVis">
1177         <trd x1="GEMEndcapRingMod_x1/2" x2="GEMEndcapRingMod_x2/2" z="GEMEndcapRingMod_y/2" />
1178         <comment> going from back to front </comment>
1179         <module_component name="exit_window"      thickness="GEMMylar_thickness"        material="Mylar" vis="TrackerServiceVis" />
1180         <module_component name="exit_region"      thickness="GEMGas_thickness"          material="Ar10CO2"/>
1181         <module_component name="readout_cu"       thickness="GEMCuElectrode_thickness"  material="Copper"/>
1182         <module_component name="readout_foil"     thickness="GEMKapton_thickness"       material="Kapton"/>
1183         <module_component name="induction_region" thickness="GEMGas_thickness"          material="Ar10CO2"/>
1184         <module_component name="gem_foil_3_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1185         <module_component name="gem_foil_3"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1186         <module_component name="transfer_region2" thickness="GEMGas_thickness"                          material="Ar10CO2"/>
1187         <module_component name="gem_foil_2_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1188         <module_component name="gem_foil_2"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1189         <module_component name="transfer_region1" thickness="GEMGas_thickness"                          material="Ar10CO2"/>
1190         <module_component name="gem_foil_1_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1191         <module_component name="gem_foil_1"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1192         <module_component name="drift_region"     thickness="GEMDriftRegion_thickness"                  material="Ar10CO2" sensitive="true"/>
1193         <module_component name="cathode_cu"       thickness="GEMCuElectrode_thickness"  material="Copper"/>
1194         <module_component name="cathode_foil"     thickness="GEMKapton_thickness"       material="Kapton"/>
1195         <module_component name="entrance_region"  thickness="GEMGas_thickness"          material="Ar10CO2"/>
1196         <module_component name="entrance_window"  thickness="GEMMylar_thickness"        material="Mylar" vis="TrackerMPGDVis" />
1197       </module>
1198       <module name="RingBotFrame" vis="TrackerSupportVis">
1199         <trd x1="GEMEndcapRingModBotFrame_x1/2" x2="GEMEndcapRingModBotFrame_x2/2" z="GEMEndcapRingModBotFrame_y/2" />
1200         <module_component name="frame" thickness="GEMFrame_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
1201       </module>
1202       <module name="RingTopFrame" vis="TrackerSupportVis">
1203         <trd x1="GEMEndcapRingModTopFrame_x1/2" x2="GEMEndcapRingModTopFrame_x2/2" z="GEMEndcapRingModTopFrame_y/2" />
1204         <module_component name="frame" thickness="GEMFrame_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
1205       </module>
1206       <module name="RingSpoke" vis="TrackerSupportVis">
1207         <trd x1="GEMSpoke_width/2" x2="GEMSpoke_width/2" z="GEMEndcapRingModSpoke_length/2"/>
1208         <module_component thickness="GEMSpoke_thickness" material="Mylar" vis="TrackerSupportVis"/>
1209       </module>
1210       <module name="LargeModule" vis="TrackerGEMModuleVis">
1211         <trd x1="GEMEndcapLargeMod_x1/2" x2="GEMEndcapLargeMod_x2/2" z="GEMEndcapLargeMod_y/2" />
1212         <comment> going from back to front </comment>
1213         <module_component name="exit_window"      thickness="GEMMylar_thickness"        material="Mylar" vis="TrackerServiceVis" />
1214         <module_component name="exit_region"      thickness="GEMGas_thickness"          material="Ar10CO2"/>
1215         <module_component name="readout_cu"       thickness="GEMCuElectrode_thickness"  material="Copper"/>
1216         <module_component name="readout_foil"     thickness="GEMKapton_thickness"       material="Kapton"/>
1217         <module_component name="induction_region" thickness="GEMGas_thickness"          material="Ar10CO2"/>
1218         <module_component name="gem_foil_3_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1219         <module_component name="gem_foil_3"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1220         <module_component name="transfer_region2" thickness="GEMGas_thickness"                          material="Ar10CO2"/>
1221         <module_component name="gem_foil_2_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1222         <module_component name="gem_foil_2"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1223         <module_component name="transfer_region1" thickness="GEMGas_thickness"                          material="Ar10CO2"/>
1224         <module_component name="gem_foil_1_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1225         <module_component name="gem_foil_1"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1226         <module_component name="drift_region"     thickness="GEMDriftRegion_thickness"                  material="Ar10CO2" sensitive="true"/>
1227         <module_component name="cathode_cu"       thickness="GEMCuElectrode_thickness"  material="Copper"/>
1228         <module_component name="cathode_foil"     thickness="GEMKapton_thickness"       material="Kapton"/>
1229         <module_component name="entrance_region"  thickness="GEMGas_thickness"          material="Ar10CO2"/>
1230         <module_component name="entrance_window"  thickness="GEMMylar_thickness"        material="Mylar" vis="TrackerMPGDVis" />
1231       </module>
1232       <module name="LargeBotFrame" vis="TrackerSupportVis">
1233         <trd x1="GEMEndcapLargeModBotFrame_x1/2" x2="GEMEndcapLargeModBotFrame_x2/2" z="GEMEndcapLargeModBotFrame_y/2" />
1234         <module_component name="frame" thickness="GEMFrame_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
1235       </module>
1236       <module name="LargeTopFrame" vis="TrackerSupportVis">
1237         <trd x1="GEMEndcapLargeModTopFrame_x1/2" x2="GEMEndcapLargeModTopFrame_x2/2" z="GEMEndcapLargeModTopFrame_y/2" />
1238         <module_component name="frame" thickness="GEMFrame_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
1239       </module>
1240       <module name="LargeSpoke" vis="TrackerSupportVis">
1241         <trd x1="GEMSpoke_width/2" x2="GEMSpoke_width/2" z="GEMEndcapLargeModSpoke_length/2"/>
1242         <module_component thickness="GEMSpoke_thickness" material="Mylar" vis="TrackerSupportVis"/>
1243       </module>
1244       <layer id="1">
1245         <envelope vis="TrackerLayerVis"
1246           rmin="GEMEndcapRingLayer_rmin"
1247           rmax="GEMEndcapRingLayer_rmax"
1248           length="GEMEndcapLayer_thickness"
1249           zstart="GEMEndcapNLayer1_zmin" />
1250         <layer_material surface="representing" binning="binPhi,binR" bins0="20*GEMEndcapMod_count" bins1="256"/>
1251         <ring 
1252           r="GEMEndcapRingMod_rmin + GEMEndcapRingMod_y/2" zstart="0" dz="GEMEndcapMod_dz"
1253           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1254           module="RingModule" />
1255         <ring 
1256           r="GEMEndcapRingMod_rmin + GEMEndcapRingMod_y/2" zstart="0" dz="GEMEndcapMod_dz"
1257           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1258           module="RingModule" />
1259         <ring 
1260           r="GEMEndcapRingModBotFrame_rmin + GEMEndcapRingModBotFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1261           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1262           module="RingBotFrame" />
1263         <ring 
1264           r="GEMEndcapRingModBotFrame_rmin + GEMEndcapRingModBotFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1265           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1266           module="RingBotFrame" />
1267         <ring 
1268           r="GEMEndcapRingModTopFrame_rmin + GEMEndcapRingModTopFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1269           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1270           module="RingTopFrame" />
1271         <ring 
1272           r="GEMEndcapRingModTopFrame_rmin + GEMEndcapRingModTopFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1273           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1274           module="RingTopFrame" />
1275         <ring 
1276           r="GEMEndcapRingModSpoke_r" zstart="0" dz="0"
1277           nmodules="GEMEndcapMod_count/2" phi0="3*GEMEndcapMod_angle/2"
1278           module="RingSpoke" />
1279       </layer>
1280       <layer id="2">
1281         <envelope vis="TrackerLayerVis"
1282           rmin="GEMEndcapRingLayer_rmin"
1283           rmax="GEMEndcapRingLayer_rmax"
1284           length="GEMEndcapLayer_thickness"
1285           zstart="GEMEndcapNLayer2_zmin" />
1286         <layer_material surface="representing" binning="binPhi,binR" bins0="20*GEMEndcapMod_count" bins1="256"/>
1287         <ring 
1288           r="GEMEndcapRingMod_rmin + GEMEndcapRingMod_y/2" zstart="0" dz="GEMEndcapMod_dz"
1289           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1290           module="RingModule" />
1291         <ring 
1292           r="GEMEndcapRingMod_rmin + GEMEndcapRingMod_y/2" zstart="0" dz="GEMEndcapMod_dz"
1293           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1294           module="RingModule" />
1295         <ring 
1296           r="GEMEndcapRingModBotFrame_rmin + GEMEndcapRingModBotFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1297           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1298           module="RingBotFrame" />
1299         <ring 
1300           r="GEMEndcapRingModBotFrame_rmin + GEMEndcapRingModBotFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1301           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1302           module="RingBotFrame" />
1303         <ring 
1304           r="GEMEndcapRingModTopFrame_rmin + GEMEndcapRingModTopFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1305           phi0="GEMEndcapMod_angle" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1306           module="RingTopFrame" />
1307         <ring 
1308           r="GEMEndcapRingModTopFrame_rmin + GEMEndcapRingModTopFrame_y/2" zstart="0" dz="GEMEndcapMod_dz"
1309           phi0="0*degree" dphi="GEMEndcapMod_angle" nmodules="GEMEndcapMod_count/2"
1310           module="RingTopFrame" />
1311         <ring 
1312           r="GEMEndcapRingModSpoke_r" zstart="0" dz="0"
1313           nmodules="GEMEndcapMod_count/2" phi0="3*GEMEndcapMod_angle/2"
1314           module="RingSpoke" />
1315       </layer>
1316     </detector>
1317     <detector
1318       id="TrackerEndcapP_4_ID"
1319       name="ForwardGEM"
1320       type="athena_TrapEndcapTracker"
1321       readout="GEMTrackerEndcapHits3"
1322       vis="TrackerVis"
1323       reflect="false">
1324       <module name="LargeModule" vis="TrackerGEMModuleVis">
1325         <trd x1="GEMEndcapLargeMod_x1/2" x2="GEMEndcapLargeMod_x2/2" z="GEMEndcapLargeMod_y/2" />
1326         <comment> going from back to front </comment>
1327         <module_component name="exit_window"      thickness="GEMMylar_thickness"        material="Mylar" vis="TrackerServiceVis" />
1328         <module_component name="exit_region"      thickness="GEMGas_thickness"          material="Ar10CO2"/>
1329         <module_component name="readout_cu"       thickness="GEMCuElectrode_thickness"  material="Copper"/>
1330         <module_component name="readout_foil"     thickness="GEMKapton_thickness"       material="Kapton"/>
1331         <module_component name="induction_region" thickness="GEMGas_thickness"          material="Ar10CO2"/>
1332         <module_component name="gem_foil_3_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1333         <module_component name="gem_foil_3"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1334         <module_component name="transfer_region2" thickness="GEMGas_thickness"                          material="Ar10CO2"/>
1335         <module_component name="gem_foil_2_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1336         <module_component name="gem_foil_2"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1337         <module_component name="transfer_region1" thickness="GEMGas_thickness"                          material="Ar10CO2"/>
1338         <module_component name="gem_foil_1_cu"    thickness="GEMCuElectrode_thickness * GEMAreaFactor"  material="Copper"/>
1339         <module_component name="gem_foil_1"       thickness="GEMKapton_thickness * GEMAreaFactor"       material="Kapton"/>
1340         <module_component name="drift_region"     thickness="GEMDriftRegion_thickness"                  material="Ar10CO2" sensitive="true"/>
1341         <module_component name="cathode_cu"       thickness="GEMCuElectrode_thickness"  material="Copper"/>
1342         <module_component name="cathode_foil"     thickness="GEMKapton_thickness"       material="Kapton"/>
1343         <module_component name="entrance_region"  thickness="GEMGas_thickness"          material="Ar10CO2"/>
1344         <module_component name="entrance_window"  thickness="GEMMylar_thickness"        material="Mylar" vis="TrackerMPGDVis" />
1345       </module>
1346       <module name="LargeBotFrame" vis="TrackerSupportVis">
1347         <trd x1="GEMEndcapLargeModBotFrame_x1/2" x2="GEMEndcapLargeModBotFrame_x2/2" z="GEMEndcapLargeModBotFrame_y/2" />
1348         <module_component name="frame" thickness="GEMFrame_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
1349       </module>
1350       <module name="LargeTopFrame" vis="TrackerSupportVis">
1351         <trd x1="GEMEndcapLargeModTopFrame_x1/2" x2="GEMEndcapLargeModTopFrame_x2/2" z="GEMEndcapLargeModTopFrame_y/2" />
1352         <module_component name="frame" thickness="GEMFrame_thickness" material="CarbonFiber" vis="TrackerSupportVis" />
1353       </module>
1354       <module name="LargeSpoke" vis="TrackerSupportVis">
1355         <trd x1="GEMSpoke_width/2" x2="GEMSpoke_width/2" z="GEMEndcapLargeModSpoke_length/2"/>
1356         <module_component thickness="GEMSpoke_thickness" material="Mylar" vis="TrackerSupportVis"/>
1357       </module>
1358       <layer id="1">
1359         <envelope vis="TrackerLayerVis"
1360           rmin="GEMEndcapLargeLayer_rmin"
1361           rmax="GEMEndcapLargeLayer_rmax"
1362           length="GEMEndcapLayer_thickness"
1363           zstart="GEMEndcapPLayer3_zmin" />
1364         <layer_material surface="representing" binning="binPhi,binR" bins0="20*GEMEndcapMod_count" bins1="256"/>
1365         <ring 
1366           r="GEMEndcapLargeMod_rmin + GEMEndcapLargeMod_y/2"
1367           zstart="0"
1368           nmodules="GEMEndcapMod_count"
1369           dz="GEMEndcapMod_dz"
1370           module="LargeModule" />
1371         <ring 
1372           r="GEMEndcapLargeModBotFrame_rmin + GEMEndcapLargeModBotFrame_y/2"
1373           zstart="0"
1374           nmodules="GEMEndcapMod_count"
1375           dz="GEMEndcapMod_dz"
1376           module="LargeBotFrame" />
1377         <ring 
1378           r="GEMEndcapLargeModTopFrame_rmin + GEMEndcapLargeModTopFrame_y/2"
1379           zstart="0"
1380           nmodules="GEMEndcapMod_count"
1381           dz="GEMEndcapMod_dz"
1382           module="LargeTopFrame" />
1383         <ring 
1384           r="GEMEndcapLargeModSpoke_r"
1385           zstart="0"
1386           nmodules="GEMEndcapMod_count"
1387           dz="0"
1388           phi0="GEMEndcapMod_angle/2"
1389           module="LargeSpoke" />
1390       </layer>
1391     </detector>
1392   </detectors>
1393 
1394 
1395   <readouts>
1396     <readout name="TrackerBarrelHits">
1397       <segmentation type="CartesianGridXY" grid_size_x="0.010*mm" grid_size_y="0.010*mm" />
1398       <id>system:8,layer:4,module:12,sensor:2,x:32:-14,y:-18</id>
1399     </readout>
1400     <readout name="TrackerEndcapHits1">
1401       <segmentation type="CartesianGridXZ" grid_size_x="0.010*mm" grid_size_z="0.010*mm" />
1402       <id>system:8,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
1403     </readout>
1404     <readout name="TrackerEndcapHits2">
1405       <segmentation type="CartesianGridXZ" grid_size_x="0.010*mm" grid_size_z="0.010*mm" />
1406       <id>system:8,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
1407     </readout>
1408     <readout name="TrackerEndcapHits3">
1409       <segmentation type="CartesianGridXZ" grid_size_x="0.010*mm" grid_size_z="0.010*mm" />
1410       <id>system:8,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
1411     </readout>
1412     <readout name="TrackerEndcapHits4">
1413       <segmentation type="CartesianGridXZ" grid_size_x="0.010*mm" grid_size_z="0.010*mm" />
1414       <id>system:8,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
1415     </readout>
1416     <readout name="TrackerEndcapHits5">
1417       <segmentation type="CartesianGridXZ" grid_size_x="0.010*mm" grid_size_z="0.010*mm" />
1418       <id>system:8,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
1419     </readout>
1420     <readout name="TrackerEndcapHits6">
1421       <segmentation type="CartesianGridXZ" grid_size_x="0.010*mm" grid_size_z="0.010*mm" />
1422       <id>system:8,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
1423     </readout>
1424     <readout name="MPGDTrackerBarrelHits1">
1425       <segmentation type="CartesianGridXY" grid_size_x="0.150*mm*sqrt(12)" grid_size_y="0.150*mm*sqrt(12)" />
1426       <id>system:8,layer:4,module:12,sensor:2,x:32:-14,y:-18</id>
1427     </readout>
1428     <readout name="MPGDTrackerBarrelHits2">
1429       <segmentation type="CartesianGridXY" grid_size_x="0.150*mm*sqrt(12)" grid_size_y="0.150*mm*sqrt(12)" />
1430       <id>system:8,layer:4,module:12,sensor:2,x:32:-14,y:-18</id>
1431     </readout>
1432     <readout name="GEMTrackerEndcapHits1">
1433       <segmentation type="CartesianGridXZ" grid_size_x="0.050*mm*sqrt(12)" grid_size_z="0.250*mm*sqrt(12)" />
1434       <id>system:8,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
1435     </readout>
1436     <readout name="GEMTrackerEndcapHits2">
1437       <segmentation type="CartesianGridXZ" grid_size_x="0.050*mm*sqrt(12)" grid_size_z="0.250*mm*sqrt(12)" />
1438       <id>system:8,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
1439     </readout>
1440     <readout name="GEMTrackerEndcapHits3">
1441       <segmentation type="CartesianGridXZ" grid_size_x="0.050*mm*sqrt(12)" grid_size_z="0.250*mm*sqrt(12)" />
1442       <id>system:8,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
1443     </readout>
1444   </readouts>
1445 
1446 </lccdd>