Back to home page

EIC code displayed by LXR

 
 

    


Warning, /epic/compact/tracking/deprecated/central_tracker.xml is written in an unsupported language. File is not indexed.

0001 <!-- SPDX-License-Identifier: LGPL-3.0-or-later -->
0002 <!-- Copyright (C) 2022 Sylvester Joosten -->
0003 
0004 <lccdd>
0005   <documentation>
0006     ### Silicon Tracker
0007 
0008 #### Some references:
0009 
0010 - With some added info on ITS3 chip from https://indico.bnl.gov/event/10677/contributions/45591/attachments/33204/53254/20210318-IR2%40EIC-SVT.pdf
0011 To be used as standin until we get more detailed specs from the working group on the tracker.
0012 - https://wiki.bnl.gov/athena/index.php/Tracking
0013 
0014 Note: initial implementation with hard-coded values,
0015 TODO: add parametrization
0016 
0017 #### ITS3 sensors
0018 
0019 ITS3 sensor thickness:
0020 - 40um, pixel size: 10um (segmentation)
0021 - total X0 0.55% per barrel layer:
0022 -  0.35 mm aluminum ~ 0.4% X0.
0023 -  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%
0024 
0025 total X0 0.24% per disk layer (4 sectors per disk):
0026   - 0.15 mm aluminum ~ 0.16% X0.
0027   - 1 x carbonfiber (RL ~ 28) 0.12 mm to match Si (RL~9) of 0.04mm ~ 0.04%
0028 
0029   </documentation>
0030 
0031   <define>
0032     <constant name="CentralTrackerSensor_thickness"      value="40*um"/>
0033     <constant name="TrackerCarbon_thickness"         value="0.12*mm"/>
0034     <constant name="TrackerEndcapAluminum_thickness" value="0.15*mm"/>
0035 
0036     <comment>
0037       Layer_rOffset is used to add inside space so the _rmin value is the nominal sensor radius.
0038       TrackerBarrelSpaceFrame_height must be smaller than {_rmin2 - _rmin1 - Layer_rOffset - 1mm - stave_thickness}
0039     </comment>
0040 
0041     <constant name="TrackerBarrelLayer_rOffset"     value="0.5*cm"/>
0042     <constant name="TrackerBarrelSpaceFrame_width"  value="4.0*cm"/>
0043     <constant name="TrackerBarrelSpaceFrame_height" value="1.0*cm"/>
0044     <constant name="TrackerSensor_thickness"        value="CentralTrackerSensor_thickness"/>
0045 
0046     <constant name="TrackerBarrelInner_rmin1"       value="21.0*cm"/>
0047     <constant name="TrackerBarrelInner_rmin2"       value="22.68*cm"/>
0048     <constant name="TrackerBarrelInner_length1"     value="54.0*cm"/>
0049     <constant name="TrackerBarrelInner_length2"     value="60.0*cm"/>
0050 
0051     <constant name="TrackerBarrelOuter_rmin1"       value="39.3*cm"/>
0052     <constant name="TrackerBarrelOuter_rmin2"       value="43.23*cm"/>
0053     <constant name="TrackerBarrelOuter_length1"     value="105.0*cm"/>
0054     <constant name="TrackerBarrelOuter_length2"     value="114.0*cm"/>
0055 
0056     <constant name="TrackerBarrelInner_thickness"   value="TrackerBarrelInner_rmin2 - TrackerBarrelInner_rmin1"/>
0057     <constant name="TrackerBarrelOuter_thickness"   value="TrackerBarrelOuter_rmin2 - TrackerBarrelOuter_rmin1"/>
0058     <constant name="TrackerBarrelInner_length"      value="TrackerBarrelInner_length2+0.5*cm"/>
0059     <constant name="TrackerBarrelOuter_length"      value="TrackerBarrelOuter_length2+0.5*cm"/>
0060 
0061     <comment>
0062       Here we are assuming the two endcaps (P and N) are symmetric.
0063     </comment>
0064     <constant name="TrackerEndcapInner_nLayers"          value="1"/>
0065     <constant name="TrackerEndcapOuter_nLayers"          value="3"/>
0066     <constant name="TrackerEndcapLayer_dz"               value="2*cm"/>
0067 
0068     <constant name="TrackerEndcapInner_zmin"            value="49*cm"/>
0069     <constant name="TrackerEndcapInner_zmax"            value="TrackerEndcapInner_zmin+TrackerEndcapLayer_dz"/>
0070     <constant name="TrackerEndcapInner_length"          value="TrackerEndcapLayer_dz"/>
0071     <constant name="TrackerEndcapInnerLayer_thickness"  value="min(3.0*cm,TrackerEndcapLayer_dz - 0.5*cm)"/>
0072 
0073     <constant name="TrackerEndcapOuter_zmin1"            value="73*cm"/>
0074     <constant name="TrackerEndcapOuter_zmin2"            value="97*cm"/>
0075     <constant name="TrackerEndcapOuter_zmin3"            value="121*cm"/>
0076     <constant name="TrackerEndcapOuter_zmin"             value="TrackerEndcapOuter_zmin1"/>
0077     <constant name="TrackerEndcapOuter_zmax"             value="TrackerEndcapOuter_zmin3 + TrackerEndcapLayer_dz"/>
0078     <constant name="TrackerEndcapOuterLayer_thickness"   value="min(5.0*cm,TrackerEndcapLayer_dz - 1.0*cm)"/>
0079 
0080     <comment> Note, the -1.0*cm is so the layers do not touch surfaces.
0081       This is a limitation of ACTS geometry which will likely go away in the future.</comment>
0082 
0083 
0084     <constant name="TrackerEndcapInner_rmin1" value="Beampipe_rmax+1.0*cm"/>
0085     <!-- <constant name="TrackerEndcapInner_rmin2" value="Beampipe_rmax+1.0*cm"/> -->
0086     <comment> this can be parametrized as a function of z. From acts check: rmin must > 3.57627cm which is beampipe_max+0.4cm</comment>
0087     <constant name="TrackerEndcapOuter_rmin1" value="3.6*cm"/>
0088     <constant name="TrackerEndcapOuter_rmin2" value="4.7*cm"/>
0089     <constant name="TrackerEndcapOuter_rmin3" value="5.91*cm"/>
0090 
0091     <constant name="TrackerEndcapInner_rmax1"  value="36.26*cm-5.0*mm"/>
0092     <constant name="TrackerEndcapOuter_rmax1"  value="43.23*cm"/>
0093     <constant name="TrackerEndcapOuter_rmax2"  value="43.23*cm"/>
0094     <constant name="TrackerEndcapOuter_rmax3"  value="43.23*cm"/>
0095 
0096     <comment> build the cone from vertex endcap to inner barrel endcap </comment>
0097     <constant name="TrackerSupportCarbon_thickness"    value="2*mm"/>
0098     <constant name="TrackerEndcapInnerCone_zmax"       value="TrackerEndcapInner_zmin-0.5*cm"/>
0099     <constant name="TrackerEndcapInnerCone_zmin"       value="TrackerBarrelInner_length2/2+0.5*cm"/>
0100     <constant name="TrackerEndcapInnerCone_rmin1"      value="TrackerBarrelInner_rmin1"/>
0101     <constant name="TrackerEndcapInnerCone_rmin2"      value="TrackerEndcapInner_rmax1"/>
0102     <constant name="TrackerEndcapInnerCone_length"     value="TrackerEndcapInnerCone_zmax - TrackerEndcapInnerCone_zmin"/>
0103     <constant name="TrackerEndcapInnerConeService_rmin1"      value="TrackerEndcapInnerCone_rmin1+TrackerSupportCarbon_thickness+0.1*mm"/>
0104     <constant name="TrackerEndcapInnerConeService_rmin2"      value="TrackerEndcapInnerCone_rmin2+TrackerSupportCarbon_thickness+0.1*mm"/>
0105     <constant name="TrackerEndcapInnerConeService_thickness"  value="2.5*mm"/>
0106 
0107     <comment> The carbonfiber shell covers the outer 3 disks and intercepts with the diagonal cone at TrackerEndcapOuter_rmax1 * TrackerEndcapInner_zmin/TrackerEndcapInner_rmax1 ~ 60cm </comment>
0108     <constant name="TrackerEndcapOuterShell_rmin"       value="TrackerEndcapOuter_rmax3 + 0.5*cm"/>
0109     <constant name="TrackerEndcapOuterShell_zmin"      value="TrackerEndcapOuter_rmax1 * TrackerEndcapInner_zmin/TrackerEndcapInner_rmax1+1*cm"/>
0110     <constant name="TrackerEndcapOuterShell_length"    value="TrackerEndcapOuter_zmax - TrackerEndcapOuterShell_zmin"/>
0111 
0112     <comment> build the cone from inner barrel endcap to outer barrel endcap1. For now can not make zmin start at the inner endcap location, will overlap with outer barrel volume </comment>
0113     <!-- <constant name="TrackerEndcapOuterCone_zmax"       value="TrackerEndcapOuterShell_zmin-0.2*cm"/> -->
0114     <constant name="TrackerEndcapOuterCone_zmin"       value="TrackerBarrelOuter_length/2.0+0.1*cm"/>
0115     <constant name="TrackerEndcapOuterCone_zmax"       value="TrackerEndcapOuterShell_zmin -0.1*cm"/>
0116     <constant name="TrackerEndcapOuterCone_rmin1"      value="TrackerEndcapOuterCone_zmin * TrackerEndcapInner_rmax1 / TrackerEndcapInner_zmin"/>
0117     <!-- <constant name="TrackerEndcapOuterCone_rmin1"      value="TrackerEndcapInner_rmax1"/> -->
0118     <constant name="TrackerEndcapOuterCone_rmin2"      value="TrackerEndcapOuterShell_rmin"/>
0119     <constant name="TrackerEndcapOuterConeService_rmin1"      value="TrackerEndcapOuterCone_rmin1+TrackerSupportCarbon_thickness+0.1*mm"/>
0120     <constant name="TrackerEndcapOuterConeService_rmin2"      value="TrackerEndcapOuterCone_rmin2+TrackerSupportCarbon_thickness+0.1*mm"/>
0121     <constant name="TrackerEndcapOuterConeService_thickness"      value="2*mm"/>
0122     <constant name="TrackerEndcapOuterCone_length"     value="TrackerEndcapOuterCone_zmax - TrackerEndcapOuterCone_zmin"/>
0123 
0124 
0125     <comment> Barrel staves, nmodules = np.pi/np.arcsin(frame_width*np.cos(tilt_angle)/2.0/R) </comment>
0126     <constant name="TrackerBarrel_StaveTiltAngle" value="5.0*degree"/>
0127     <constant name="TrackerBarrelInner_NModules1" value="33"/>
0128     <constant name="TrackerBarrelInner_NModules2" value="36"/>
0129     <constant name="TrackerBarrelOuter_NModules1" value="62"/>
0130     <constant name="TrackerBarrelOuter_NModules2" value="68"/>
0131 
0132     <comment> endcap panels, with z offset of 2.5mm each panel, and 0.5 degree overlap </comment>
0133     <constant name="TrackerEndcap_NModules" value="12"/>
0134     <constant name="TrackerEndcapModule_dz"               value="2.5*mm"/>
0135     <constant name="TrackerEndcapInnerModOpeningAngle"    value="360.0/TrackerEndcap_NModules*degree + 0.5*degree"/>
0136     <constant name="TrackerEndcapInnerMod1_x1"            value="2.0*TrackerEndcapInner_rmin1*sin(TrackerEndcapInnerModOpeningAngle/2.0)"/>
0137     <constant name="TrackerEndcapInnerMod1_x2"            value="2.0*TrackerEndcapInner_rmax1*sin(TrackerEndcapInnerModOpeningAngle/2.0)"/>
0138     <constant name="TrackerEndcapInnerMod1_y"             value="TrackerEndcapInner_rmax1*cos(TrackerEndcapInnerModOpeningAngle/2.0) - TrackerEndcapInner_rmin1"/>
0139 
0140     <constant name="TrackerEndcapOuterModOpeningAngle" value="360.0/TrackerEndcap_NModules*degree + 0.5*degree"/>
0141     <constant name="TrackerEndcapOuterMod1_x1"            value="2.0*TrackerEndcapOuter_rmin1*sin(TrackerEndcapOuterModOpeningAngle/2.0)"/>
0142     <constant name="TrackerEndcapOuterMod1_x2"            value="2.0*TrackerEndcapOuter_rmax1*sin(TrackerEndcapOuterModOpeningAngle/2.0)"/>
0143     <constant name="TrackerEndcapOuterMod1_y"             value="TrackerEndcapOuter_rmax1*cos(TrackerEndcapOuterModOpeningAngle/2.0) - TrackerEndcapOuter_rmin1"/>
0144     <constant name="TrackerEndcapOuterMod2_x1"            value="2.0*TrackerEndcapOuter_rmin2*sin(TrackerEndcapOuterModOpeningAngle/2.0)"/>
0145     <constant name="TrackerEndcapOuterMod2_x2"            value="2.0*TrackerEndcapOuter_rmax2*sin(TrackerEndcapOuterModOpeningAngle/2.0)"/>
0146     <constant name="TrackerEndcapOuterMod2_y"             value="TrackerEndcapOuter_rmax2*cos(TrackerEndcapOuterModOpeningAngle/2.0) - TrackerEndcapOuter_rmin2"/>
0147     <constant name="TrackerEndcapOuterMod3_x1"            value="2.0*TrackerEndcapOuter_rmin3*sin(TrackerEndcapOuterModOpeningAngle/2.0)"/>
0148     <constant name="TrackerEndcapOuterMod3_x2"            value="2.0*TrackerEndcapOuter_rmax3*sin(TrackerEndcapOuterModOpeningAngle/2.0)"/>
0149     <constant name="TrackerEndcapOuterMod3_y"             value="TrackerEndcapOuter_rmax3*cos(TrackerEndcapOuterModOpeningAngle/2.0) - TrackerEndcapOuter_rmin3"/>
0150 
0151   </define>
0152 
0153   <display>
0154   </display>
0155 
0156   <detectors>
0157 
0158 
0159     <comment>
0160       #### Inner Tracker Subassembly
0161     </comment>
0162 
0163     <detector
0164       id="TrackerBarrel_0_ID"
0165       name="TrackerBarrel_Inner"
0166       type="epic_TrackerBarrel"
0167       readout="TrackerBarrelHits"
0168       insideTrackingVolume="true">
0169       <dimensions
0170         rmin="TrackerBarrelInner_rmin1-TrackerBarrelLayer_rOffset"
0171         rmax="TrackerBarrelInner_rmin2-TrackerBarrelLayer_rOffset + TrackerBarrelInner_thickness"
0172         length="TrackerBarrelInner_length"/>
0173       <comment>
0174         Tracker Barrel Modules
0175       </comment>
0176       <module name="TrackerBarrelInner_Module1" vis="TrackerModuleVis">
0177         <frame material="CarbonFiber" vis="TrackerSupportVis"
0178           width="TrackerBarrelSpaceFrame_width"
0179           height="TrackerBarrelSpaceFrame_height"
0180           length="TrackerBarrelInner_length1"
0181           thickness="TrackerCarbon_thickness" />
0182         <module_component name="aluminum1" material="Aluminum" sensitive="false"
0183           width="TrackerBarrelSpaceFrame_width" length="TrackerBarrelInner_length1-4*mm" thickness="0.4*mm" />
0184         <module_component name="silicon"
0185           width="TrackerBarrelSpaceFrame_width"
0186           length="TrackerBarrelInner_length1-5*mm" thickness="TrackerSensor_thickness" material="Silicon" sensitive="true">
0187           <!--position z="-0.025*mm" y="0*mm"/-->
0188         </module_component>
0189       </module>
0190       <module name="TrackerBarrelInner_Module2" vis="TrackerModuleVis">
0191         <frame material="CarbonFiber" vis="TrackerSupportVis"
0192           width="TrackerBarrelSpaceFrame_width"
0193           height="TrackerBarrelSpaceFrame_height"
0194           length="TrackerBarrelInner_length2"
0195           thickness="TrackerCarbon_thickness" />
0196         <module_component name="aluminum1" material="Aluminum" sensitive="false"
0197           width="TrackerBarrelSpaceFrame_width" length="TrackerBarrelInner_length2-4*mm" thickness="0.4*mm" />
0198         <module_component name="silicon"
0199           width="TrackerBarrelSpaceFrame_width"
0200           length="TrackerBarrelInner_length2-5*mm" thickness="TrackerSensor_thickness" material="Silicon" sensitive="true">
0201           <!--position z="-0.025*mm" y="0*mm"/-->
0202         </module_component>
0203       </module>
0204       <comment>
0205         Tracker Barrel Inner Layers
0206       </comment>
0207       <layer module="TrackerBarrelInner_Module1" id="1" vis="TrackerLayerVis">
0208         <barrel_envelope
0209           inner_r="TrackerBarrelInner_rmin1-TrackerBarrelLayer_rOffset"
0210           outer_r="TrackerBarrelInner_rmin1-TrackerBarrelLayer_rOffset + TrackerBarrelInner_thickness-1.0*mm"
0211           z_length="TrackerBarrelInner_length1"/>
0212         <layer_material surface="outer" binning="binPhi,binZ" bins0="100*TrackerBarrelInner_NModules1" bins1="100" />
0213         <rphi_layout phi_tilt="TrackerBarrel_StaveTiltAngle" nphi="TrackerBarrelInner_NModules1" phi0="0.0" rc="TrackerBarrelInner_rmin1" dr="0.0 * mm"/>
0214         <z_layout dr="0.0 * mm" z0="0.0 * mm" nz="1"/>
0215       </layer>
0216       <layer module="TrackerBarrelInner_Module2" id="2" vis="TrackerLayerVis">
0217         <barrel_envelope
0218           inner_r="TrackerBarrelInner_rmin2-TrackerBarrelLayer_rOffset"
0219           outer_r="TrackerBarrelInner_rmin2-TrackerBarrelLayer_rOffset + TrackerBarrelInner_thickness"
0220           z_length="TrackerBarrelInner_length2"/>
0221         <layer_material surface="outer" binning="binPhi,binZ" bins0="100*TrackerBarrelInner_NModules2" bins1="100" />
0222         <rphi_layout phi_tilt="TrackerBarrel_StaveTiltAngle" nphi="TrackerBarrelInner_NModules2" phi0="0.0" rc="TrackerBarrelInner_rmin2" dr="0.0 * mm"/>
0223         <z_layout dr="0.0 * mm" z0="0.0 * mm" nz="1"/>
0224       </layer>
0225     </detector>
0226 
0227     <detector
0228       id="TrackerEndcapP_0_ID"
0229       name="TrackerEndcapP_Inner"
0230       type="epic_TrapEndcapTracker"
0231       readout="TrackerEndcapHits"
0232       vis="TrackerVis"
0233       reflect="false">
0234 
0235       <support  material="CarbonFiber" name="sup_cone" vis="TrackerSupportVis">
0236         <shape type="Cone"
0237           rmin1="TrackerEndcapInnerCone_rmin1" rmax1="TrackerEndcapInnerCone_rmin1 + TrackerSupportCarbon_thickness"
0238           rmin2="TrackerEndcapInnerCone_rmin2" rmax2="TrackerEndcapInnerCone_rmin2 + TrackerSupportCarbon_thickness" z="TrackerEndcapInnerCone_length/2.0"/>
0239         <position x="0*cm"  y="0*cm"   z="(TrackerEndcapInnerCone_zmax+TrackerEndcapInnerCone_zmin)/2.0"/>
0240       </support>
0241       <support  material="Aluminum" name="sup_cone_service" vis="TrackerSupportVis">
0242       <shape type="Cone"
0243           rmin1="TrackerEndcapInnerConeService_rmin1" rmax1="TrackerEndcapInnerConeService_rmin1 + TrackerEndcapInnerConeService_thickness"
0244           rmin2="TrackerEndcapInnerConeService_rmin2" rmax2="TrackerEndcapInnerConeService_rmin2 + TrackerEndcapInnerConeService_thickness" z="TrackerEndcapInnerCone_length/2.0"/>
0245         <position x="0*cm"  y="0*cm"   z="(TrackerEndcapInnerCone_zmax+TrackerEndcapInnerCone_zmin)/2.0"/>
0246       </support>
0247 
0248       <module name="Module1" vis="AnlProcess_Blue">
0249         <trd x1="TrackerEndcapInnerMod1_x1/2.0" x2="TrackerEndcapInnerMod1_x2/2.0" z="TrackerEndcapInnerMod1_y/2"/>
0250         <module_component thickness="CentralTrackerSensor_thickness" material="Silicon" sensitive="true"/>
0251        <module_component thickness="TrackerEndcapAluminum_thickness"  material="Aluminum"/>
0252         <module_component thickness="TrackerCarbon_thickness"          material="CarbonFiber"/>
0253       </module>
0254       <layer id="1">
0255         <envelope  vis="TrackerVis"
0256           rmin="TrackerEndcapInner_rmin1"
0257           rmax="TrackerEndcapInner_rmax1"
0258           length="TrackerEndcapInnerLayer_thickness"
0259           zstart="TrackerEndcapInner_zmin" />
0260         <layer_material surface="representing" binning="binPhi,binR" bins0="20*TrackerEndcap_NModules" bins1="256"/>
0261         <ring vis="TrackerVis"
0262           r="TrackerEndcapInner_rmin1+TrackerEndcapInnerMod1_y/2.0"
0263           zstart="0.0"
0264           nmodules="TrackerEndcap_NModules" dz="TrackerEndcapModule_dz" module="Module1" />
0265       </layer>
0266     </detector>
0267 
0268     <detector
0269       id="TrackerEndcapN_0_ID"
0270       name="TrackerEndcapN_Inner"
0271       type="epic_TrapEndcapTracker"
0272       readout="TrackerEndcapHits"
0273       vis="TrackerVis"
0274       reflect="true">
0275       <support  material="CarbonFiber" name="sup_cone" vis="TrackerSupportVis">
0276         <shape type="Cone"
0277           rmin2="TrackerEndcapInnerCone_rmin1" rmax2="TrackerEndcapInnerCone_rmin1 + TrackerSupportCarbon_thickness"
0278           rmin1="TrackerEndcapInnerCone_rmin2" rmax1="TrackerEndcapInnerCone_rmin2 + TrackerSupportCarbon_thickness" z="TrackerEndcapInnerCone_length/2.0"/>
0279         <position x="0*cm"  y="0*cm"   z="-1.0*(TrackerEndcapInnerCone_zmax+TrackerEndcapInnerCone_zmin)/2.0"/>
0280       </support>
0281       <support  material="Aluminum" name="sup_cone_service" vis="TrackerSupportVis">
0282       <shape type="Cone"
0283           rmin2="TrackerEndcapInnerConeService_rmin1" rmax2="TrackerEndcapInnerConeService_rmin1 + TrackerEndcapInnerConeService_thickness"
0284           rmin1="TrackerEndcapInnerConeService_rmin2" rmax1="TrackerEndcapInnerConeService_rmin2 + TrackerEndcapInnerConeService_thickness" z="TrackerEndcapInnerCone_length/2.0"/>
0285         <position x="0*cm"  y="0*cm"   z="-1.0*(TrackerEndcapInnerCone_zmax+TrackerEndcapInnerCone_zmin)/2.0"/>
0286       </support>
0287 
0288 
0289       <module name="Module1" vis="AnlProcess_Blue">
0290         <trd x1="TrackerEndcapInnerMod1_x1/2.0" x2="TrackerEndcapInnerMod1_x2/2.0" z="TrackerEndcapInnerMod1_y/2"/>
0291         <module_component thickness="CentralTrackerSensor_thickness" material="Silicon" sensitive="true"/>
0292         <module_component thickness="TrackerEndcapAluminum_thickness"  material="Aluminum"/>
0293         <module_component thickness="TrackerCarbon_thickness"          material="CarbonFiber"/>
0294       </module>
0295       <layer id="1">
0296         <envelope  vis="TrackerVis"
0297           rmin="TrackerEndcapInner_rmin1"
0298           rmax="TrackerEndcapInner_rmax1"
0299           length="TrackerEndcapInnerLayer_thickness"
0300           zstart="TrackerEndcapInner_zmin" />
0301         <layer_material surface="representing" binning="binPhi,binR" bins0="20*TrackerEndcap_NModules" bins1="256"/>
0302         <ring vis="TrackerVis"
0303           r="TrackerEndcapInner_rmin1+TrackerEndcapInnerMod1_y/2.0"
0304           zstart="0"
0305           nmodules="TrackerEndcap_NModules" dz="TrackerEndcapModule_dz" module="Module1" />
0306       </layer>
0307     </detector>
0308 
0309     <comment>
0310       -----------------------------------
0311       Outer Tracker Subassembly (group 2)
0312       -----------------------------------
0313     </comment>
0314     <detector
0315       id="TrackerBarrel_1_ID"
0316       name="TrackerBarrel_Outer"
0317       type="epic_TrackerBarrel"
0318       readout="TrackerBarrelHits"
0319       insideTrackingVolume="true">
0320       <dimensions
0321         rmin="TrackerBarrelOuter_rmin1-TrackerBarrelLayer_rOffset"
0322         rmax="TrackerBarrelOuter_rmin2-TrackerBarrelLayer_rOffset + TrackerBarrelOuter_thickness"
0323         length="TrackerBarrelOuter_length"/>
0324       <comment>
0325         Tracker Barrel Modules
0326       </comment>
0327       <module name="TrackerBarrelOuter_Module1" vis="TrackerModuleVis">
0328         <frame  material="CarbonFiber" vis="TrackerSupportVis"
0329           width="TrackerBarrelSpaceFrame_width"
0330           height="TrackerBarrelSpaceFrame_height"
0331           length="TrackerBarrelOuter_length1"
0332           thickness="TrackerCarbon_thickness" />
0333         <module_component name="aluminum1" material="Aluminum" sensitive="false"
0334           width="TrackerBarrelSpaceFrame_width" length="TrackerBarrelOuter_length1-0.1*mm" thickness="0.40*mm" />
0335         <module_component name="silicon"
0336           width="TrackerBarrelSpaceFrame_width"
0337           length="TrackerBarrelOuter_length1-0.1*mm"
0338           thickness="TrackerSensor_thickness" material="Silicon" sensitive="true">
0339         </module_component>
0340       </module>
0341       <module name="TrackerBarrelOuter_Module2" vis="TrackerModuleVis">
0342         <frame  material="CarbonFiber" vis="TrackerSupportVis"
0343           width="TrackerBarrelSpaceFrame_width"
0344           height="TrackerBarrelSpaceFrame_height"
0345           length="TrackerBarrelOuter_length2"
0346           thickness="TrackerCarbon_thickness" />
0347         <module_component name="aluminum1" material="Aluminum" sensitive="false"
0348           width="TrackerBarrelSpaceFrame_width" length="TrackerBarrelOuter_length2-0.1*mm" thickness="0.40*mm" />
0349         <module_component name="silicon"
0350           width="TrackerBarrelSpaceFrame_width"
0351           length="TrackerBarrelOuter_length1-0.1*mm"
0352           thickness="TrackerSensor_thickness" material="Silicon" sensitive="true">
0353         </module_component>
0354       </module>
0355       <comment>
0356         Tracker Barrel Outer Layers
0357       </comment>
0358       <layer module="TrackerBarrelOuter_Module1" id="1" vis="TrackerLayerVis">
0359         <barrel_envelope
0360           inner_r="TrackerBarrelOuter_rmin1-TrackerBarrelLayer_rOffset"
0361           outer_r="TrackerBarrelOuter_rmin1-TrackerBarrelLayer_rOffset + TrackerBarrelOuter_thickness-1.0*mm"
0362           z_length="TrackerBarrelOuter_length1"/>
0363         <layer_material surface="outer" binning="binPhi,binZ" bins0="100*TrackerBarrelOuter_NModules1" bins1="100" />
0364         <rphi_layout phi_tilt="TrackerBarrel_StaveTiltAngle" nphi="TrackerBarrelOuter_NModules1" phi0="0.0" rc="TrackerBarrelOuter_rmin1" dr="0.0 * mm"/>
0365         <z_layout dr="0.0 * mm" z0="0.0 * mm" nz="1"/>
0366       </layer>
0367       <layer module="TrackerBarrelOuter_Module2" id="2" vis="TrackerLayerVis">
0368         <barrel_envelope
0369           inner_r="TrackerBarrelOuter_rmin2-TrackerBarrelLayer_rOffset"
0370           outer_r="TrackerBarrelOuter_rmin2-TrackerBarrelLayer_rOffset + TrackerBarrelOuter_thickness"
0371           z_length="TrackerBarrelOuter_length2"/>
0372         <layer_material surface="outer" binning="binPhi,binZ" bins0="100*TrackerBarrelOuter_NModules2" bins1="100" />
0373         <rphi_layout phi_tilt="TrackerBarrel_StaveTiltAngle" nphi="TrackerBarrelOuter_NModules2" phi0="0.0" rc="TrackerBarrelOuter_rmin2" dr="0.0 * mm"/>
0374         <z_layout dr="0.0 * mm" z0="0.0 * mm" nz="1"/>
0375       </layer>
0376     </detector>
0377 
0378     <detector
0379       id="TrackerEndcapP_1_ID"
0380       name="TrackerEndcapP_Outer"
0381       type="epic_TrapEndcapTracker"
0382       readout="TrackerEndcapHits"
0383       vis="TrackerVis"
0384       reflect="false">
0385 
0386       <support vis="TrackerSupportVis"  material="CarbonFiber" name="sup_cylinder"
0387         rmin="TrackerEndcapOuterShell_rmin"
0388         thickness="TrackerSupportCarbon_thickness" length="TrackerEndcapOuterShell_length" zstart="TrackerEndcapOuterShell_zmin" />
0389       <support vis="TrackerSupportVis"  material="Aluminum" name="sup_cylinder_service"
0390         rmin="TrackerEndcapOuterShell_rmin+1.0*mm+TrackerSupportCarbon_thickness"
0391         thickness="2.0*mm" length="TrackerEndcapOuterShell_length" zstart="TrackerEndcapOuterShell_zmin" />
0392 
0393       <support  material="CarbonFiber" name="sup_cone" vis="TrackerSupportVis">
0394         <shape type="Cone"
0395           rmin1="TrackerEndcapOuterCone_rmin1" rmax1="TrackerEndcapOuterCone_rmin1+TrackerSupportCarbon_thickness"
0396           rmin2="TrackerEndcapOuterCone_rmin2" rmax2="TrackerEndcapOuterCone_rmin2+TrackerSupportCarbon_thickness" z="TrackerEndcapOuterCone_length/2.0"/>
0397         <position x="0*cm"  y="0*cm"   z="(TrackerEndcapOuterCone_zmin+TrackerEndcapOuterCone_zmax)/2.0"/>
0398       </support>
0399       <support  material="Aluminum" name="sup_cone_service" vis="TrackerSupportVis">
0400         <shape type="Cone"
0401           rmin1="TrackerEndcapOuterConeService_rmin1" rmax1="TrackerEndcapOuterConeService_rmin1+TrackerEndcapOuterConeService_thickness"
0402           rmin2="TrackerEndcapOuterConeService_rmin2" rmax2="TrackerEndcapOuterConeService_rmin2+TrackerEndcapOuterConeService_thickness" z="TrackerEndcapOuterCone_length/2.0"/>
0403         <position x="0*cm"  y="0*cm"   z="(TrackerEndcapOuterCone_zmin+TrackerEndcapOuterCone_zmax)/2.0"/>
0404       </support>
0405 
0406       <module name="Module1" vis="AnlProcess_Blue">
0407         <trd x1="TrackerEndcapOuterMod1_x1/2.0" x2="TrackerEndcapOuterMod1_x2/2.0" z="TrackerEndcapOuterMod1_y/2"/>
0408         <module_component thickness="CentralTrackerSensor_thickness" material="Silicon" sensitive="true"/>
0409        <module_component thickness="TrackerEndcapAluminum_thickness"  material="Aluminum"/>
0410         <module_component thickness="TrackerCarbon_thickness"          material="CarbonFiber"/>
0411       </module>
0412       <module name="Module2" vis="AnlProcess_Blue">
0413         <trd x1="TrackerEndcapOuterMod2_x1/2.0" x2="TrackerEndcapOuterMod2_x2/2.0" z="TrackerEndcapOuterMod2_y/2"/>
0414         <module_component thickness="CentralTrackerSensor_thickness" material="Silicon" sensitive="true"/>
0415        <module_component thickness="TrackerEndcapAluminum_thickness"  material="Aluminum"/>
0416         <module_component thickness="TrackerCarbon_thickness"          material="CarbonFiber"/>
0417       </module>
0418       <module name="Module3" vis="AnlProcess_Blue">
0419         <trd x1="TrackerEndcapOuterMod3_x1/2.0" x2="TrackerEndcapOuterMod3_x2/2.0" z="TrackerEndcapOuterMod3_y/2"/>
0420         <module_component thickness="CentralTrackerSensor_thickness" material="Silicon" sensitive="true"/>
0421        <module_component thickness="TrackerEndcapAluminum_thickness"  material="Aluminum"/>
0422         <module_component thickness="TrackerCarbon_thickness"          material="CarbonFiber"/>
0423       </module>
0424       <layer id="1">
0425         <envelope  vis="TrackerVis"
0426           rmin="TrackerEndcapOuter_rmin1"
0427           rmax="TrackerEndcapOuter_rmax1"
0428           length="TrackerEndcapOuterLayer_thickness"
0429           zstart="TrackerEndcapOuter_zmin1" />
0430         <layer_material surface="representing" binning="binPhi,binR" bins0="20*TrackerEndcap_NModules" bins1="256"/>
0431         <ring vis="TrackerVis"
0432           r="TrackerEndcapOuter_rmin1+TrackerEndcapOuterMod1_y/2.0"
0433           zstart="0.0*mm"
0434           nmodules="TrackerEndcap_NModules" dz="TrackerEndcapModule_dz" module="Module1" />
0435       </layer>
0436       <layer id="2">
0437         <envelope  vis="TrackerVis"
0438           rmin="TrackerEndcapOuter_rmin2"
0439           rmax="TrackerEndcapOuter_rmax2"
0440           length="TrackerEndcapOuterLayer_thickness"
0441           zstart="TrackerEndcapOuter_zmin2" />
0442         <layer_material surface="representing" binning="binPhi,binR" bins0="20*TrackerEndcap_NModules" bins1="256"/>
0443         <ring vis="TrackerVis"
0444           r="TrackerEndcapOuter_rmin2+TrackerEndcapOuterMod2_y/2.0"
0445           zstart="0.0*mm"
0446           nmodules="TrackerEndcap_NModules" dz="TrackerEndcapModule_dz" module="Module2" />
0447       </layer>
0448       <layer id="3">
0449         <envelope  vis="TrackerVis"
0450           rmin="TrackerEndcapOuter_rmin3"
0451           rmax="TrackerEndcapOuter_rmax3"
0452           length="TrackerEndcapOuterLayer_thickness"
0453           zstart="TrackerEndcapOuter_zmin3" />
0454         <layer_material surface="representing" binning="binPhi,binR" bins0="20*TrackerEndcap_NModules" bins1="256"/>
0455         <ring vis="TrackerVis"
0456           r="TrackerEndcapOuter_rmin3+TrackerEndcapOuterMod3_y/2.0"
0457           zstart="0.0*mm"
0458           nmodules="TrackerEndcap_NModules" dz="TrackerEndcapModule_dz" module="Module3" />
0459       </layer>
0460     </detector>
0461 
0462     <detector
0463       id="TrackerEndcapN_1_ID"
0464       name="TrackerEndcapN_Outer"
0465       type="epic_TrapEndcapTracker"
0466       readout="TrackerEndcapHits"
0467       vis="TrackerVis"
0468       reflect="true">
0469 
0470       <support vis="TrackerSupportVis"  material="CarbonFiber" name="sup_cylinder"
0471         rmin="TrackerEndcapOuterShell_rmin"
0472         thickness="TrackerSupportCarbon_thickness" length="TrackerEndcapOuterShell_length" zstart="TrackerEndcapOuterShell_zmin" />
0473       <support vis="TrackerSupportVis"  material="Aluminum" name="sup_cylinder_service"
0474         rmin="TrackerEndcapOuterShell_rmin+1.0*mm+TrackerSupportCarbon_thickness"
0475         thickness="2.0*mm" length="TrackerEndcapOuterShell_length" zstart="TrackerEndcapOuterShell_zmin" />
0476         <comment>the cone can not be reflected. need to flip z explicitly</comment>
0477       <support  material="CarbonFiber" name="sup_cone" vis="TrackerSupportVis">
0478         <shape type="Cone"
0479           rmin2="TrackerEndcapOuterCone_rmin1" rmax2="TrackerEndcapOuterCone_rmin1+TrackerSupportCarbon_thickness"
0480           rmin1="TrackerEndcapOuterCone_rmin2" rmax1="TrackerEndcapOuterCone_rmin2+TrackerSupportCarbon_thickness" z="TrackerEndcapOuterCone_length/2.0"/>
0481         <position x="0*cm"  y="0*cm"   z="-1.0*(TrackerEndcapOuterCone_zmin+TrackerEndcapOuterCone_zmax)/2.0"/>
0482       </support>
0483       <support  material="Aluminum" name="sup_cone_service" vis="TrackerSupportVis">
0484         <shape type="Cone"
0485           rmin2="TrackerEndcapOuterConeService_rmin1" rmax2="TrackerEndcapOuterConeService_rmin1+TrackerEndcapOuterConeService_thickness"
0486           rmin1="TrackerEndcapOuterConeService_rmin2" rmax1="TrackerEndcapOuterConeService_rmin2+TrackerEndcapOuterConeService_thickness" z="TrackerEndcapOuterCone_length/2.0"/>
0487         <position x="0*cm"  y="0*cm"   z="-1.0*(TrackerEndcapOuterCone_zmin+TrackerEndcapOuterCone_zmax)/2.0"/>
0488       </support>
0489 
0490 
0491 
0492       <module name="Module1" vis="AnlProcess_Blue">
0493         <trd x1="TrackerEndcapOuterMod1_x1/2.0" x2="TrackerEndcapOuterMod1_x2/2.0" z="TrackerEndcapOuterMod1_y/2"/>
0494         <module_component thickness="CentralTrackerSensor_thickness" material="Silicon" sensitive="true"/>
0495        <module_component thickness="TrackerEndcapAluminum_thickness"  material="Aluminum"/>
0496         <module_component thickness="TrackerCarbon_thickness"          material="CarbonFiber"/>
0497       </module>
0498       <module name="Module2" vis="AnlProcess_Blue">
0499         <trd x1="TrackerEndcapOuterMod2_x1/2.0" x2="TrackerEndcapOuterMod2_x2/2.0" z="TrackerEndcapOuterMod2_y/2"/>
0500         <module_component thickness="CentralTrackerSensor_thickness" material="Silicon" sensitive="true"/>
0501        <module_component thickness="TrackerEndcapAluminum_thickness"  material="Aluminum"/>
0502         <module_component thickness="TrackerCarbon_thickness"          material="CarbonFiber"/>
0503       </module>
0504       <module name="Module3" vis="AnlProcess_Blue">
0505         <trd x1="TrackerEndcapOuterMod3_x1/2.0" x2="TrackerEndcapOuterMod3_x2/2.0" z="TrackerEndcapOuterMod3_y/2"/>
0506         <module_component thickness="CentralTrackerSensor_thickness" material="Silicon" sensitive="true"/>
0507        <module_component thickness="TrackerEndcapAluminum_thickness"  material="Aluminum"/>
0508         <module_component thickness="TrackerCarbon_thickness"          material="CarbonFiber"/>
0509       </module>
0510       <layer id="1">
0511         <envelope  vis="TrackerVis"
0512           rmin="TrackerEndcapOuter_rmin1"
0513           rmax="TrackerEndcapOuter_rmax1"
0514           length="TrackerEndcapOuterLayer_thickness"
0515           zstart="TrackerEndcapOuter_zmin1" />
0516         <layer_material surface="representing" binning="binPhi,binR" bins0="20*TrackerEndcap_NModules" bins1="256"/>
0517         <ring vis="TrackerVis"
0518           r="TrackerEndcapOuter_rmin1+TrackerEndcapOuterMod1_y/2.0"
0519           zstart="0.0*mm"
0520           nmodules="TrackerEndcap_NModules" dz="TrackerEndcapModule_dz" module="Module1" />
0521       </layer>
0522       <layer id="2">
0523         <envelope  vis="TrackerVis"
0524           rmin="TrackerEndcapOuter_rmin2"
0525           rmax="TrackerEndcapOuter_rmax2"
0526           length="TrackerEndcapOuterLayer_thickness"
0527           zstart="TrackerEndcapOuter_zmin2" />
0528         <layer_material surface="representing" binning="binPhi,binR" bins0="20*TrackerEndcap_NModules" bins1="256"/>
0529         <ring vis="TrackerVis"
0530           r="TrackerEndcapOuter_rmin2+TrackerEndcapOuterMod2_y/2.0"
0531           zstart="0.0*mm"
0532           nmodules="TrackerEndcap_NModules" dz="TrackerEndcapModule_dz" module="Module2" />
0533       </layer>
0534       <layer id="3">
0535         <envelope  vis="TrackerVis"
0536           rmin="TrackerEndcapOuter_rmin3"
0537           rmax="TrackerEndcapOuter_rmax3"
0538           length="TrackerEndcapOuterLayer_thickness"
0539           zstart="TrackerEndcapOuter_zmin3" />
0540         <layer_material surface="representing" binning="binPhi,binR" bins0="20*TrackerEndcap_NModules" bins1="256"/>
0541         <ring vis="TrackerVis"
0542           r="TrackerEndcapOuter_rmin3+TrackerEndcapOuterMod3_y/2.0"
0543           zstart="0.0*mm"
0544           nmodules="TrackerEndcap_NModules" dz="TrackerEndcapModule_dz" module="Module3" />
0545       </layer>
0546     </detector>
0547 
0548   </detectors>
0549 
0550   <readouts>
0551     <readout name="TrackerBarrelHits">
0552       <segmentation type="CartesianGridXY" grid_size_x="0.010*mm" grid_size_y="0.010*mm" />
0553       <id>system:8,layer:4,module:12,sensor:2,x:32:-14,y:-18</id>
0554     </readout>
0555     <readout name="TrackerEndcapHits">
0556       <segmentation type="CartesianGridXZ" grid_size_x="0.010*mm" grid_size_z="0.010*mm" />
0557       <id>system:8,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
0558 
0559 
0560     </readout>
0561   </readouts>
0562 
0563 
0564 </lccdd>