Back to home page

EIC code displayed by LXR

 
 

    


Warning, /DD4hep/examples/LHeD/compact/compact_Lhe_dip_sol_big_sol_ell.xml is written in an unsupported language. File is not indexed.

0001 <!-- ====================================================================== -->
0002 <!--                                                                        -->
0003 <!--    XML description of the complete LHeC detector                       -->
0004 <!--    a detector for a new LHC option using a ERL e-source                -->
0005 <!--                                                                        -->
0006 <!--    Contained are the required                                          -->
0007 <!--      ++ global constants used uniquely by this detector                -->
0008 <!--      ++ visualization attributes                                       -->
0009 <!--      ++ the definition of the readout structure and the                -->
0010 <!--         readout segmentation (if necessary)                            -->
0011 <!--      ++ [the include statements for the sensitive detectors and        -->
0012 <!--         the corresponding support structure(s)]                        -->
0013 <!--      ++ SurfacePlugin not active                                       -->
0014 <!--                                                                        -->
0015 <!--   @author  P.Kostka                                                    -->
0016 <!--   @date    old version 20.10.2017                                      -->
0017 <!--                                                                        -->
0018 <!-- ====================================================================== -->
0019 
0020 <lccdd xmlns:compact="-"
0021     xmlns:xs="-"
0022     xs:noNamespaceSchemaLocation="-">
0023 
0024     <info name="LHeC_CDR"
0025         title="LHeC Detector - based on CLIC Silicon Detector DD4hep layout"
0026         author="Peter Kostka"
0027         url="http:dummy-url.de"
0028         status="development"
0029         version="$Id: compact.xml 2013-12-13 12:28:53Z peter.kostka@cern.ch $">
0030         <comment> The compact format for the LHeC Detector used for design studies </comment>
0031     </info>
0032 
0033     <includes>
0034         <gdmlFile  ref="${Lhe_Detector_dir}/compact/elements.xml"/>
0035         <gdmlFile  ref="${Lhe_Detector_dir}/compact/materials.xml"/>
0036     </includes>
0037 
0038     <define>
0039         <constant name="Lhe_Detector_dir" value="${DD4hepINSTALL}/examples/LHeD/" type="string"/>;
0040         <constant name="world_side" value="20.*m"/>
0041         <constant name="world_x" value="world_side"/>
0042         <constant name="world_y" value="world_side"/>
0043         <constant name="world_z" value="world_side"/>
0044 
0045         <constant name="CrossingAngle" value="0.020*rad"/>
0046 
0047         <constant name="tracking_region_radius" value="46.0*cm + 0.8*cm"/>
0048         <constant name="SolenoidalFieldRadius"  value="100.0*cm + 0.2*m"/>
0049 
0050         <constant name="CaloSides" value="12"/>
0051         <constant name="MuonSides" value="8"/>
0052 
0053     <comment> additional defined Parameters  - Lhe add-on </comment>
0054         <constant name="CentralBeamPipe_zmax" value="580.0*cm"/>
0055         <constant name="CentralBeamPipe_rmax" value="2.4*cm"/>
0056         <constant name="CentralBeamPipe_thickness" value="0.40*cm"/>
0057         <constant name="CentralEllBeamPipe_rmax" value="10.0*cm-CentralBeamPipe_thickness"/>
0058         <constant name="CentralBeamPipe_rmin" value="CentralBeamPipe_rmax - CentralBeamPipe_thickness"/>
0059         <constant name="BeamPipe_thickness" value="0.4*cm"/>
0060         <constant name="BeamPipe_endThickness" value="0.1*cm"/>
0061         <constant name="BeamPipe_zmax" value="420.0*cm - 0.5*cm"/>
0062         <constant name="BeamPipe_rmax" value="5.6*cm"/>
0063         <constant name="BeamPipe_rmin" value="BeamPipe_rmax - BeamPipe_thickness"/>
0064 
0065         <constant name="Distance_VXDLayer" value="3.6*cm"/>
0066         <constant name="Distance_VxBG10_in" value="0.03*cm"/>
0067         <constant name="Distance_VxBG10_ou" value="0.03*cm"/>
0068         <constant name="G10thickness" value="0.5*cm"/>
0069         <constant name="VxBar_Env" value="0.5*cm"/>
0070         <constant name="Distance_VxCo_in" value="Distance_VxBG10_ou + 0.01*cm"/>
0071         <constant name="Distance_VxCo_ou" value="Distance_VxBG10_ou + 0.02*cm"/>
0072 
0073         <constant name="VertexBarrel_r0" value="CentralBeamPipe_rmax+ VxBar_Env + 0.5*cm"/>                          
0074         <constant name="VertexBarrel_r1"  value="VertexBarrel_r0 + VxBar_Env + Distance_VXDLayer"/>
0075         <constant name="VertexBarrel_r2"  value="VertexBarrel_r1 + VxBar_Env + Distance_VXDLayer"/>
0076         <constant name="VertexBarrel_r3"  value="VertexBarrel_r2 + VxBar_Env + Distance_VXDLayer"/>
0077 
0078         <constant name="VertexBG10_r0_in" value="VertexBarrel_r0 - 2*VxBar_Env - Distance_VxBG10_in"/>
0079         <constant name="VertexBG10_r1_in" value="VertexBarrel_r1 - 2*VxBar_Env - Distance_VxBG10_in"/>
0080         <constant name="VertexBG10_r2_in" value="VertexBarrel_r2 - 2*VxBar_Env - Distance_VxBG10_in"/>
0081         <constant name="VertexBG10_r3_in" value="VertexBarrel_r3 - 2*VxBar_Env - Distance_VxBG10_in"/>
0082 
0083         <constant name="VertexBG10_r0_ou" value="VertexBarrel_r0 + 2*VxBar_Env + Distance_VxBG10_ou"/>
0084         <constant name="VertexBG10_r1_ou" value="VertexBarrel_r1 + 2*VxBar_Env + Distance_VxBG10_ou"/>
0085         <constant name="VertexBG10_r2_ou" value="VertexBarrel_r2 + 2*VxBar_Env + Distance_VxBG10_ou"/>
0086         <constant name="VertexBG10_r3_ou" value="VertexBarrel_r3 + 2*VxBar_Env + Distance_VxBG10_ou"/>
0087 
0088         <constant name="VertexCo_r0_in" value="VertexBarrel_r0 - VxBar_Env -  Distance_VxCo_in"/>
0089         <constant name="VertexCo_r1_in" value="VertexBarrel_r1 - VxBar_Env -  Distance_VxCo_in"/>
0090         <constant name="VertexCo_r2_in" value="VertexBarrel_r2 - VxBar_Env -  Distance_VxCo_in"/>
0091         <constant name="VertexCo_r3_in" value="VertexBarrel_r3 - VxBar_Env -  Distance_VxCo_in"/>
0092 
0093         <constant name="VertexCo_r0_ou" value="VertexBarrel_r0 + VxBar_Env +  Distance_VxCo_ou"/>
0094         <constant name="VertexCo_r1_ou" value="VertexBarrel_r1 + VxBar_Env +  Distance_VxCo_ou"/>
0095         <constant name="VertexCo_r2_ou" value="VertexBarrel_r2 + VxBar_Env +  Distance_VxCo_ou"/>
0096         <constant name="VertexCo_r3_ou" value="VertexBarrel_r3 + VxBar_Env +  Distance_VxCo_ou"/>
0097         <constant name="Vertex_r_in" value="VertexBarrel_r0"/>
0098         <constant name="Vertex_r_out" value="VertexBarrel_r3 + VxBar_Env +  Distance_VxCo_ou + 0.5*cm"/>
0099 
0100         <constant name="VXD_Ell_Max_r" value="21.16*cm"/>
0101         <constant name="Diff_Radius_SITLayer" value="3.2*cm"/>
0102         <constant name="Distance_SITLayer" value="5.0*cm"/>
0103         <constant name="Radius_SITLayer0" value="VXD_Ell_Max_r + 2.5*cm"/>
0104         <constant name="Radius_SITLayer1" value="Radius_SITLayer0 + Distance_SITLayer"/>
0105         <constant name="Radius_SITLayer2" value="Radius_SITLayer1 + Distance_SITLayer"/>
0106         <constant name="Radius_SITLayer3" value="Radius_SITLayer2 + Distance_SITLayer"/>
0107         <constant name="Radius_SITLayer4" value="Radius_SITLayer3 + Distance_SITLayer"/>
0108 
0109         <constant name="SiMod_w0" value="97.79*mm"/>
0110         <constant name="SiMod_w1" value="97.79*mm"/>
0111         <constant name="SiMod_w2" value="97.79*mm"/>
0112         <constant name="SiMod_w3" value="97.79*mm"/>
0113         <constant name="SiMod_w4" value="97.79*mm"/>
0114         <constant name="SiWafer_w" value="92.031*mm"/>
0115         <constant name="SiMod_l0" value="SiMod_w0"/>
0116         <constant name="SiMod_l1" value="SiMod_w1"/>
0117         <constant name="SiMod_l2" value="SiMod_w2"/>
0118         <constant name="SiMod_l3" value="SiMod_w3"/>
0119         <constant name="SiMod_l4" value="SiMod_w4"/>
0120         <constant name="SiWafer_l" value="92.031*mm"/>
0121 
0122         <constant name="SiMod_z0" value="54.0*cm"/>
0123         <constant name="SiMod_z1" value="64.0*cm"/>
0124         <constant name="SiMod_z2" value="74.0*cm"/>
0125         <constant name="SiMod_z3" value="84.0*cm"/>
0126         <constant name="SiMod_z4" value="94.0*cm"/>
0127 
0128         <constant name="SiVXDEndcap_z0" value="SiMod_z0+0.5*cm"/>
0129         <constant name="SiVXDEndcap_z1" value="SiMod_z2+0.5*cm"/>
0130 
0131         <constant name="SiMod_zi0" value="SiMod_z0 - SiMod_w0 "/>
0132         <constant name="SiMod_zi1" value="SiMod_z1 - SiMod_w1 "/>
0133         <constant name="SiMod_zi2" value="SiMod_z2 - SiMod_w2 "/>
0134         <constant name="SiMod_zi3" value="SiMod_z3 - SiMod_w3 "/>
0135         <constant name="SiMod_zi4" value="SiMod_z4 - SiMod_w4 "/>
0136 
0137       <comment>             FTD parameters             </comment>
0138         <constant name="Ftd_total_cylinder_thickness"          value="1.0*mm"/>
0139         <constant name="Ftd_cables_thickness"                  value="0.08*mm"/>
0140         <constant name="Ftd_Si_thickness1"                     value="0.3*mm"/>
0141         <constant name="Ftd_Si_thickness2"                     value="0.3*mm"/>
0142         <constant name="Ftd_inner_support_thickness"           value="2*mm"/>
0143         <constant name="Ftd_inner_support_length"              value="4*mm"/>
0144         <constant name="Ftd_outer_support_thickness"           value="10*mm"/>
0145         <constant name="Ftd_outer_support_length"              value="4*mm"/>
0146         <constant name="Diff_z_Ftd_disk" value="2.5*cm"/>
0147       <comment>            ftd - pos z  </comment>
0148         <constant name="Ftd_disk_z0"  value="630*mm"/>
0149         <constant name="Ftd_disk_z1"  value="846.2*mm"/>
0150         <constant name="Ftd_disk_z2"  value="1136.7*mm"/>
0151         <constant name="Ftd_disk_z3"  value="1526.8*mm"/>
0152         <constant name="Ftd_disk_z4"  value="2050.8*mm"/>
0153         <constant name="Ftd_disk_z5"  value="2754.6*mm"/>
0154         <constant name="Ftd_disk_z6"  value="3700.0*mm"/>
0155       <comment>            btd - neg z  </comment>
0156         <constant name="Btd_disk_z0"  value="-630*mm"/>
0157         <constant name="Btd_disk_z1"  value="-840.9*mm"/>
0158         <constant name="Btd_disk_z2"  value="-1122.5*mm"/>
0159         <constant name="Btd_disk_z3"  value="-1498.3*mm"/>
0160         <constant name="Btd_disk_z4"  value="-2000.0*mm"/>
0161       <comment>            ftd - rings  </comment>
0162         <constant name="Ftd_sdisk_ri0"  value="86.716*mm"/>
0163         <constant name="Ftd_sdisk_ri1"  value="154.991*mm"/>
0164         <constant name="Ftd_sdisk_ri2"  value="245.180*mm"/>
0165         <constant name="Ftd_sdisk_ri3"  value="328.520*mm"/>
0166         <constant name="Ftd_sdisk_ri4"  value="413.654*mm"/>
0167 
0168         <constant name="EcalBarrel_rmin" value="((Radius_SITLayer4 + 6.0*cm) / (cos(pi/CaloSides)) )" />
0169         <constant name="EcalBarrel_depth" value="40.*cm"/>
0170         <constant name="EcalBarrel_fwd_depth" value="40.*cm"/>
0171         <constant name="EcalBarrel_bwd_depth" value="40.*cm"/>
0172         <constant name="EcalBarrel_rmax" value="( (EcalBarrel_rmin + EcalBarrel_depth + 1.0*cm)/(cos(pi/CaloSides)))"/>
0173         <constant name="EcalBarrel_zmax" value="Ftd_disk_z6-Btd_disk_z4+10*cm "/>
0174         <constant name="EcalBarrel_length" value="EcalBarrel_zmax - Btd_disk_z4 + 5.*cm"/>
0175         <constant name="EcalEndcap_rmin" value="VertexBarrel_r2"/>
0176         <constant name="EcalBarrel_zmin" value="Btd_disk_z4-2*cm "/>
0177         <constant name="EcalEndcap_rmax" value="(EcalBarrel_rmin - 2.0*cm) / (cos(pi/CaloSides))"/>
0178 
0179         <constant name="EcalEndcap_zmin_fwd" value="Ftd_disk_z6+5.0*cm"/>
0180         <constant name="EcalEndcap_length_fwd" value="EcalBarrel_fwd_depth"/>
0181         <constant name="EcalEndcap_length_bwd" value="EcalBarrel_bwd_depth"/>
0182         <constant name="EcalEndcap_zmax_fwd" value="EcalEndcap_zmin_fwd+EcalEndcap_length_fwd"/>
0183         <constant name="EcalEndcap_zmin_bwd" value="EcalBarrel_zmin-EcalEndcap_length_bwd"/>
0184         <constant name="EcalEndcap_zmax_bwd" value="EcalEndcap_zmin_bwd+EcalEndcap_length_bwd"/>
0185 
0186         <constant name="tracking_region_zmax" value="EcalEndcap_zmin_fwd - 1.0*cm"/>
0187         <constant name="VXD_CF_sensor" value="0.026*cm"/>
0188         <constant name="VXD_CF_support" value="0.05*cm"/>
0189 
0190         <constant name="SolenoidBarrelInnerRadius1" value="EcalBarrel_rmax + 12.0*cm"/>
0191         <constant name="SolenoidCoilOuterZ1" value="(EcalEndcap_zmin_fwd-EcalEndcap_zmax_bwd)/2."/>
0192         <constant name="DipoleCoilOuterZ1" value="(EcalEndcap_zmin_fwd-EcalEndcap_zmax_bwd)/2."/>
0193         <constant name="SolenoidBarrelInnerCryostatThickness1" value="3.0*cm"/>
0194         <constant name="SolenoidBarrelInnerAirgapThickness1" value="1.5*cm"/>
0195         <constant name="SolenoidBarrelAlConductorThickness1" value="6.0*cm"/>
0196         <constant name="DipoleBarrelAlConductorThickness" value="1.5*cm"/>
0197         <constant name="SolenoidBarrelQuenchbackThickness1" value="5.*cm"/>
0198         <constant name="SolenoidBarrelOuterAirgapThickness1" value="3.*cm"/>
0199         <constant name="SolenoidBarrelOuterCryostatThickness1" value="4.0*cm"/>
0200         <constant name="SolenoidEndcapCryostatThickness1" value="3.0*cm"/>
0201         <constant name="SolenoidEndcapAirgapThickness1" value="2.7*cm"/>
0202         <constant name="SolenoidBarrelConductorInnerRadius1" value="SolenoidBarrelInnerRadius1 + 2.*SolenoidBarrelInnerCryostatThickness1 + SolenoidBarrelInnerAirgapThickness1"/>
0203         <constant name="SolenoidBarrelOuterZ1" value="SolenoidCoilOuterZ1+SolenoidEndcapAirgapThickness1"/>
0204         <constant name="SolenoidBarrelOuterCryostatInnerRadius1" value="SolenoidBarrelConductorInnerRadius1  + SolenoidBarrelAlConductorThickness1 + SolenoidBarrelQuenchbackThickness1 + DipoleBarrelAlConductorThickness + SolenoidBarrelInnerCryostatThickness1 + 4.*cm"/>
0205         <constant name="SolenoidBarrelOuterRadius1" value="SolenoidBarrelOuterCryostatInnerRadius1 + SolenoidBarrelOuterAirgapThickness1 + SolenoidBarrelOuterCryostatThickness1"/>
0206         <constant name="SolenoidalFieldRadius1" value="(SolenoidBarrelConductorInnerRadius1 + DipoleBarrelAlConductorThickness + SolenoidBarrelAlConductorThickness1 / 2.0)"/>
0207         <constant name="DipoleBarrelAlConductorRadius" value="SolenoidBarrelOuterCryostatInnerRadius1 - SolenoidBarrelOuterAirgapThickness1 - SolenoidBarrelOuterCryostatThickness1"/>
0208 
0209           <constant name="OffsetZ" value="85.*cm"/>    <!-- from geoDisplay - tracker only -->
0210 
0211         <constant name="HcalBarrel_rmin" value="SolenoidBarrelOuterRadius1+5.0*cm"/>
0212         <constant name="HcalBarrel_layers" value="(int) 85"/>
0213         <constant name="HcalBarrel_layer_thickness" value="1.65*cm"/>
0214         <constant name="HcalBarrel_length" value="EcalBarrel_zmax"/>
0215 
0216         <constant name="HcalEndcap_fwd_layers" value="131"/>
0217         <constant name="HcalEndcap_bwd_layers" value="113"/>        
0218         <constant name="HcalEndcap_zmin_fwd" value="EcalBarrel_zmax + 5.0*cm"/> 
0219         <constant name="HcalEndcap_rmin" value="VertexBarrel_r2"/>
0220         <constant name="HcalBarrel_rmax" value="HcalBarrel_rmin+HcalBarrel_layers*HcalBarrel_layer_thickness"/>
0221 
0222         <constant name="HcalEndcap_rmax" value="((HcalBarrel_rmin + HcalBarrel_layers * HcalBarrel_layer_thickness) / (cos(pi/CaloSides)))"/>
0223 
0224         <constant name="HcalEndcap_layer_thickness_fwd" value="1.65*cm"/>
0225         <constant name="HcalEndcap_layer_thickness_bwd" value="1.65*cm"/>
0226         <constant name="HcalEndcap_thickness_fwd" value="HcalEndcap_fwd_layers*HcalEndcap_layer_thickness_fwd"/>
0227         <constant name="HcalEndcap_thickness_bwd" value="HcalEndcap_bwd_layers*HcalEndcap_layer_thickness_bwd"/>
0228         <constant name="HcalEndcap_zmax_fwd" value="HcalEndcap_zmin_fwd + HcalEndcap_thickness_fwd"/>
0229         <constant name="HcalEndcap_zmin_bwd" value="EcalEndcap_zmin_bwd-HcalEndcap_thickness_bwd-4*cm"/>
0230 
0231         <constant name="HcalPlug_fwd_layers" value="154"/>
0232         <constant name="HcalPlug_bwd_layers" value="92"/>
0233         <constant name="HcalPlug_layer_thickness_fwd" value="1.145*cm"/>
0234         <constant name="HcalPlug_layer_thickness_bwd" value="1.6*cm"/>
0235         <constant name="HcalPlug_thickness_fwd" value="HcalPlug_fwd_layers*HcalPlug_layer_thickness_fwd"/>
0236         <constant name="HcalPlug_thickness_bwd" value="HcalPlug_bwd_layers*HcalPlug_layer_thickness_bwd"/>
0237         <constant name="HcalPlug_zmin_bwd" value="EcalBarrel_zmin-EcalEndcap_length_bwd-HcalPlug_thickness_bwd"/>
0238 
0239         <constant name="MuonBarrel_length" value="HcalBarrel_length + HcalEndcap_thickness_fwd + HcalEndcap_thickness_bwd"/>
0240         <constant name="MuonEndcap_layers" value="12"/>
0241         <constant name="MuonEndcap_layer_thickness" value="10.0*cm + 4.0*cm"/>
0242         <constant name="MuonEndcap_thickness" value="MuonEndcap_layers*MuonEndcap_layer_thickness"/>
0243         <constant name="SolenoidCoilOuterZ2" value="MuonBarrel_length*0.5+MuonEndcap_thickness"/>
0244         <constant name="MuonBarrel_zmin" value="HcalEndcap_zmin_bwd-HcalEndcap_thickness_bwd"/>
0245         <constant name="MuonBarrel_layers" value="6"/>
0246         <constant name="MuonBarrel_layer_thickness" value="10.0*cm + 4.0*cm"/>
0247         <constant name="MuonBarrel_thickness" value="MuonBarrel_layers*MuonBarrel_layer_thickness"/>
0248                 
0249         <constant name="SolenoidalFieldRadius2"  value="HcalBarrel_rmax + 40.*cm"/>
0250         <constant name="SolenoidBarrelInnerRadius2" value="HcalBarrel_rmax + 40*cm"/>
0251         <constant name="SolenoidBarrelInnerCryostatThickness2" value="3.0*cm"/>
0252         <constant name="SolenoidBarrelInnerAirgapThickness2" value="1.0*cm"/>
0253         <constant name="SolenoidBarrelAlConductorThickness2" value="10.0*cm"/>
0254         <constant name="SolenoidBarrelQuenchbackThickness2" value="8.0*cm"/>
0255         <constant name="SolenoidBarrelOuterAirgapThickness2" value="2.7*cm"/>
0256         <constant name="SolenoidBarrelOuterCryostatThickness2" value="3.0*cm"/>
0257         <constant name="SolenoidEndcapCryostatThickness2" value="3.0*cm"/>
0258         <constant name="SolenoidEndcapAirgapThickness2" value="2.7*cm"/>
0259         <constant name="SolenoidBarrelOuterZ2" value="SolenoidCoilOuterZ2+SolenoidEndcapAirgapThickness2"/>        
0260         <constant name="SolenoidBarrelConductorInnerRadius2" value="SolenoidBarrelInnerRadius2 + SolenoidBarrelInnerCryostatThickness2 + SolenoidBarrelInnerAirgapThickness2"/>
0261         <constant name="SolenoidBarrelOuterCryostatInnerRadius2" value="SolenoidBarrelConductorInnerRadius2 + SolenoidBarrelAlConductorThickness2 + SolenoidBarrelQuenchbackThickness2 + SolenoidBarrelOuterAirgapThickness2"/>
0262         <constant name="SolenoidBarrelOuterRadius2" value="SolenoidBarrelOuterCryostatInnerRadius2 + SolenoidBarrelOuterCryostatThickness2"/>
0263 
0264         <constant name="MuonBarrel_rmin" value="SolenoidBarrelOuterRadius2 + 20.0*cm"/>
0265         <constant name="MuonBarrel_rmax" value="MuonBarrel_rmin + MuonBarrel_thickness"/>
0266 
0267         <constant name="MuonEndcap_zmin_fwd" value="HcalEndcap_zmax_fwd-MuonEndcap_thickness-EcalEndcap_length_fwd+5.*cm"/> 
0268         <constant name="MuonEndcap_rmax0" value="(HcalBarrel_rmin - 10.0*cm ) / (cos(pi/MuonSides))"/>
0269         <constant name="MuonEndcap_zmin_bwd" value="MuonBarrel_zmin+EcalEndcap_length_bwd"/> 
0270         <constant name="MuonEndcap_rmax1" value="(MuonBarrel_rmax)/(cos(pi/MuonSides))"/> 
0271 
0272         <constant name="LumiCal_rmin" value="6.4*cm"/>
0273         <constant name="LumiCal_rmax" value="EcalEndcap_rmin + 3.0*cm"/>
0274         <constant name="LumiCal_zmin" value="HcalEndcap_zmin_fwd"/>
0275         <constant name="LumiCal_thickness" value="20*0.371*cm + 15*0.643*cm"/>
0276         <constant name="LumiCal_zmax" value="LumiCal_zmin + LumiCal_thickness"/>
0277         <constant name="LumiCalElectronics_rmax" value="LumiCal_rmax+5.0*cm"/>
0278 
0279         <constant name="SupportTube_thickness" value="1.0*cm"/>
0280         <constant name="ForwardVacuumValve_thickness" value="36.0*cm"/>
0281         <constant name="ForwardShielding_thickness" value="5.0*cm"/>
0282         <constant name="ForwardMask_thickness" value="10.0*cm"/>
0283         <constant name="ForwardMask_zmin" value="LumiCal_zmax + ForwardShielding_thickness + ForwardVacuumValve_thickness"/>
0284         <constant name="BeamCal_rmax" value="13.0*cm"/>
0285         <constant name="BeamCal_zmin" value="ForwardMask_zmin + ForwardMask_thickness"/>
0286 
0287         <constant name="VertexSupport_r1" value="Radius_SITLayer1 - 0.5*cm"/>
0288         <constant name="VertexSupport_r2" value="Radius_SITLayer2 - 0.5*cm"/>
0289         <constant name="VertexSupport_zmax" value="52.0*cm"/>
0290 
0291         <constant name="VertexBarrel_zmax" value="25.0*cm"/>
0292 
0293         <constant name="bp_cone_slope" value="(BeamPipe_rmax-CentralBeamPipe_rmax)/(tracking_region_zmax-CentralBeamPipe_zmax)"/>
0294         <constant name="BeamPipe_zmin" value="CentralBeamPipe_zmax + (BeamPipe_thickness - CentralBeamPipe_thickness)/bp_cone_slope"/>
0295         <constant name="BeamPipeLiner_thickness" value="0.0*cm"/>
0296         <constant name="BeamPipeLength" value="EcalBarrel_length"/>
0297 
0298         <constant name="VertexService_zmin" value="SiMod_z4 + 2.0*cm"/>
0299         <constant name="VertexService_zmax" value="VertexService_zmin + 2.0*cm"/>
0300         <constant name="VertexServiceThickness" value="0.3*cm"/>
0301         <constant name="VertexCableThickness" value="0.005*cm"/>
0302 
0303         <constant name="IncomingBP_radius" value="0.25*cm"/>
0304         <constant name="IncomingBP_thickness" value="0.05*cm"/>
0305         <constant name="OutgoingBP_radius" value="tan(CrossingAngle/2/rad)*BeamCal_zmin"/>
0306         <constant name="OutgoingBP_thickness" value="0.1*cm"/>
0307 
0308     </define>
0309     <materials>
0310         <material formula="Si" name="silicon_2.33gccm" state="solid" >
0311           <RL type="X0" unit="cm" value="9.36607" />
0312           <NIL type="lambda" unit="cm" value="45.7531" />
0313           <D type="density" unit="g/cm3" value="2.33" />
0314           <composite n="1" ref="Si" />
0315         </material>
0316 
0317         <material name="silicon_8.72gccm" state="solid" >
0318           <RL type="X0" unit="cm" value="9.36607" />
0319           <NIL type="lambda" unit="cm" value="45.7531" />
0320           <D type="density" unit="g/cm3" value="8.72" />
0321           <composite n="1" ref="Si" />
0322         </material>
0323 
0324         <material formula="W" name="tungsten_19.3gccm" state="solid" >
0325           <RL type="X0" unit="cm" value="0.350418" />
0326           <NIL type="lambda" unit="cm" value="10.3057" />
0327           <D type="density" unit="g/cm3" value="19.3" />
0328           <composite n="1" ref="W" />
0329         </material>
0330         <material name="TungstenDens23">
0331             <D value="17.7" unit="g/cm3"/>
0332             <fraction n="0.925" ref="W"/>
0333             <fraction n="0.066" ref="Ni"/>
0334             <fraction n="0.009" ref="Fe"/>
0335         </material>
0336         <material name="TungstenDens24">
0337             <D value="17.8" unit="g/cm3"/>
0338             <fraction n="0.93" ref="W"/>
0339             <fraction n="0.061" ref="Ni"/>
0340             <fraction n="0.009" ref="Fe"/>
0341         </material>
0342         <material name="TungstenDens25">
0343             <D value="18.2" unit="g/cm3"/>
0344             <fraction n="0.950" ref="W"/>
0345             <fraction n="0.044" ref="Ni"/>
0346             <fraction n="0.006" ref="Fe"/>
0347         </material>
0348         <material name="CarbonFiber_25percent">
0349             <D type="density" value="0.375" unit="g/cm3"/>
0350             <fraction n="1.0" ref="CarbonFiber"/>
0351         </material>
0352         <material name="CarbonFiber_15percent">
0353             <D type="density" value="0.225" unit="g/cm3"/>
0354             <fraction n="1.0" ref="CarbonFiber"/>
0355         </material>
0356         <material name="Rohacell31_50percent">
0357             <D type="density" value="0.016" unit="g/cm3"/>
0358             <fraction n="1.0" ref="Rohacell31"/>
0359         </material>
0360         <material name="Rohacell31_15percent">
0361             <D type="density" value="0.0048" unit="g/cm3"/>
0362             <fraction n="1.0" ref="Rohacell31"/>
0363         </material>
0364         <material name="BoratedPolyethylene5">
0365             <D value="0.93" unit="g/cm3"/>
0366             <fraction n="0.612" ref="C"/>
0367             <fraction n="0.222" ref="O"/>
0368             <fraction n="0.116" ref="H"/>
0369             <fraction n="0.050" ref="B"/>
0370         </material>
0371         <material name="SiliconCarbide">
0372             <D value="3.1" unit="g/cm3"/>
0373             <composite n="1" ref="Si"/>
0374             <composite n="1" ref="C"/>
0375         </material>
0376         <material name="SiliconCarbide_6percent">
0377             <D value="0.186" unit="g/cm3"/>
0378             <fraction n="1.0" ref="SiliconCarbide"/>
0379         </material>
0380         <material name="Graphite">
0381             <D value="1.7" unit="g/cm3"/>
0382             <composite n="1" ref="C"/>
0383         </material>
0384         <material name="Polystyrene">
0385            <D value="1.032" unit="g/cm3"/>
0386            <composite n="19" ref="C"/>
0387            <composite n="21" ref="H"/>
0388         </material>
0389     </materials>
0390     <limits>
0391         <limitset name="cal_limits">
0392             <limit name="step_length_max" particles="*" value="5.0" unit="mm" />
0393         </limitset>
0394     <limitset name="SiTrackerBarrelRegionLimitSet">
0395       <limit name="step_length_max" particles="*" value="5.0" unit="mm" />
0396       <limit name="track_length_max" particles="*" value="5.0" unit="mm" />
0397       <limit name="time_max" particles="*" value="5.0" unit="ns" />
0398       <limit name="ekin_min" particles="*" value="0.01" unit="MeV" />
0399       <limit name="range_min" particles="*" value="5.0" unit="mm" />
0400     </limitset>
0401     <limitset name="SiVertexBarrelRegionLimitSet">
0402       <limit name="step_length_max" particles="*" value="5.0" unit="mm" />
0403       <limit name="track_length_max" particles="*" value="5.0" unit="mm" />
0404       <limit name="time_max" particles="*" value="5.0" unit="ns" />
0405       <limit name="ekin_min" particles="*" value="0.01" unit="MeV" />
0406       <limit name="range_min" particles="*" value="5.0" unit="mm" />
0407     </limitset>
0408     </limits>
0409   <regions>
0410     <region name="SiVertexBarrelRegion" eunit="MeV" lunit="mm" cut="0.001" threshold="0.001">
0411       <limitsetref name="SiVertexBarrelRegionLimitSet"/>
0412     </region>
0413     <region name="SiTrackerBarrelRegion" eunit="MeV" lunit="mm" cut="0.001" threshold="0.001">
0414       <limitsetref name="SiTrackerBarrelRegionLimitSet"/>
0415     </region>
0416   </regions>
0417 
0418     <display>
0419         <vis name="InvisibleNoDaughters"      showDaughters="false" visible="false"/>
0420         <vis name="InvisibleWithDaughters"    showDaughters="true" visible="false"/>
0421         <vis name="SiVertexBarrelModuleVis" alpha="0.6" r="1" g="0" b="0" drawingStyle="solid" showDaughters="true" visible="true"/>
0422         <vis name="SiVertexSensitiveVis" alpha="0.8" r="1" g="0.2" b="0.2" drawingStyle="solid" showDaughters="true" visible="true"/>
0423         <vis name="SiVertexPassiveVis"   alpha="0.5" r="0.2"  g="0"  b="0.62" drawingStyle="solid" showDaughters="true" visible="false"/>
0424         <vis name="SiVertexBarrelLayerVis" alpha="0.2" r="0.1" g="0.1" b="0.6" showDaughters="true" visible="true"/>
0425         <vis name="SiVertexBarrelROVis" alpha="0.2" r="0.2" g="0.4" b="0.4" showDaughters="true" visible="true"/>
0426 
0427         <vis name="SiTrackerBarrelModuleVis" alpha="0.5" r="0.1" g="0.1" b="0.6"  showDaughters="false" visible="true"/>
0428         <vis name="SiTrackerBarrelLayerVis" alpha="0.5" r="1" g="1" b="0.6" showDaughters="true" visible="false"/>
0429 
0430         <vis name="SiTrackerForwardVis" alpha="1" r="1" g="0" b="0" drawingStyle="solid" showDaughters="false" visible="true"/>
0431         <vis name="SiTrackerBackwardVis" alpha="1" r="1" g="0" b="0" drawingStyle="solid" showDaughters="false" visible="true"/>
0432         <vis name="SiTrackerForwardModulVis" alpha="1" r="1" g="0" b="0" drawingStyle="solid" showDaughters="false" visible="true"/>
0433 
0434         <vis name="EcalBarrelVis"       alpha="0.1" r="0.2"   g="0.8" b="0.2" showDaughters="true" visible="true"/>
0435         <vis name="EcalLayerVis"        alpha="0.1" r="0.2"   g="0.4" b="0.1" showDaughters="true" visible="true"/>        
0436         <vis name="EcalBarrelStaveVis"  alpha="0.1" r="0"   g="0.9" b="0.1" showDaughters="true" visible="false"/>
0437         <vis name="EcalSensitiveVis"    alpha="0.1" r="0"   g="0.9" b="0.2" showDaughters="true" visible="true"/>
0438         <vis name="EcalAbsorberVis"     alpha="0.01" r="0"   g="0.9" b="0.2"  showDaughters="false" visible="false"/>
0439         <vis name="EcalPlugVis"         alpha="1"   r="0.5" g="1"   b="0.8"  showDaughters="false" visible="true"/>
0440         <vis name="EcalPlugSensitiveVis" alpha="0.1" r="0.5" g="1"   b="0.8" showDaughters="true" visible="true"/>
0441 
0442         <vis name="HcalBarrelVis"          alpha="1"   r="1"    g="0.8"  b="0.6" showDaughters="false" visible="true"/>
0443         <vis name="HcalSensorVis"          alpha="0.1" r="1"    g="0.8"  b="0.6" showDaughters="true" visible="true"/>
0444         <vis name="HcalAbsorberVis"        alpha="0.1" r="1"    g="0.8"  b="0.6" showDaughters="false" visible="false"/>
0445         <vis name="HcalBarrelStavesVis"    alpha="0.1" r="1"    g="0.8"  b="0.6" showDaughters="false" visible="false"/>
0446         <vis name="HcalBarrelLayerVis"     alpha="0.1" r="1"    g="0.8"  b="0.6" showDaughters="false" visible="false"/>
0447         <vis name="HcalBarrelSensorVis"    alpha="0.1" r="1"    g="0.8"  b="0.6" showDaughters="fasle" visible="true"/>
0448 
0449         <vis name="HcalEndcapVis"           alpha="1"   r="1"    g="0.8"  b="0.6" showDaughters="false" visible="true"/>
0450         <vis name="HcalEndcapLayerVis"      alpha="0.1" r="1"    g="0.8"  b="0.6" showDaughters="false" visible="false"/>
0451         <vis name="HcalEndcapStavesVis"     alpha="0.1" r="1"    g="0.8"  b="0.6" showDaughters="true" visible="false"/>
0452         <vis name="HcalPlugVis"             alpha="1"   r="1"  g="0.8"  b="0.7" showDaughters="false" visible="true"/>
0453         <vis name="HcalPlugLayerVis"        alpha="0.1" r="1"  g="0.9"  b="0.8" showDaughters="false" visible="false"/>
0454 
0455         <vis name="SolenoidBarrelLayerVis" alpha="0.6" r="0.3" g="0.9"  b="0.4" showDaughters="false" visible="true"/>
0456         <vis name="SolenoidDipoleBarrelLayerVis" alpha="0.6" r="0.2" g="0.9" b="0.9" showDaughters="false" visible="true"/>
0457         <vis name="SolenoidBarrelSupportLayerVis" alpha="0.2" r="0.4" g="0.4" b="0.4" showDaughters="false" visible="false"/>
0458 
0459         <vis name="SolenoidCoilEndsVis"    alpha="1" r="0" g="0.8"  b="0.8" showDaughters="true" visible="true"/>
0460         <vis name="AntiSolenoidVis"        alpha="1" r="0.3"  g="1"    b="1"   showDaughters="true" visible="true"/>
0461 
0462         <vis name="MuonBarrelVis"          alpha="0.4" r="0.8"  g="0.9"  b="1"  showDaughters="false" visible="true"/>
0463         <vis name="MuonBarrelStavesVis"    alpha="0.4" r="0.8"  g="0.9"  b="1"  showDaughters="fasle" visible="false"/>
0464         <vis name="MuonBarrelLayerVis"     alpha="0.4" r="0.8"  g="0.9"  b="1"  showDaughters="false" visible="true"/>
0465         <vis name="MuonBarrelSensorVis"    alpha="0.4" r="0.8"  g="0.9"  b="1"  showDaughters="true" visible="true"/>
0466         <vis name="MuonBarrelAbsorberVis"  alpha="0.4" r="0.8"  g="0.9"  b="1"  visible="false"/>
0467 
0468         <vis name="MuonEndcapVis"          alpha="0.4" r="0.8"  g="0.9"  b="1"  showDaughters="false" visible="true"/>
0469         <vis name="MuonEndcapLayerVis"     alpha="0.4" r="0.8"  g="0.9"  b="1"  showDaughters="false" visible="true"/>
0470         <vis name="MuonEndcapSensorVis"    alpha="0.4" r="0.8"  g="0.9"  b="1"  showDaughters="true"  visible="true"/>
0471         <vis name="MuonEndcapAbsorberVis"  alpha="0.4" r="0.8"  g="0.9"  b="1"  visible="false"/>
0472 
0473         <vis name="BeamPipeVis" alpha="1" r="0.9" g="0.9" b="0.9" showDaughters="true" visible="true"/> 
0474         <vis name="CableVis" showDaughters="false" visible="false"/>
0475 
0476         <vis name="SupportTubeVis" alpha="1" r="0.7" g="0.7" b="0.2" showDaughters="true" visible="true"/>
0477         <vis name="TungstenShieldingVis" r="0.99" g="0.1" b="0.2" showDaughters="false" visible="true"/>
0478 
0479         <vis name="SupportVis" alpha="0.5" r="0.01" g="0.7" b="0" showDaughters="false" visible="true"/>
0480         <vis name="LumiCalVis" showDaughters="false" visible="true"/>
0481         <vis name="GreenVis" r="0.0" g="1.0" b="0.0" showDaughters="false" visible="true"/>
0482         <vis name="RedVis" r="1.0" g="0.0" b="0.0" showDaughters="true" visible="true"/>
0483         <vis name="BlueVis" alpha="0.5" r="0.1" g="0.0" b="0.8" showDaughters="true" visible="true"/>
0484         <vis name="BlueVisTrans" alpha="0.1" r="0.0" g="0.0" b="1.0" showDaughters="true" visible="false"/>
0485     </display>
0486 
0487 <!-- Assembly - asymmetric definition of the SiTrackers SubdetectorAssembly does not work -> Overlaps -->
0488   <detectors>
0489     <detector id="99" name="SiTrackers" type="Lhe_SubdetectorAssembly" vis="InvisibleWithDaughters">
0490       <shape name="SiTrackersEnv" type="Tube" 
0491       rmin="0.*cm" 
0492       rmax="EcalBarrel_rmin-1*cm" 
0493       dz="EcalEndcap_zmax_fwd" 
0494       z_offset="OffsetZ" 
0495       material="Air">
0496       </shape>
0497       <comment>Silicon Tracker Assembly</comment>
0498       <composite name="SiVertexBarrel"/>
0499       <composite name="SiTrackerBarrel"/>
0500       <composite name="SiTrackerForward"/>
0501       <composite name="SiTrackerBackward"/>
0502       <composite name="VertexBarrelSupports"/>
0503       <composite name="VertexEndSupports"/>
0504       <composite name="VertexReadout"/>
0505       <composite name="TrackerBarrelSupports"/>
0506       <composite name="TrackerReadout"/>
0507       <composite name="EcalEndcap_fwd"/>
0508       <composite name="EcalEndcap_bwd"/>
0509     </detector>
0510   </detectors>
0511     
0512   <detectors>
0513         <comment>Trackers</comment>
0514 
0515 <!-- SiVertexBarrel -->
0516         <comment>Vertex Detector Barrel</comment>
0517         <detector id="1" name="SiVertexBarrel"
0518                          type="Lhe_BP_SiVertexBarrel" 
0519                          readout="SiVertexBarrelHits" 
0520                          insideTrackingVolume="true" 
0521                          reflect="true" 
0522                          region="SiVertexBarrelRegion" 
0523                          limits="SiVertexBarrelRegionLimitSet">
0524                          
0525                 <module name="VtxBarrelModuleInner" vis="SiVertexBarrelModuleVis">
0526                 <module_envelope width="10.0*mm" length="(VertexBarrel_zmax - 0.1*cm)*2" thickness="VxBar_Env"/>
0527                  <module_component width="7.8*mm" length="(VertexBarrel_zmax - 0.15*cm)*2" thickness="0.0130*cm" material="CarbonFiber_50D" sensitive="false" vis="SiVertexPassiveVis">
0528                                 <position z="-0.12*mm"/>
0529                      </module_component>
0530              <module_component 
0531                   width="9.8*mm" length="(VertexBarrel_zmax-0.15*cm)*2" thickness="0.0038*cm" material="Kapton" sensitive="false" vis="SiVertexPassiveVis">
0532                                 <position z="0.1375*cm"/>
0533              </module_component>
0534                      <module_component width="9.8*mm" length="(VertexBarrel_zmax-0.15*cm)*2" thickness="0.005*cm" material="Silicon" sensitive="true" vis="SiVertexSensitiveVis">
0535                                 <position z="0.225*mm"/>
0536                  </module_component> 
0537              <module_component 
0538                   width="9.8*mm" length="(VertexBarrel_zmax-0.15*cm)*2" thickness="0.0038*cm" material="Kapton" sensitive="false" vis="SiVertexPassiveVis">
0539                                 <position z="0.1375*cm"/>
0540              </module_component>
0541              <module_component 
0542                   width="9.8*mm" length="(VertexBarrel_zmax-0.15*cm)*2" thickness="0.00038*cm" material="Copper" sensitive="false" vis="SiVertexPassiveVis">
0543                                 <position z="0.146*cm"/>
0544              </module_component>
0545                 </module>
0546                 
0547             <layer module="VtxBarrelModuleInner" id="1" vis="SiVertexBarrelLayerVis">
0548                 <barrel_envelope 
0549                   inner_r="VertexBarrel_r0 - VxBar_Env-0.5*cm" 
0550                   outer_r="VertexBarrel_r0 + VxBar_Env+0.5*cm" 
0551                   z_length="VertexBarrel_zmax"/>
0552                 <rphi_layout 
0553                   phi_tilt="0.0*rad"
0554                   nphi="50"
0555                   phi0="4.71238898038468967e+00*rad" 
0556                   rc="VertexBarrel_r0 + 0.0*mm" 
0557                   dr="0.0*mm"/>
0558                  <z_layout dr="0.0*mm" z0="0.0*mm" nz="1"/>
0559             </layer>
0560             <layer module="VtxBarrelModuleInner" id="2" vis="SiVertexBarrelLayerVis">
0561                 <barrel_envelope 
0562                   inner_r="VertexBarrel_r1 - VxBar_Env" 
0563                   outer_r="VertexBarrel_r1 + VxBar_Env" 
0564                   z_length="VertexBarrel_zmax"/>
0565                 <rphi_layout 
0566                   phi_tilt="0.0*rad"
0567                   nphi="50"
0568                   phi0="4.71238898038468967e+00*rad" 
0569                   rc="VertexBarrel_r1 + 0.0*mm" 
0570                   dr="0.0*mm"/>
0571             <z_layout dr="0.0*mm" z0="0.0*mm" nz="1"/>
0572             </layer>
0573             <layer module="VtxBarrelModuleInner" id="3" vis="SiVertexBarrelLayerVis">
0574                 <barrel_envelope 
0575                   inner_r="VertexBarrel_r2 - VxBar_Env" 
0576                   outer_r="VertexBarrel_r2 + VxBar_Env" 
0577                   z_length="VertexBarrel_zmax"/>
0578                 <rphi_layout 
0579                   phi_tilt="0.0*rad"
0580                   nphi="50"
0581                   phi0="4.71238898038468967e+00*rad" 
0582                   rc="VertexBarrel_r2 + 0.0*mm"
0583                   dr="0.0*mm"/>
0584                  <z_layout dr="0.0*mm" z0="0.0*mm" nz="1"/>
0585             </layer>
0586             <layer module="VtxBarrelModuleInner" id="4" vis="SiVertexBarrelLayerVis">
0587                 <barrel_envelope 
0588                   inner_r="VertexBarrel_r3 - VxBar_Env" 
0589                   outer_r="VertexBarrel_r3 + VxBar_Env" 
0590                   z_length="VertexBarrel_zmax"/>
0591                 <rphi_layout 
0592                   phi_tilt="0.0*rad"
0593                   nphi="50"
0594                   phi0="4.71238898038468967e+00*rad" 
0595                   rc="VertexBarrel_r3 + 0.0*mm" 
0596                   dr="0.0*mm"/>
0597                   <z_layout dr="0.0*mm" z0="0.0*mm" nz="1"/>
0598             </layer>
0599 
0600         </detector>
0601 
0602        <comment>Vertex Detector Supports </comment>
0603         <detector name="VertexBarrelSupports" 
0604                   type="Lhe_BP_MultiLayerTracker" 
0605                    reflect="true" 
0606                  vis="SupportTubeVis">
0607             <comment>Double-walled Carbon Fiber support tube</comment>
0608 
0609             <layer id="1" 
0610               inner_r = "CentralBeamPipe_rmax + VxBar_Env" 
0611               outer_z = "VertexBarrel_zmax + 0.5*cm" 
0612               outer_r = "CentralBeamPipe_rmax + VxBar_Env + 0.2*cm"  
0613               rmax    = "CentralBeamPipe_rmax + 0.2*cm + 7.2*cm" >
0614               <slice material = "CarbonFiber" thickness ="VXD_CF_support"/>
0615             </layer>
0616 
0617            <layer id="2" 
0618              inner_r = "VertexBarrel_r3 + 2*VxBar_Env + 0.4*cm" 
0619              outer_z = "VertexBarrel_zmax + 0.5*cm" 
0620              outer_r = "VertexBarrel_r3 + 2*VxBar_Env + 0.8*cm" 
0621              rmax    = "VertexBarrel_r3 + 2*VxBar_Env + 0.8*cm + 3.2*cm" >
0622              <slice material = "CarbonFiber" thickness ="VXD_CF_support"/>
0623             </layer>     
0624 
0625         </detector>
0626 
0627         <detector name="VertexEndSupports" 
0628                   type="Lhe_BP_DiskTracker" 
0629                   reflect="true" 
0630                   vis="SiVertexBarrelROVis">        
0631             <layer id="3" 
0632               inner_r = "VertexBarrel_r0 + 0.4*cm" 
0633               outer_r = "VertexBarrel_r0 + 1.6*cm" 
0634               rmax    = "CentralBeamPipe_rmax + 0.2*cm + 10.7*cm" 
0635               rmin    = "CentralBeamPipe_rmax + 10.7*cm" 
0636               inner_z = "VertexBarrel_zmax + 1.0*cm" >
0637               <slice material = "CarbonFiber" thickness = "VXD_CF_support" />
0638             </layer>
0639             <layer id="4" 
0640               inner_r = "VertexBarrel_r3 + 2*VxBar_Env - 1.*cm" 
0641               outer_r = "VertexBarrel_r3 + 2*VxBar_Env + 0.2*cm" 
0642               rmax    = "VertexBarrel_r3 + 2*VxBar_Env + 3.5*cm" 
0643               rmin    = "VertexBarrel_r3 + 2*VxBar_Env + 3.5*cm - 0.2*cm" 
0644               inner_z = "VertexBarrel_zmax + 1.0*cm" >
0645               <slice material = "CarbonFiber" thickness = "VXD_CF_support" />
0646             </layer>
0647         </detector>
0648 
0649 <!-- VertexReadout -->
0650         <detector name="VertexReadout" 
0651                   type="Lhe_BP_DiskTracker" 
0652                   reflect="true"
0653                   sensitive="false" 
0654                   vis="SiVertexBarrelROVis">
0655             <comment>Readout and Cabling</comment>
0656 
0657             <layer id="5"
0658               inner_r = "VertexBG10_r0_in + 0.4*cm" 
0659               outer_r = "VertexBG10_r0_ou + 1.6*cm"  
0660               inner_z = "VertexBarrel_zmax + 2.*cm" 
0661               rmax    = "CentralBeamPipe_rmax + 12.*cm" vis="SiVertexBarrelROVis">
0662               <slice material = "G10" thickness ="G10thickness"/>
0663             </layer>
0664 
0665             <layer id="6"
0666               inner_r = "VertexBG10_r1_in + 0.4*cm" 
0667               outer_r = "VertexBG10_r1_ou + 1.6*cm" 
0668               inner_z = "VertexBarrel_zmax + 2.*cm"
0669               rmax    = "CentralBeamPipe_rmax + 0.4*cm + 12.*cm + VertexBG10_r1_ou*0.22" vis="SiVertexBarrelROVis" >
0670               <slice material = "G10" thickness ="G10thickness"/>
0671             </layer>
0672 
0673             <layer id="7" 
0674               inner_r = "VertexBG10_r2_in + 0.4*cm" 
0675               outer_r = "VertexBG10_r2_ou + 1.6*cm"  
0676               inner_z = "VertexBarrel_zmax + 2.*cm"   
0677               rmax    = "CentralBeamPipe_rmax + 0.2*cm + 12.*cm + VertexBG10_r2_ou*0.33" vis="SiVertexBarrelROVis">
0678               <slice material = "G10" thickness ="G10thickness"/>
0679             </layer>
0680 
0681             <layer id="8" 
0682               inner_r = "VertexBG10_r3_in + 0.4*cm" 
0683               outer_r = "VertexBG10_r3_ou + 1.6*cm"  
0684               inner_z = "VertexBarrel_zmax + 2.*cm"  
0685               rmax    = "CentralBeamPipe_rmax + 0.2*cm + 12.*cm + VertexBG10_r3_ou*0.33" vis="SiVertexBarrelROVis">
0686               <slice material = "G10" thickness ="G10thickness"/>
0687             </layer>
0688 
0689             <layer id="9" 
0690               inner_r = "VertexCo_r0_in + 0.4*cm" 
0691               outer_r = "VertexCo_r0_ou + 1.6*cm"  
0692               inner_z = "VertexBarrel_zmax + 4.*cm" 
0693               rmax    = "CentralBeamPipe_rmax + 0.4 + 12.*cm " vis="SiVertexBarrelROVis">
0694               <slice material = "Copper" thickness ="0.0057*cm"/>
0695             </layer>
0696 
0697             <layer id="10" 
0698               inner_r = "VertexCo_r1_in + 0.4*cm" 
0699               outer_r = "VertexCo_r1_ou + 1.6*cm"  
0700               inner_z = "VertexBarrel_zmax + 4.0*cm" 
0701               rmax    = "CentralBeamPipe_rmax + 0.4*cm + 12.*cm + VertexCo_r0_ou*0.22" vis="SiVertexBarrelROVis">
0702               <slice material = "Copper" thickness ="0.0031*cm"/>
0703             </layer>
0704 
0705             <layer id="11" 
0706               inner_r = "VertexCo_r2_in + 0.4*cm" 
0707               outer_r = "VertexCo_r2_ou + 1.6*cm"  
0708               inner_z = "VertexBarrel_zmax + 4.0*cm" 
0709               rmax    = "CentralBeamPipe_rmax + 0.4*cm + 12.*cm + VertexCo_r2_ou*0.33" vis="SiVertexBarrelROVis" >
0710               <slice material = "Copper" thickness ="0.0016*cm"/>
0711             </layer>
0712 
0713             <layer id="12" 
0714               inner_r = "VertexCo_r3_in + 0.4*cm" 
0715               outer_r = "VertexCo_r3_ou + 1.6*cm"  
0716               inner_z = "VertexBarrel_zmax + 4.0*cm" 
0717               rmax    = "CentralBeamPipe_rmax + 0.4*cm + 12.*cm + VertexCo_r3_ou*0.33" vis="SiVertexBarrelROVis" >
0718               <slice material = "Copper" thickness ="0.0007*cm"/>
0719             </layer>
0720         </detector>
0721 
0722 <!--SiTrackerBarrel -->
0723         <detector id="2" name="SiTrackerBarrel" 
0724                          type="Lhe_SiTrackerBarrel" 
0725                          insideTrackingVolume="true" 
0726                          readout="SiTrackerBarrelHits" 
0727                          region="SiTrackerBarrelRegion" 
0728                          limits="SiTrackerBarrelRegionLimitSet">
0729             <comment>Outer Tracker Barrel</comment>
0730 
0731             <module name="SiTrackerModule_Layer0"   vis="SiTrackerBarrelModuleVis">
0732                 <module_envelope 
0733                   width="SiMod_w0" length="SiMod_l0" thickness="0.3*cm"/>
0734                 <module_component 
0735                   width="SiMod_w0" length="SiMod_l0" thickness="0.02*cm" material="PEEK" sensitive="false" vis="false">
0736                     <position z="-0.14*cm" />
0737                 </module_component>
0738                 <module_component 
0739                   width="SiMod_w0" length="SiMod_l0" thickness="0.016*cm" material="CarbonFiber_50D" sensitive="false" vis="false">
0740                     <position z="-0.122*cm" />
0741                 </module_component>
0742                 <module_component 
0743                   width="SiMod_w0" length="SiMod_l0" thickness="0.18*cm" material="Rohacell31_50D" sensitive="false" vis="false" >
0744                     <position z="-0.024*cm" />
0745                 </module_component>
0746                 <module_component 
0747                   width="SiMod_w0" length="SiMod_l0" thickness="0.0175*cm" material="Epoxy" sensitive="false" vis="false" >
0748                     <position z="0.07475*cm" />
0749                 </module_component>
0750                 <module_component 
0751                   width="SiMod_w0" length="SiMod_l0" thickness="0.016*cm" material="CarbonFiber_50D" sensitive="false" vis="false" >
0752                     <position z="0.0915*cm" />
0753                 </module_component>
0754                 <module_component 
0755                   width="SiWafer_w" length="SiWafer_l" thickness="0.03*cm" material="Silicon" sensitive="true">
0756                     <position z="0.1145*cm"/>
0757                 </module_component>
0758                 <module_component 
0759                   width="SiMod_w0" length="SiMod_l0" thickness="0.00048*cm" material="Silicon" sensitive="false" vis="false" >
0760                     <position z="0.12974*cm"/>
0761                 </module_component>
0762                 <module_component 
0763                   width="SiMod_w0" length="SiMod_l0" thickness="0.0038*cm" material="Kapton" sensitive="false" vis="false" >
0764                     <position z="0.1375*cm"/>
0765                 </module_component>
0766                 <module_component 
0767                   width="SiMod_w0" length="SiMod_l0" thickness="0.00038*cm" material="Copper" sensitive="false" vis="false">
0768                     <position z="0.146*cm"/>
0769                 </module_component>
0770             </module>
0771 
0772             <module name="SiTrackerModule_Layer1" vis="SiTrackerBarrelModuleVis">
0773                 <module_envelope 
0774                   width="SiMod_w1" length="SiMod_l1" thickness="0.3*cm"/>
0775                 <module_component 
0776                   width="SiMod_w1" length="SiMod_l1" thickness="0.02*cm" material="PEEK" sensitive="false" vis="false">
0777                     <position z="-0.14*cm" />
0778                 </module_component>
0779                 <module_component 
0780                   width="SiMod_w1" length="SiMod_l1" thickness="0.016*cm" material="CarbonFiber_50D" sensitive="false" vis="false" >
0781                     <position z="-0.122*cm" />
0782                 </module_component>
0783                 <module_component 
0784                   width="SiMod_w1" length="SiMod_l1" thickness="0.18*cm" material="Rohacell31_50D" sensitive="false" vis="false" >
0785                     <position z="-0.024*cm" />
0786                 </module_component>
0787                 <module_component 
0788                   width="SiMod_w1" length="SiMod_l1" thickness="0.0175*cm"  material="Epoxy" sensitive="false" vis="false">
0789                     <position z="0.07475*cm" />
0790                 </module_component>
0791                 <module_component                 
0792                   width="SiMod_w1" length="SiMod_l1" thickness="0.016*cm" material="CarbonFiber_50D" sensitive="false" vis="false" >
0793                     <position z="0.0915*cm" />
0794                 </module_component>                
0795                 <module_component 
0796                   width="SiWafer_w" length="SiWafer_l" thickness="0.03*cm" material="Silicon" sensitive="true">
0797                     <position z="0.1145*cm"/>
0798                 </module_component>                
0799                 <module_component 
0800                   width="SiMod_w1" length="SiMod_l1" thickness="0.00048*cm" material="Silicon" sensitive="false" vis="false" >
0801                     <position z="0.12974*cm"/>
0802                 </module_component>                
0803                 <module_component 
0804                   width="SiMod_w1" length="SiMod_l1" thickness="0.0051*cm" material="Kapton" sensitive="false" vis="false" >
0805                     <position z="0.1375*cm"/>
0806                 </module_component>                
0807                 <module_component 
0808                   width="SiMod_w1" length="SiMod_l1" thickness="0.00052*cm" material="Copper" sensitive="false" vis="false">
0809                     <position z="0.146*cm"/>
0810                 </module_component>
0811             </module>
0812 
0813             <module name="SiTrackerModule_Layer2" vis="SiTrackerBarrelModuleVis">
0814                 <module_envelope 
0815                   width="SiMod_w2" length="SiMod_l2" thickness="0.3*cm"/>
0816                 <module_component 
0817                   width="SiMod_w2" length="SiMod_l2" thickness="0.02*cm" material="PEEK" sensitive="false" vis="false" >
0818                     <position z="-0.14*cm" />
0819                 </module_component>
0820                 <module_component 
0821                   width="SiMod_w2" length="SiMod_l2" thickness="0.016*cm" material="CarbonFiber_50D" sensitive="false" vis="false" >
0822                     <position z="-0.122*cm" />
0823                 </module_component>
0824                 <module_component 
0825                   width="SiMod_w2" length="SiMod_l2" thickness="0.18*cm" material="Rohacell31_50D" sensitive="false" vis="false" >
0826                     <position z="-0.024*cm" />
0827                 </module_component>
0828                 <module_component 
0829                   width="SiMod_w2" length="SiMod_l2" thickness="0.0175*cm" material="Epoxy" sensitive="false" vis="false" >
0830                     <position z="0.07475*cm" />
0831                 </module_component>
0832                 <module_component
0833                   width="SiMod_w2" length="SiMod_l2" thickness="0.016*cm" material="CarbonFiber_50D" sensitive="false" vis="false" >
0834                     <position z="0.0915*cm" />
0835                 </module_component>
0836                 <module_component
0837                   width="SiWafer_w" length="SiWafer_l" thickness="0.03*cm" material="Silicon" sensitive="true">
0838                     <position z="0.1145*cm"/>
0839                 </module_component>
0840                 <module_component
0841                   width="SiMod_w2" length="SiMod_l2" thickness="0.00048*cm" material="Silicon" sensitive="false" vis="false" >
0842                     <position z="0.12974*cm"/>
0843                 </module_component>
0844                 <module_component
0845                   width="SiMod_w2" length="SiMod_l2" thickness="0.0064*cm" material="Kapton" sensitive="false" vis="false" >
0846                     <position z="0.1375*cm"/>
0847                 </module_component>
0848                 <module_component
0849                   width="SiMod_w2" length="SiMod_l2" thickness="0.00065*cm" material="Copper" sensitive="false" vis="false">
0850                     <position z="0.146*cm"/>
0851                 </module_component>
0852             </module>
0853 
0854             <module name="SiTrackerModule_Layer3" vis="SiTrackerBarrelModuleVis">
0855                 <module_envelope 
0856                   width="SiMod_w3" length="SiMod_l3" thickness="0.3*cm"/>
0857                 <module_component
0858                   width="SiMod_w3" length="SiMod_l3" thickness="0.02*cm" material="PEEK" sensitive="false" vis="false" >
0859                     <position z="-0.14*cm" />
0860                 </module_component>
0861                 <module_component
0862                   width="SiMod_w3" length="SiMod_l3" thickness="0.016*cm" material="CarbonFiber_50D" sensitive="false" vis="false" >
0863                     <position z="-0.122*cm" />
0864                 </module_component>
0865                 <module_component
0866                   width="SiMod_w3" length="SiMod_l3" thickness="0.18*cm" material="Rohacell31_50D" sensitive="false" vis="false" >
0867                     <position z="-0.024*cm" />
0868                 </module_component>
0869                 <module_component
0870                   width="SiMod_w3" length="SiMod_l3" thickness="0.0175*cm" material="Epoxy" sensitive="false" vis="false" >
0871                     <position z="0.07475*cm" />
0872                 </module_component>
0873                 <module_component
0874                   width="SiMod_w3" length="SiMod_l3" thickness="0.016*cm" material="CarbonFiber_50D" sensitive="false" vis="false" >
0875                     <position z="0.0915*cm" />
0876                 </module_component>
0877                 <module_component
0878                   width="SiWafer_w" length="SiWafer_l" thickness="0.03*cm" material="Silicon" sensitive="true">
0879                     <position z="0.1145*cm"/>
0880                 </module_component>
0881                 <module_component
0882                   width="SiMod_w3" length="SiMod_l3" thickness="0.00048*cm" material="Silicon" sensitive="false" vis="false" >
0883                     <position z="0.12974*cm"/>
0884                 </module_component>
0885                 <module_component
0886                   width="SiMod_w3" length="SiMod_l3" thickness="0.0078*cm" material="Kapton" sensitive="false" vis="false" >
0887                     <position z="0.1375*cm"/>
0888                 </module_component>
0889                 <module_component
0890                   width="SiMod_w3" length="SiMod_l3" thickness="0.00079*cm" material="Copper" sensitive="false" vis="false" >
0891                     <position z="0.146*cm"/>
0892                 </module_component>
0893             </module>
0894 
0895             <module name="SiTrackerModule_Layer4" vis="SiTrackerBarrelModuleVis">
0896                 <module_envelope 
0897                   width="SiMod_w4" length="SiMod_l4" thickness="0.3*cm"/>
0898                 <module_component
0899                   width="SiMod_w4" length="SiMod_l4" thickness="0.02*cm" material="PEEK" sensitive="false" vis="false" >
0900                     <position z="-0.14*cm" />
0901                 </module_component>
0902                 <module_component
0903                   width="SiMod_w4" length="SiMod_l4" thickness="0.016*cm" material="CarbonFiber_50D" sensitive="false" vis="false" >
0904                     <position z="-0.122*cm" />
0905                 </module_component>
0906                 <module_component
0907                   width="SiMod_w4" length="SiMod_l4" thickness="0.18*cm" material="Rohacell31_50D" sensitive="false" vis="false" >
0908                     <position z="-0.024*cm" />
0909                 </module_component>
0910                 <module_component
0911                   width="SiMod_w4" length="SiMod_l4" thickness="0.0175*cm" material="Epoxy" sensitive="false" vis="false" >
0912                     <position z="0.07475*cm" />
0913                 </module_component>
0914                 <module_component
0915                   width="SiMod_w4" length="SiMod_l4" thickness="0.016*cm" material="CarbonFiber_50D" sensitive="false" vis="false">
0916                     <position z="0.0915*cm" />
0917                 </module_component>
0918                 <module_component
0919                   width="SiWafer_w" length="SiWafer_l" thickness="0.03*cm" material="Silicon" sensitive="true">
0920                     <position z="0.1145*cm"/>
0921                 </module_component>
0922                 <module_component
0923                   width="SiMod_w4" length="SiMod_l4" thickness="0.00048*cm" material="Silicon" sensitive="false" vis="false" >
0924                     <position z="0.12974*cm"/>
0925                 </module_component>
0926                 <module_component
0927                   width="SiMod_w4" length="SiMod_l4" thickness="0.0091*cm" material="Kapton" sensitive="false" vis="false" >
0928                     <position z="0.1375*cm"/>
0929                 </module_component>
0930                 <module_component
0931                   width="SiMod_w4" length="SiMod_l4" thickness="0.00093*cm" material="Copper" sensitive="false" vis="false">
0932                     <position z="0.146*cm"/>
0933                 </module_component>
0934             </module>
0935 
0936             <layer module="SiTrackerModule_Layer0" id="1" vis="SiTrackerBarrelLayerVis">
0937                 <barrel_envelope
0938                   inner_r="Radius_SITLayer0 + 8.*mm" 
0939                   outer_r="Radius_SITLayer0+Diff_Radius_SITLayer" 
0940                   z_length="SiMod_z0*2"/>
0941                 <rphi_layout 
0942                   phi_tilt="0.13*rad" nphi="17" phi0="0."  rc="Radius_SITLayer0 + 12.*mm" dr="0.0"/>
0943                 <z_layout dr="4.0*mm" z0="SiMod_zi0" nz="11"/>               
0944             </layer>   <comment>  z-length = +-53cm; radius = 24cm </comment>
0945 
0946             <layer module="SiTrackerModule_Layer1" id="2" vis="SiTrackerBarrelLayerVis">
0947                 <barrel_envelope
0948                   inner_r="Radius_SITLayer1" 
0949                   outer_r="Radius_SITLayer1+Diff_Radius_SITLayer" 
0950                   z_length="SiMod_z1*2"/>
0951                 <rphi_layout 
0952                   phi_tilt="0.13*rad" nphi="20" phi0="0.087*rad"  rc="Radius_SITLayer1 + 8*mm" dr="0.0"/>
0953                 <z_layout dr="4.0*mm" z0="SiMod_zi1" nz="13"/>        
0954             </layer>   <comment>  z-length = +-59cm; radius = 29cm  </comment>
0955           
0956             <layer module="SiTrackerModule_Layer2" id="3" vis="SiTrackerBarrelLayerVis">
0957                 <barrel_envelope 
0958                   inner_r="Radius_SITLayer2" 
0959                   outer_r="Radius_SITLayer2+Diff_Radius_SITLayer" 
0960                   z_length="SiMod_z2*2"/>
0961                 <rphi_layout 
0962                   phi_tilt="0.13*rad" nphi="24" phi0="0.058*rad"  rc="Radius_SITLayer2 + 8*mm" dr="0.0"/>
0963                 <z_layout dr="4.0*mm" z0="SiMod_zi2" nz="14"/>
0964             </layer>    <comment>  z-length = +-69cm; radius = 34cm  </comment>
0965           
0966             <layer module="SiTrackerModule_Layer3" id="4" vis="SiTrackerBarrelLayerVis">
0967                 <barrel_envelope 
0968                   inner_r="Radius_SITLayer3" 
0969                   outer_r="Radius_SITLayer3+Diff_Radius_SITLayer" 
0970                   z_length="SiMod_z3*2"/>
0971                 <rphi_layout 
0972                   phi_tilt="0.13*rad" nphi="28" phi0="0.0436*rad" rc="Radius_SITLayer3 + 8.*mm" dr="0.0"/>
0973                 <z_layout dr="4.0*mm" z0="SiMod_zi3" nz="18"/>
0974             </layer>    <comment>  z-length = +-79cm; radius = 39cm  </comment>
0975            
0976             <layer module="SiTrackerModule_Layer4" id="5" vis="SiTrackerBarrelLayerVis">
0977                 <barrel_envelope 
0978                   inner_r="Radius_SITLayer4"  
0979                   outer_r="Radius_SITLayer4+Diff_Radius_SITLayer" 
0980                   z_length="SiMod_z4*2"/>
0981                 <rphi_layout 
0982                   phi_tilt="0.13*rad" nphi="32" phi0="0.01745*rad" rc="Radius_SITLayer4 + 8*mm" dr="0.0"/>
0983                 <z_layout dr="4.0*mm" z0="SiMod_zi4" nz="22"/>
0984             </layer>    <comment>  z-length = +-89cm; radius = 44cm  </comment>
0985                         
0986         </detector>
0987 
0988         <comment>   Outer Tracker Supports   </comment>
0989 
0990         <detector name="TrackerBarrelSupports" 
0991                   type="Lhe_MultiLayerTracker" 
0992                   reflect="true" 
0993                   vis="SupportVis">
0994             <comment>Barrels</comment>
0995  
0996             <layer id="1" 
0997               inner_r = "Radius_SITLayer0 - VxBar_Env + 0.2" 
0998               outer_z = "SiMod_z0 + VxBar_Env/4 - 1.5*cm">
0999                 <slice material="CarbonFiber" thickness="0.05*cm" />
1000                 <slice material="Rohacell31_15percent" thickness="0.8075*cm" />
1001                 <slice material="CarbonFiber" thickness="0.05*cm" />
1002             </layer>
1003 
1004             <layer id="2" 
1005                inner_r="Radius_SITLayer1 - VxBar_Env - 0.5*cm" 
1006                outer_z="SiMod_z1 + VxBar_Env/4 - 1.5*cm">
1007                 <slice material="CarbonFiber" thickness="0.05*cm" />
1008                 <slice material="Rohacell31_15percent" thickness="0.8075*cm" />
1009                 <slice material="CarbonFiber" thickness="0.05*cm" />
1010             </layer>
1011 
1012             <layer id="3" 
1013                inner_r="Radius_SITLayer2 - VxBar_Env - 0.5*cm" 
1014                outer_z="SiMod_z2 + VxBar_Env/4 - 1.5*cm">>
1015                 <slice material= "CarbonFiber" thickness = "0.05*cm" />
1016                 <slice material= "Rohacell31_15percent" thickness="0.8075*cm" />
1017                 <slice material= "CarbonFiber" thickness="0.05*cm" />
1018             </layer>
1019 
1020             <layer id="4" 
1021                inner_r="Radius_SITLayer3 - VxBar_Env - 0.5*cm" 
1022                outer_z="SiMod_z3 + VxBar_Env/4 - 1.5*cm">>
1023                 <slice material="CarbonFiber" thickness="0.05*cm" />
1024                 <slice material="Rohacell31_15percent" thickness="0.8075*cm" />
1025                 <slice material="CarbonFiber" thickness="0.05*cm" />
1026             </layer>
1027 
1028             <layer id="5" 
1029                inner_r="Radius_SITLayer4 - VxBar_Env - 0.5*cm" 
1030                outer_z="SiMod_z4 + VxBar_Env/4 - 1.5*cm">>
1031                 <slice material="CarbonFiber" thickness="0.05*cm" />
1032                 <slice material="Rohacell31_15percent" thickness="0.8075*cm" />
1033                 <slice material="CarbonFiber" thickness="0.05*cm" />
1034             </layer>
1035 
1036        </detector>
1037 
1038         <detector name="TrackerReadout" 
1039                   type="Lhe_DiskTracker" 
1040                   reflect="true" 
1041                   vis="GreenVis">
1042             <comment>Readouts</comment>
1043 
1044             <layer id="1" 
1045               inner_r="Radius_SITLayer0 - VxBar_Env " 
1046               inner_z="SiMod_z0" 
1047               outer_r="Radius_SITLayer0 ">
1048                 <slice material="G10" thickness="0.057*cm" />
1049                 <slice material="Copper" thickness="0.0038*cm" />
1050             </layer> 
1051             <layer id="2" 
1052               inner_r="Radius_SITLayer1 - VxBar_Env*2 " 
1053               inner_z="SiMod_z1" 
1054               outer_r="Radius_SITLayer1 ">
1055                 <slice material = "G10" thickness="0.102*cm" />
1056                 <slice material = "Copper" thickness="0.0068*cm" />
1057             </layer>
1058             <layer id="3" 
1059               inner_r="Radius_SITLayer2 - VxBar_Env*2 " 
1060               inner_z="SiMod_z2" 
1061               outer_r="Radius_SITLayer2 ">
1062                 <slice material="G10" thickness="0.108*cm" />
1063                 <slice material="Copper" thickness="0.0072*cm" />
1064             </layer>
1065             <layer id="4" 
1066               inner_r="Radius_SITLayer3 - VxBar_Env*2 " 
1067               inner_z="SiMod_z3" 
1068               outer_r="Radius_SITLayer3 ">
1069                 <slice material="G10" thickness="0.186*cm" />
1070                 <slice material="Copper" thickness="0.0124*cm" />
1071             </layer>
1072             <layer id="5" 
1073               inner_r= "Radius_SITLayer4 - VxBar_Env*2 " 
1074               inner_z="SiMod_z4" 
1075               outer_r="Radius_SITLayer4 ">
1076                 <slice material="G10" thickness="0.246*cm" />
1077                 <slice material="Copper" thickness="0.0164*cm" />
1078             </layer>
1079 
1080         </detector>
1081 
1082        
1083 <!-- fwd-tracker -->
1084         <detector id="3" name="SiTrackerForward" 
1085                          type="Lhe_SiTrackerEndcap2" 
1086                          readout="SiTrackerForwardHits" 
1087                          reflect="false"
1088                          r="VertexBarrel_r0 - VxBar_Env"
1089                          rmax="CentralBeamPipe_rmax + 1.*cm + 7.5*cm"
1090                          vis="SiTrackerForwardVis">
1091             <comment>Forward Tracker outside Barrel Support</comment>
1092             <module name="Module1" vis="SiTrackerForwardModulVis">
1093                 <trd x1="36.112*mm" x2="46.635*mm" z="100.114/2*mm" />
1094                 <module_component thickness="0.00052*cm"   material="Copper" />
1095                 <module_component thickness="0.0051*cm"   material="Kapton" />
1096                 <module_component thickness="0.00048*cm" material="Silicon" />
1097                 <module_component thickness="0.03*cm"   material="Silicon" sensitive="true" />
1098                 <module_component thickness="0.016*cm" material="CarbonFiber_50D" />
1099                 <module_component thickness="0.18*cm" material="Rohacell31_50D" />
1100                 <module_component thickness="0.016*cm" material="CarbonFiber_50D" />
1101                 <module_component thickness="0.0175*cm" material="Epoxy" />
1102                 <module_component thickness="0.03*cm"   material="Silicon" sensitive="true" />
1103                 <module_component thickness="0.00048*cm" material="Silicon" />
1104                 <module_component thickness="0.0051*cm"   material="Kapton" />
1105                 <module_component thickness="0.00052*cm"   material="Copper" />
1106             </module>
1107             <module name="Module2" vis="SiTrackerForwardModulVis">
1108                 <trd x1="45.245*mm" x2="54.680*mm" z="89.773/2*mm" />
1109                 <module_component thickness="0.00079*cm"   material="Copper" />
1110                 <module_component thickness="0.0078*cm"   material="Kapton" />
1111                 <module_component thickness="0.00048*cm" material="Silicon" />
1112                 <module_component thickness="0.03*cm"   material="Silicon" sensitive="true" />
1113                 <module_component thickness="0.016*cm" material="CarbonFiber_50D" />
1114                 <module_component thickness="0.18*cm" material="Rohacell31_50D" />
1115                 <module_component thickness="0.016*cm" material="CarbonFiber_50D" />
1116                 <module_component thickness="0.0175*cm" material="Epoxy" />
1117                 <module_component thickness="0.03*cm"   material="Silicon" sensitive="true" />
1118                 <module_component thickness="0.00048*cm" material="Silicon" />
1119                 <module_component thickness="0.0078*cm"   material="Kapton" />
1120                 <module_component thickness="0.00079*cm"   material="Copper" />
1121             </module>
1122 
1123            <layer id="1">
1124                 <ring r="Ftd_sdisk_ri0" zstart="Ftd_disk_z0+32*mm+5*mm" nmodules="8" dz="2.5*mm" module="Module1" phi0="pi/10"/>
1125                 <ring r="Ftd_sdisk_ri1" zstart="Ftd_disk_z0+24*mm+4*mm" nmodules="14" dz="2*mm" module="Module1"/>
1126                 <ring r="Ftd_sdisk_ri2" zstart="Ftd_disk_z0+16*mm+4*mm" nmodules="20" dz="2*mm" module="Module1"/>
1127             </layer>    <comment> new: middle-z-pos. = +75cm; outer_radius = 32cm  </comment>
1128 
1129            <layer id="2">
1130                 <ring r="Ftd_sdisk_ri0" zstart="Ftd_disk_z1+32*mm+5*mm" nmodules="8" dz="2.5*mm" module="Module1" phi0="pi/10"/>
1131                 <ring r="Ftd_sdisk_ri1" zstart="Ftd_disk_z1+24*mm+4*mm" nmodules="14" dz="2*mm" module="Module1"/>
1132                 <ring r="Ftd_sdisk_ri2" zstart="Ftd_disk_z1+16*mm+4*mm" nmodules="20" dz="2*mm" module="Module1"/>
1133             </layer>     <comment>  middle-z-pos. = +92.5cm; outer_radius = 38cm  </comment>
1134 
1135            <layer id="3">
1136                 <ring r="Ftd_sdisk_ri0" zstart="Ftd_disk_z2+32*mm+5*mm" nmodules="8" dz="2.5*mm" module="Module1" phi0="pi/10"/>
1137                 <ring r="Ftd_sdisk_ri1" zstart="Ftd_disk_z2+24*mm+4*mm" nmodules="14" dz="2*mm" module="Module1"/>
1138                 <ring r="Ftd_sdisk_ri2" zstart="Ftd_disk_z2+16*mm+4*mm" nmodules="20" dz="2*mm" module="Module1"/>
1139                 <ring r="Ftd_sdisk_ri3" zstart="Ftd_disk_z2+8*mm+4*mm"  nmodules="22" dz="2*mm" module="Module2" phi0="pi/22"/>
1140                 <ring r="Ftd_sdisk_ri4" zstart="Ftd_disk_z2+4*mm" nmodules="28" dz="2*mm" module="Module2" phi0="pi/28"/>
1141             </layer>     <comment>  middle-z-pos. = +142cm; outer_radius = 46cm  </comment>
1142 
1143            <layer id="4">
1144                 <ring r="Ftd_sdisk_ri0" zstart="Ftd_disk_z3+32*mm+5*mm" nmodules="8" dz="2.5*mm" module="Module1"/>
1145                 <ring r="Ftd_sdisk_ri1" zstart="Ftd_disk_z3+24*mm+4*mm" nmodules="14" dz="2*mm" module="Module1"/>
1146                 <ring r="Ftd_sdisk_ri2" zstart="Ftd_disk_z3+16*mm+4*mm" nmodules="20" dz="2*mm" module="Module1"/>
1147                 <ring r="Ftd_sdisk_ri3" zstart="Ftd_disk_z3+8*mm+4*mm"  nmodules="22" dz="2*mm" module="Module2" phi0="pi/22"/>
1148                 <ring r="Ftd_sdisk_ri4" zstart="Ftd_disk_z3+4*mm" nmodules="28" dz="2*mm" module="Module2" phi0="pi/28"/>
1149             </layer>     <comment>  middle-z-pos. = +192cm; outer_radius = 46cm  </comment>
1150 
1151            <layer id="5">
1152                 <ring r="Ftd_sdisk_ri0" zstart="Ftd_disk_z4+32*mm+5*mm" nmodules="8" dz="2.5*mm" module="Module1"/>
1153                 <ring r="Ftd_sdisk_ri1" zstart="Ftd_disk_z4+24*mm+4*mm" nmodules="14" dz="2*mm" module="Module1"/>
1154                 <ring r="Ftd_sdisk_ri2" zstart="Ftd_disk_z4+16*mm+4*mm" nmodules="20" dz="2*mm" module="Module1"/>
1155                 <ring r="Ftd_sdisk_ri3" zstart="Ftd_disk_z4+8*mm+4*mm"  nmodules="22" dz="2*mm" module="Module2" phi0="pi/22"/>
1156                 <ring r="Ftd_sdisk_ri4" zstart="Ftd_disk_z4+4*mm" nmodules="28" dz="2*mm" module="Module2" phi0="pi/28"/>
1157             </layer>     <comment>  middle-z-pos. = +267cm; outer_radius = 46cm  </comment>
1158 
1159            <layer id="6">
1160                 <ring r="Ftd_sdisk_ri0" zstart="Ftd_disk_z5+32*mm+5*mm" nmodules="8" dz="2.5*mm" module="Module1"/>
1161                 <ring r="Ftd_sdisk_ri1" zstart="Ftd_disk_z5+24*mm+4*mm" nmodules="14" dz="2*mm" module="Module1"/>
1162                 <ring r="Ftd_sdisk_ri2" zstart="Ftd_disk_z5+16*mm+4*mm" nmodules="20" dz="2*mm" module="Module1"/>
1163                 <ring r="Ftd_sdisk_ri3" zstart="Ftd_disk_z5+8*mm+4*mm"  nmodules="22" dz="2*mm" module="Module2" phi0="pi/22"/>
1164                 <ring r="Ftd_sdisk_ri4" zstart="Ftd_disk_z5+4*mm" nmodules="28" dz="2*mm" module="Module2" phi0="pi/28"/>
1165             </layer>     <comment>  middle-z-pos. = +332cm; outer_radius = 46cm  </comment>
1166 
1167            <layer id="7">
1168                 <ring r="Ftd_sdisk_ri0" zstart="Ftd_disk_z6+32*mm+5*mm" nmodules="8" dz="2.5*mm" module="Module1"/>
1169                 <ring r="Ftd_sdisk_ri1" zstart="Ftd_disk_z6+24*mm+4*mm" nmodules="14" dz="2*mm" module="Module1"/>
1170                 <ring r="Ftd_sdisk_ri2" zstart="Ftd_disk_z6+16*mm+4*mm" nmodules="20" dz="2*mm" module="Module1"/>
1171                 <ring r="Ftd_sdisk_ri3" zstart="Ftd_disk_z6+8*mm+4*mm"  nmodules="22" dz="2*mm" module="Module2" phi0="pi/22"/>
1172                 <ring r="Ftd_sdisk_ri4" zstart="Ftd_disk_z6+4*mm" nmodules="28" dz="2*mm" module="Module2" phi0="pi/28"/>
1173             </layer>     <comment>  middle-z-pos. = +372cm; outer_radius = 46cm  </comment>
1174 
1175         </detector>
1176 
1177 <!-- bwd-tracker -->
1178         <detector id="4" name="SiTrackerBackward" 
1179                          type="Lhe_BP_SiTrackerEndcap2" 
1180                          readout="SiTrackerBackwardHits" 
1181                          reflect="false"
1182                          r="VertexBarrel_r0 - VxBar_Env"
1183                          rmax="CentralBeamPipe_rmax + 1.*cm + 7.5*cm"
1184                          vis="SiTrackerBackwardVis">
1185             <comment>Forward Tracker outside Barrel Support</comment>
1186             <module name="Module1" vis="SiTrackerForwardModulVis">
1187                 <trd x1="36.112*mm" x2="46.635*mm" z="100.114/2*mm" />
1188                 <module_component thickness="0.00052*cm"   material="Copper" />
1189                 <module_component thickness="0.0051*cm"   material="Kapton" />
1190                 <module_component thickness="0.00048*cm" material="Silicon" />
1191                 <module_component thickness="0.03*cm"   material="Silicon" sensitive="true" />
1192                 <module_component thickness="0.016*cm" material="CarbonFiber_50D" />
1193                 <module_component thickness="0.18*cm" material="Rohacell31_50D" />
1194                 <module_component thickness="0.016*cm" material="CarbonFiber_50D" />
1195                 <module_component thickness="0.0175*cm" material="Epoxy" />
1196                 <module_component thickness="0.03*cm"   material="Silicon" sensitive="true" />
1197                 <module_component thickness="0.00048*cm" material="Silicon" />
1198                 <module_component thickness="0.0051*cm"   material="Kapton" />
1199                 <module_component thickness="0.00052*cm"   material="Copper" />
1200             </module>
1201             <module name="Module2" vis="SiTrackerForwardModulVis">
1202                 <trd x1="45.245*mm" x2="54.680*mm" z="89.773/2*mm" />
1203                 <module_component thickness="0.00079*cm"   material="Copper" />
1204                 <module_component thickness="0.0078*cm"   material="Kapton" />
1205                 <module_component thickness="0.00048*cm" material="Silicon" />
1206                 <module_component thickness="0.03*cm"   material="Silicon" sensitive="true" />
1207                 <module_component thickness="0.016*cm" material="CarbonFiber_50D" />
1208                 <module_component thickness="0.18*cm" material="Rohacell31_50D" />
1209                 <module_component thickness="0.016*cm" material="CarbonFiber_50D" />
1210                 <module_component thickness="0.0175*cm" material="Epoxy" />
1211                 <module_component thickness="0.03*cm"   material="Silicon" sensitive="true" />
1212                 <module_component thickness="0.00048*cm" material="Silicon" />
1213                 <module_component thickness="0.0078*cm"   material="Kapton" />
1214                 <module_component thickness="0.00079*cm"   material="Copper" />
1215             </module>
1216 
1217            <layer id="1">
1218                 <ring r="Ftd_sdisk_ri0" zstart="Btd_disk_z0-32*mm-5*mm" nmodules="8" dz="2.5*mm" module="Module1" phi0="pi/10"/>
1219                 <ring r="Ftd_sdisk_ri1" zstart="Btd_disk_z0-24*mm-4*mm" nmodules="14" dz="2*mm" module="Module1"/>
1220                 <ring r="Ftd_sdisk_ri2" zstart="Btd_disk_z0-16*mm-4*mm" nmodules="20" dz="2*mm" module="Module1"/>
1221             </layer>     <comment>  middle-z-pos. = -70cm; outer_radius = 29cm  </comment>
1222 
1223            <layer id="2">
1224                 <ring r="Ftd_sdisk_ri0" zstart="Btd_disk_z1-32*mm-5*mm" nmodules="8" dz="2.5*mm" module="Module1" phi0="pi/10"/>
1225                 <ring r="Ftd_sdisk_ri1" zstart="Btd_disk_z1-24*mm-4*mm" nmodules="14" dz="2*mm" module="Module1"/>
1226                 <ring r="Ftd_sdisk_ri2" zstart="Btd_disk_z1-16*mm-4*mm" nmodules="20" dz="2*mm" module="Module1"/>
1227             </layer>     <comment>  middle-z-pos. = -92.5cm; outer_radius = 38cm  </comment>
1228 
1229            <layer id="3">
1230                 <ring r="Ftd_sdisk_ri0" zstart="Btd_disk_z2-32*mm-5*mm" nmodules="8" dz="-2.5*mm" module="Module1"/>
1231                 <ring r="Ftd_sdisk_ri1" zstart="Btd_disk_z2-24*mm-4*mm" nmodules="14" dz="-2*mm" module="Module1"/>
1232                 <ring r="Ftd_sdisk_ri2" zstart="Btd_disk_z2-16*mm-4*mm" nmodules="20" dz="-2*mm" module="Module1"/>
1233                 <ring r="Ftd_sdisk_ri3" zstart="Btd_disk_z2-8*mm-4*mm"  nmodules="22" dz="-2*mm" module="Module2" phi0="pi/22"/>
1234                 <ring r="Ftd_sdisk_ri4" zstart="Btd_disk_z2-4*mm" nmodules="28" dz="-2*mm" module="Module2" phi0="pi/28"/>
1235             </layer>     <comment>  middle-z-pos. = -132cm; outer_radius = 46cm  </comment>
1236 
1237             <layer id="4">
1238                 <ring r="Ftd_sdisk_ri0" zstart="Btd_disk_z3-32*mm-5*mm" nmodules="8" dz="-2.5*mm" module="Module1" />
1239                 <ring r="Ftd_sdisk_ri1" zstart="Btd_disk_z3-24*mm-4*mm" nmodules="14" dz="-2*mm" module="Module1"/>
1240                 <ring r="Ftd_sdisk_ri2" zstart="Btd_disk_z3-16*mm-4*mm" nmodules="20" dz="-2*mm" module="Module1"/>
1241                 <ring r="Ftd_sdisk_ri3" zstart="Btd_disk_z3-8*mm-4*mm"  nmodules="22" dz="-2*mm" module="Module2" phi0="pi/22"/>
1242                 <ring r="Ftd_sdisk_ri4" zstart="Btd_disk_z3-4*mm" nmodules="28" dz="-2*mm" module="Module2" phi0="pi/28"/>
1243             </layer>     <comment>  middle-z-pos. = -172cm; outer_radius = 46cm  </comment>
1244 
1245             <layer id="5">
1246                 <ring r="Ftd_sdisk_ri0" zstart="Btd_disk_z4-32*mm-5*mm" nmodules="8" dz="-2.5*mm" module="Module1"/>
1247                 <ring r="Ftd_sdisk_ri1" zstart="Btd_disk_z4-24*mm-4*mm" nmodules="14" dz="-2*mm" module="Module1"/>
1248                 <ring r="Ftd_sdisk_ri2" zstart="Btd_disk_z4-16*mm-4*mm" nmodules="20" dz="-2*mm" module="Module1"/>
1249                 <ring r="Ftd_sdisk_ri3" zstart="Btd_disk_z4-8*mm-4*mm"  nmodules="22" dz="-2*mm" module="Module2" phi0="pi/22"/>
1250                 <ring r="Ftd_sdisk_ri4" zstart="Btd_disk_z4-4*mm" nmodules="28" dz="-2*mm" module="Module2" phi0="pi/28"/>
1251             </layer>     <comment>  middle-z-pos. = -202cm; outer_radius = 46cm  </comment>
1252             
1253         </detector>
1254 
1255         <comment>Calorimeters</comment>
1256 <!--ECAL -->
1257         <detector id="5" name="EcalBarrel" 
1258                          type="Lhe_PolyhedraBarrelCalorimeter2" 
1259                          readout="EcalBarrelHits" 
1260                          vis="EcalBarrelVis" 
1261                          reflect="false" 
1262                          gap="0.*cm" 
1263                          calorimeterType="EM_BARREL">
1264             <comment>EM Calorimeter Barrel</comment>
1265             <dimensions numsides="(int) CaloSides" rmin="EcalBarrel_rmin" z_offset="OffsetZ" z="EcalBarrel_zmax" />
1266             <staves vis="EcalBarrelStaveVis"/>
1267 
1268             <layer repeat="1" vis="EcalLayerVis" >
1269                 <slice material = "Kapton"  thickness = "0.03*cm" vis="EcalAbsorberVis"/>
1270                 <slice material = "Polystyrene" thickness = "0.3*cm" sensitive = "yes" limits="cal_limits" vis="EcalSensitiveVis"/>
1271             </layer>   <comment>  -z-pos. = -205cm, +z-pos. = +375cm  inner_radius = 47cm (61cm) l_thick=0.33cm </comment>
1272 
1273             <layer repeat="20" vis="EcalLayerVis" >
1274                 <slice material = "Pb" thickness = "0.4*cm" vis="EcalAbsorberVis"/>
1275                 <slice material = "Polystyrene" thickness = "0.3*cm" sensitive = "yes" limits="cal_limits" vis="EcalSensitiveVis"/>
1276                 <slice material = "Air" thickness = "0.05*cm" vis="InvisibleNoDaughters"/>
1277             </layer>  <comment>  -z-pos. = -205cm, +z-pos. = +375cm  inner_radius = 47cm (+17cm)  l_thick=15.cm </comment>
1278 
1279             <layer repeat="25" vis="EcalLayerVis" >
1280                 <slice material = "Pb" thickness = "0.65*cm" vis="EcalAbsorberVis"/>
1281                 <slice material = "Polystyrene" thickness = "0.3*cm" sensitive = "yes" limits="cal_limits" vis="EcalSensitiveVis"/>
1282                 <slice material = "Air" thickness = "0.05*cm" vis="InvisibleNoDaughters"/>
1283             </layer>   <comment>  -z-pos. = -205cm, +z-pos. = +375cm  inner_radius = 47cm (+23cm) l_thick=25.cm </comment>
1284         </detector>
1285 
1286 
1287 <!--ECALEndCap fwd/bwd -->
1288         <detector id="6" name="EcalEndcap_fwd" 
1289                          type="Lhe_PolyhedraEndcapCalorimeter2" 
1290                          reflect="false" 
1291                          readout="EcalEndcapHits0" 
1292                          vis="EcalPlugVis"
1293                          calorimeterType="EM_ENDCAP">
1294         <comment> EM Calorimeter Endcaps </comment>
1295             <dimensions numsides="(int) CaloSides" zmin="EcalEndcap_zmin_fwd+2*cm" rmin="EcalEndcap_rmin" rmax="EcalBarrel_rmax" />
1296 
1297             <layer repeat="1">      <comment> 0.1*cm  </comment>
1298                  <slice material = "Silicon" thickness = "0.032*cm" sensitive="yes" limits="cal_limits" vis="EcalPlugSensitiveVis"/>
1299                  <slice material = "TungstenDens25"  thickness = "0.005*cm" vis="EcalAbsorberVis"/>
1300                  <slice material = "Kapton"  thickness = "0.030*cm" vis="EcalAbsorberVis"/>
1301                  <slice material = "Air"     thickness = "0.033*cm" vis="InvisibleNoDaughters"/>     
1302             </layer>
1303 
1304             <layer repeat="52">     <comment>  0.375*cm </comment>
1305                   <slice material = "TungstenDens25" thickness = "0.25*cm" />
1306                   <slice material = "Air"     thickness = "0.025*cm" vis="InvisibleNoDaughters"/>
1307                   <slice material = "Silicon" thickness = "0.032*cm" sensitive="yes" limits="cal_limits" vis="EcalPlugSensitiveVis"/>
1308                   <slice material = "Copper"  thickness = "0.005*cm" vis="EcalAbsorberVis"/>
1309                   <slice material = "Kapton"  thickness = "0.030*cm" vis="EcalAbsorberVis"/>
1310                   <slice material = "Air"     thickness = "0.033*cm" vis="InvisibleNoDaughters"/>          
1311             </layer>
1312 
1313             <layer repeat="32">     <comment>  0.625*cm </comment>
1314                   <slice material = "TungstenDens25" thickness = "0.5*cm" />
1315                   <slice material = "Air"     thickness = "0.025*cm" vis="InvisibleNoDaughters"/>
1316                   <slice material = "Silicon" thickness = "0.032*cm" sensitive="yes" limits="cal_limits" vis="EcalPlugSensitiveVis"/>
1317                   <slice material = "Copper"  thickness = "0.005*cm" vis="EcalAbsorberVis"/>
1318                   <slice material = "Kapton"  thickness = "0.030*cm" vis="EcalAbsorberVis"/>
1319                   <slice material = "Air"     thickness = "0.033*cm" vis="InvisibleNoDaughters"/>
1320             </layer>
1321             
1322         </detector>
1323 
1324         <detector id="7" name="EcalEndcap_bwd" 
1325                          type="Lhe_PolyhedraEndcapCalorimeter2" 
1326                          reflect="false" 
1327                          readout="EcalEndcapHits1" 
1328                          vis="EcalPlugVis" 
1329                          calorimeterType="EM_ENDCAP">
1330             <comment>EM Calorimeter Endcaps</comment>
1331             <dimensions numsides="(int) CaloSides" zmin="EcalEndcap_zmin_bwd-3.*cm" rmin="EcalEndcap_rmin" rmax="EcalBarrel_rmax" />
1332 
1333             <layer repeat="32">     <comment>  0.625*cm x 33  = 20.625*cm </comment>
1334                 <slice material = "Air"     thickness = "0.033*cm" vis="InvisibleNoDaughters"/>
1335                 <slice material = "Kapton"  thickness = "0.030*cm" vis="EcalAbsorberVis"/>
1336                 <slice material = "Copper"  thickness = "0.005*cm" vis="EcalAbsorberVis"/>
1337                 <slice material = "Silicon" thickness = "0.032*cm" sensitive = "yes" limits="cal_limits" vis="EcalPlugSensitiveVis"/>
1338                 <slice material = "Air"     thickness = "0.025*cm" vis="InvisibleNoDaughters"/>
1339                 <slice material = "Pb" thickness = "0.5*cm" vis="EcalAbsorberVis"/>
1340             </layer>    
1341 
1342             <layer repeat="52">     <comment>  0.375*cm x 53 = 19.875</comment>
1343                 <slice material = "Air"     thickness = "0.033*cm" vis="InvisibleNoDaughters"/>
1344                 <slice material = "Kapton"  thickness = "0.030*cm" vis="EcalAbsorberVis"/>
1345                 <slice material = "Copper"  thickness = "0.005*cm" vis="EcalAbsorberVis"/>
1346                 <slice material = "Silicon" thickness = "0.032*cm" sensitive = "yes" limits="cal_limits" vis="EcalPlugSensitiveVis"/>
1347                 <slice material = "Air"     thickness = "0.025*cm" vis="InvisibleNoDaughters"/>
1348                 <slice material = "Pb" thickness = "0.25*cm" vis="EcalAbsorberVis"/>
1349             </layer>
1350 
1351             <layer repeat="1">      <comment> 0.1*cm  </comment>
1352                 <slice material = "Air"     thickness = "0.033*cm" vis="InvisibleNoDaughters"/>
1353                 <slice material = "Kapton"  thickness = "0.030*cm" vis="EcalAbsorberVis"/>
1354                 <slice material = "Copper"  thickness = "0.005*cm" vis="EcalAbsorberVis"/>
1355                 <slice material = "Silicon" thickness = "0.032*cm" sensitive = "yes" limits="cal_limits" vis="EcalPlugSensitiveVis"/>
1356             </layer>
1357         </detector>
1358 
1359 <!--HCAL -->
1360         <detector id="8" name="HcalBarrel" 
1361                          type="Lhe_PolyhedraBarrelCalorimeter2" 
1362                          readout="HcalBarrelHits" vis="HcalBarrelVis" 
1363                          calorimeterType="HAD_BARREL" 
1364                          gap="0.*cm" 
1365                          material="Steel235">
1366             <comment>Hadron Calorimeter Barrel</comment>
1367             <dimensions numsides="(int) CaloSides" rmin="HcalBarrel_rmin" z="HcalBarrel_length" z_offset="OffsetZ"/>
1368             <staves vis="HcalBarrelStavesVis"/>
1369             <layer repeat="(int) HcalBarrel_layers">
1370                 <slice material = "Steel235" thickness = "1.00*cm" vis="HcalAbsorberVis"/>
1371                 <slice material = "Polystyrene" thickness = "0.50*cm" sensitive = "yes" limits="cal_limits" vis="HcalBarrelSensorVis"/>
1372                 <slice material = "Air" thickness = "0.15*cm" vis="InvisibleNoDaughters"/>
1373             </layer>
1374         </detector>
1375 
1376         <detector id="9" name="HcalEndcap_fwd" 
1377                          type="Lhe_PolyhedraEndcapCalorimeter2" 
1378                          readout="HcalEndcapHits0" 
1379                          reflect="false" 
1380                          vis="HcalEndcapVis" 
1381                          calorimeterType="HAD_ENDCAP">
1382             <comment>Hadron Calorimeter Endcaps</comment>
1383             <staves vis="HcalEndcapStavesVis"/>
1384             <dimensions numsides="(int) CaloSides" zmin="EcalEndcap_zmin_fwd" rmin="HcalBarrel_rmin"  rmax="HcalEndcap_rmax" />
1385             <layer repeat="(int) HcalEndcap_fwd_layers">
1386                 <slice material = "Steel235" thickness = "1.00*cm" vis="HcalAbsorberVis"/>
1387                 <slice material = "Polystyrene" thickness = "0.50*cm" sensitive = "yes" limits="cal_limits" vis="HcalSensorVis"/>
1388                 <slice material = "Air" thickness = "0.15*cm" vis="InvisibleNoDaughters"/>
1389             </layer>
1390         </detector>
1391 
1392         <detector id="10" name="HcalEndcap_bwd" 
1393                            type="Lhe_PolyhedraEndcapCalorimeter2" 
1394                            readout="HcalEndcapHits1" 
1395                            reflect="false" 
1396                            vis="HcalEndcapVis" 
1397                            calorimeterType="HAD_ENDCAP">
1398             <staves vis="HcalEndcapStavesVis"/>
1399             <comment>Hadron Calorimeter Endcaps</comment>
1400             <dimensions numsides="(int) CaloSides" zmin="EcalBarrel_zmin-HcalEndcap_thickness_bwd-3.*cm" rmin="HcalBarrel_rmin"  rmax="HcalEndcap_rmax" />
1401             <layer repeat="(int) HcalEndcap_bwd_layers">
1402                 <slice material = "Steel235" thickness = "1.00*cm" vis="HcalAbsorberVis"/>
1403                 <slice material = "Polystyrene" thickness = "0.50*cm" sensitive = "yes" limits="cal_limits" vis="HcalSensorVis"/>
1404                 <slice material = "Air" thickness = "0.15*cm" vis="InvisibleNoDaughters"/>
1405             </layer>
1406         </detector>
1407 
1408         <detector id="11" name="HcalPlug_fwd" 
1409                           type="Lhe_PolyhedraEndcapCalorimeter2" 
1410                           readout="HcalPlugHits01" 
1411                           reflect="false" 
1412                           vis="HcalPlugVis">
1413             <comment>Hadron Calorimeter Plug</comment>
1414             <dimensions numsides="(int) CaloSides" zmin="EcalEndcap_zmax_fwd+2.*cm" rmin="VertexBarrel_r2" rmax="SolenoidBarrelConductorInnerRadius1-10.*cm" />
1415             <layer repeat="(int) HcalPlug_fwd_layers">
1416                 <slice material = "TungstenDens24" thickness = "1.0*cm" vis="HcalAbsorberVis"/>
1417                 <slice material = "Silicon" thickness = "0.032*cm" sensitive = "yes" limits="cal_limits" vis="HcalSensorVis"/>
1418                 <slice material = "Copper"  thickness = "0.005*cm" vis="HcalAbsorberVis"/>
1419                 <slice material = "Kapton"  thickness = "0.030*cm" vis="HcalAbsorberVis"/>
1420                 <slice material = "Air"     thickness = "0.033*cm" vis="InvisibleNoDaughters"/>
1421             </layer>
1422         </detector>
1423 
1424         <detector id="13" name="HcalPlug_bwd" 
1425                           type="Lhe_PolyhedraEndcapCalorimeter2" 
1426                           readout="HcalPlugHits11" 
1427                           reflect="false" 
1428                           vis="HcalPlugVis">
1429             <comment>Hadron Calorimeter Plug</comment>
1430             <dimensions numsides="(int) CaloSides" zmin="HcalPlug_zmin_bwd-4.*cm" rmin="VertexBarrel_r2" rmax="SolenoidBarrelConductorInnerRadius1-10.*cm" />
1431             <layer repeat="(int) HcalPlug_bwd_layers">
1432                 <slice material = "Cu" thickness = "1.5*cm" vis="HcalAbsorberVis"/>
1433                 <slice material = "Silicon" thickness = "0.032*cm" sensitive = "yes" limits="cal_limits" vis="HcalSensorVis"/>
1434                 <slice material = "Copper"  thickness = "0.005*cm" vis="HcalAbsorberVis"/>
1435                 <slice material = "Kapton"  thickness = "0.030*cm" vis="HcalAbsorberVis"/>
1436                 <slice material = "Air"     thickness = "0.033*cm" vis="InvisibleNoDaughters"/>
1437             </layer>
1438         </detector>
1439 
1440 <!-- Muon -->
1441          <detector id="15" name="MuonBarrel" 
1442                            type="Lhe_PolyhedraBarrelCalorimeter2" 
1443                            readout="MuonBarrelHits" 
1444                            reflect="false" 
1445                            vis="MuonBarrelVis" 
1446                            calorimeterType="MUON_BARREL" 
1447                            gap="0.*cm" 
1448                            material="Steel235">
1449             <comment>Muon Calorimeter Barrel</comment>
1450             <dimensions numsides="(int) MuonSides" rmin="((SolenoidBarrelOuterRadius2) / ( cos(pi/CaloSides) ) )" z="MuonBarrel_length" z_offset="OffsetZ*1.2"/>
1451             <staves vis="MuonBarrelStavesVis"/>
1452             <comment> Start with an active layer, followed by a thin 5.0cm absorber layer. The second active layer is followed by a thick 20.0cm steel layer to take the forces. </comment>
1453             <layer repeat="1" vis="MuonBarrelLayerVis">
1454                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1455                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1456                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1457                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes" vis="MuonBarrelSensorVis"/>
1458                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1459                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1460                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1461                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1462                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1463                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1464                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes" vis="MuonBarrelSensorVis"/>
1465                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1466                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1467                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1468                 <slice material="Air" thickness="1.0*cm" vis="InvisibleNoDaughters"/>
1469                 <slice material="Iron" thickness="5.0*cm" vis="MuonBarrelAbsorberVis"/>
1470            </layer>
1471            <layer repeat="1" vis="MuonBarrelLayerVis">
1472                 <slice material="Aluminum" thickness="0.1*cm" />
1473                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1474                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1475                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes" vis="MuonBarrelSensorVis"/>
1476                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1477                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1478                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1479                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1480                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1481                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1482                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes" vis="MuonBarrelSensorVis"/>
1483                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1484                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1485                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1486                 <slice material="Air" thickness="1.0*cm" vis="InvisibleNoDaughters"/>
1487                 <slice material="Iron" thickness="20.0*cm" vis="MuonBarrelAbsorberVis"/>
1488             </layer>
1489             <layer repeat="(int) MuonBarrel_layers" vis="MuonBarrelLayerVis">
1490                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1491                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1492                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1493                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes" vis="MuonBarrelSensorVis"/>
1494                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1495                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1496                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1497                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1498                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1499                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1500                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes" vis="MuonBarrelSensorVis"/>
1501                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1502                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1503                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1504                 <slice material="Air" thickness="1.0*cm" vis="InvisibleNoDaughters"/>
1505                 <slice material="Iron" thickness="10.0*cm" vis="MuonBarrelAbsorberVis"/>
1506             </layer>
1507             <comment> The last Iron layer is again 20.0cm to take the forces. </comment>
1508             <layer repeat="1" vis="MuonBarrelLayerVis">
1509                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1510                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1511                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1512                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes" vis="MuonBarrelSensorVis"/>
1513                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1514                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1515                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1516                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1517                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1518                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1519                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes" vis="MuonBarrelSensorVis"/>
1520                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1521                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1522                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1523                 <slice material="Air" thickness="1.0*cm" vis="InvisibleNoDaughters"/>
1524                 <slice material="Iron" thickness="20.0*cm" vis="MuonBarrelAbsorberVis"/>
1525             </layer>
1526         </detector>
1527 
1528         <detector id="16" name="MuonEndcap_fwd1" 
1529                           type="Lhe_PolyhedraEndcapCalorimeter2" 
1530                           readout="MuonEndcapHits01" 
1531                           reflect="false" 
1532                           vis="MuonEndcapVis" 
1533                           calorimeterType="MUON_ENDCAP">
1534             <comment>Muon Calorimeter Endcaps</comment>
1535            <dimensions numsides="(int) MuonSides" zmin="MuonEndcap_zmin_fwd" rmin="VertexBarrel_r3+5*cm" rmax="MuonEndcap_rmax0" />
1536             <layer repeat="(int) MuonEndcap_layers" vis="MuonEndcapLayerVis">
1537                 <slice material="Iron" thickness="10.0*cm"  vis="MuonEndcapAbsorberVis"/>
1538                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1539                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1540                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1541                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes"  vis="MuonEndcapSensorVis"/>
1542                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1543                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1544                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1545                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1546                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1547                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1548                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes"  vis="MuonEndcapSensorVis"/>
1549                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1550                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1551                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1552                 <slice material="Air" thickness="1.0*cm" vis="InvisibleNoDaughters"/>
1553             </layer>    <comment> layer thickness = 10+4cm </comment>
1554         </detector>
1555 
1556         <detector id="17" name="MuonEndcap_fwd2" 
1557                           type="Lhe_PolyhedraEndcapCalorimeter2" 
1558                           readout="MuonEndcapHits02" 
1559                           reflect="fasle" 
1560                           vis="MuonEndcapVis" 
1561                           calorimeterType="MUON_ENDCAP">
1562             <comment>Muon Calorimeter Endcaps</comment>
1563             <dimensions numsides="(int) MuonSides" zmin="MuonEndcap_zmin_fwd" rmin="HcalBarrel_rmin" rmax="MuonEndcap_rmax1" />
1564             <layer repeat="(int) MuonEndcap_layers" vis="MuonEndcapLayerVis">
1565                 <slice material="Iron" thickness="10.0*cm"  vis="MuonEndcapAbsorberVis"/>
1566                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1567                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1568                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1569                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes"  vis="MuonEndcapSensorVis"/>
1570                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1571                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1572                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1573                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1574                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1575                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1576                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes"  vis="MuonEndcapSensorVis"/>
1577                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1578                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1579                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1580                 <slice material="Air" thickness="1.0*cm" vis="InvisibleNoDaughters"/>>
1581             </layer>
1582         </detector>
1583 
1584         <detector id="18" name="MuonEndcap_bwd1" 
1585                           type="Lhe_PolyhedraEndcapCalorimeter2" 
1586                           readout="MuonEndcapHits11" 
1587                           reflect="false" 
1588                           vis="MuonEndcapVis" 
1589                           calorimeterType="MUON_ENDCAP">
1590             <comment>Muon Calorimeter Endcaps</comment>
1591             <dimensions numsides="(int) MuonSides" zmin="MuonEndcap_zmin_bwd+14*cm" rmin="VertexBarrel_r3+5*cm" rmax="MuonEndcap_rmax0" />
1592             <layer repeat="(int) MuonEndcap_layers" vis="MuonEndcapLayerVis">
1593                 <slice material="Air" thickness="1.0*cm" vis="InvisibleNoDaughters"/>
1594                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1595                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1596                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1597                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes"  vis="MuonEndcapSensorVis"/>
1598                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1599                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1600                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1601                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1602                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1603                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1604                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes"  vis="MuonEndcapSensorVis"/>
1605                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1606                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1607                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1608                 <slice material="Iron" thickness="10.0*cm"  vis="MuonEndcapAbsorberVis"/>
1609             </layer>
1610         </detector>
1611 
1612         <detector id="19" name="MuonEndcap_bwd2" 
1613                           type="Lhe_PolyhedraEndcapCalorimeter2" 
1614                           readout="MuonEndcapHits12" 
1615                           reflect="false" 
1616                           vis="MuonEndcapVis" 
1617                           calorimeterType="MUON_ENDCAP">
1618             <comment>Muon Calorimeter Endcaps</comment>
1619             <dimensions numsides="(int) MuonSides" zmin="MuonEndcap_zmin_bwd+14.*cm" rmin="HcalBarrel_rmin" rmax="MuonEndcap_rmax1" />
1620             <layer repeat="(int) MuonEndcap_layers" vis="MuonEndcapLayerVis">
1621                 <slice material="Air" thickness="1.0*cm" vis="InvisibleNoDaughters"/>
1622                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1623                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1624                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1625                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes"  vis="MuonEndcapSensorVis"/>
1626                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1627                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1628                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1629                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1630                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1631                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1632                 <slice material="RPCGasDefault" thickness="0.2*cm" sensitive="yes"  vis="MuonEndcapSensorVis"/>
1633                 <slice material="PyrexGlass" thickness="0.2*cm" vis="MuonEndcapAbsorberVis"/>
1634                 <slice material="Air" thickness="0.35*cm" vis="InvisibleNoDaughters"/>
1635                 <slice material="Aluminum" thickness="0.1*cm" vis="MuonEndcapAbsorberVis"/>
1636                 <slice material="Iron" thickness="10.0*cm"  vis="MuonEndcapAbsorberVis"/>
1637             </layer>
1638         </detector>        
1639  
1640 <!-- Beampipe circ-elliptical - SR fan
1641           
1642        <comment> Beampipe </comment>
1643        <comment> Central Be Beampipe</comment>
1644        <detector name="Beampipe" type="Lhe_BeamPipe_Central" insideTrackingVolume="true"  vis="BeamPipeVis" z_offset="OffsetZ*2." >
1645        <material name="Beryllium"/>
1646         <zplane rmin="CentralBeamPipe_rmin" rmax="CentralEllBeamPipe_rmax" thickness="CentralBeamPipe_thickness" z="SolenoidCoilOuterZ1/1.4" />
1647        </detector>
1648    
1649       <comment>Vacuum inside beampipe</comment>
1650        <detector name="BeamPipeVacuum" type="Lhe_BeamPipe_Central" insideTrackingVolume="true" vis="InvisibleNoDaughters" z_offset="OffsetZ*2.">
1651        <material name="Vacuum"/>
1652             <zplane rmin="0.*cm" rmax="CentralBeamPipe_rmin" thickness="CentralBeamPipe_rmin" z="SolenoidCoilOuterZ1/1.4" />
1653        </detector>
1654 -->
1655 
1656 <!-- circular beam pipe  for optimal acceptance simulation -->
1657 
1658          <comment>Beampipe - has to be modified - circular-elliptical</comment>
1659          <detector name="Beampipe" 
1660                    type="Lhe_PolyconeSupport" 
1661                    insideTrackingVolume="true"  
1662                    z_offset="OffsetZ" 
1663                    vis="BeamPipeVis">
1664            <comment>Central Be Beampipe</comment>
1665             <material name="Beryllium"/>
1666             <zplane rmin="CentralBeamPipe_rmin" rmax="CentralBeamPipe_rmax" z="-CentralBeamPipe_zmax"/>
1667             <zplane rmin="CentralBeamPipe_rmin" rmax="CentralBeamPipe_rmax" z="CentralBeamPipe_zmax" />
1668         </detector>
1669 
1670         <detector name="ForwardVacuum" type="Lhe_PolyconeSupport" insideTrackingVolume="false" vis="InvisibleNoDaughters">
1671             <material name="Vacuum"/>
1672             <zplane rmin="0.*cm"
1673                     rmax="CentralBeamPipe_rmin"  
1674                     z="EcalEndcap_zmin_fwd + 1.*cm" />
1675             <zplane rmin="0.*cm"
1676                     rmax="CentralBeamPipe_rmin"
1677                     z="EcalEndcap_zmin_bwd - 1.*cm" />
1678         </detector>
1679 
1680         <detector name="BackwardVacuum" type="Lhe_PolyconeSupport" insideTrackingVolume="false" vis="InvisibleNoDaughters">
1681             <material name="Vacuum"/>
1682             <zplane rmin="0.*cm"
1683                     rmax="CentralBeamPipe_rmax - BeamPipe_thickness"
1684                     z="- (tracking_region_zmax + 0.01*cm)" />
1685             <zplane rmin="0.*cm"
1686                     rmax="CentralBeamPipe_rmax - BeamPipe_thickness"
1687                     z="- BeamPipe_zmax" />
1688             <zplane rmin="0.*cm"
1689                     rmax="LumiCal_rmin - 2*BeamPipe_endThickness"
1690                     z="- (LumiCal_zmin - 2*BeamPipe_endThickness)" />
1691             <zplane rmin="0.*cm"
1692                     rmax="LumiCal_rmin - 2*BeamPipe_endThickness"
1693                     z="- (LumiCal_zmin - BeamPipe_endThickness)" />
1694             <zplane rmin="0.*cm"
1695                     rmax="LumiCal_rmin - 2*BeamPipe_endThickness"
1696                     z="- (ForwardMask_zmin - BeamPipe_endThickness)" />
1697         </detector>
1698 
1699 <!--Solenoid -->
1700       <comment>Solenoid/Dipole</comment>
1701 
1702        <detector name="SolenoidCoilBarrel1" 
1703                  type="Lhe_MultiLayerTracker" 
1704                  insideTrackingVolume="false">
1705 
1706           <layer id="1" 
1707             z_offset="OffsetZ*1.2"  
1708             inner_r="SolenoidBarrelInnerRadius1" 
1709             outer_z="MuonBarrel_length*0.5"  
1710             vis="SolenoidBarrelSupportLayerVis">
1711                 <slice material="Aluminum" thickness="SolenoidBarrelInnerCryostatThickness1" />
1712                 <slice material="Vacuum"  thickness="SolenoidBarrelInnerAirgapThickness1" />
1713                 <slice material="Aluminum" thickness="SolenoidBarrelInnerCryostatThickness1" />
1714           </layer>
1715 
1716           <layer id="2" 
1717             z_offset="OffsetZ"
1718             inner_r="SolenoidBarrelConductorInnerRadius1+2*cm" 
1719             outer_z="SolenoidCoilOuterZ1" 
1720             vis="SolenoidBarrelLayerVis">
1721                 <slice material="Aluminum" thickness="SolenoidBarrelAlConductorThickness1" />
1722                 <slice material="Aluminum" thickness="SolenoidBarrelQuenchbackThickness1" />
1723           </layer>
1724           <layer id="3" 
1725             z_offset="OffsetZ*1.2"
1726             inner_r="SolenoidBarrelOuterCryostatInnerRadius1" 
1727             outer_z="MuonBarrel_length*0.5" 
1728             vis="SolenoidDipoleBarrelLayerVis">
1729                 <slice material="Aluminum" thickness="DipoleBarrelAlConductorThickness" />
1730                 <slice material="Aluminum" thickness="SolenoidBarrelInnerCryostatThickness1" />
1731                 <slice material="Vacuum"   thickness="SolenoidBarrelOuterAirgapThickness1" />
1732                 <slice material="Aluminum" thickness="SolenoidBarrelOuterCryostatThickness1" />
1733            </layer>
1734  
1735         </detector>
1736 
1737        <detector name="SolenoidCoilBarrel2" type="Lhe_MultiLayerTracker" insideTrackingVolume="true">
1738            <layer id="1" 
1739              inner_r="SolenoidBarrelInnerRadius2" 
1740              z_offset="OffsetZ*1.15" 
1741              outer_z="MuonBarrel_length*0.5"  
1742              vis="SolenoidBarrelLayerVis">
1743                 <slice material="Steel235" thickness="SolenoidBarrelInnerCryostatThickness2" />
1744                 <slice material="Vacuum"  thickness="SolenoidBarrelInnerAirgapThickness2" />
1745             </layer>
1746             <layer id="2" 
1747               inner_r="SolenoidBarrelConductorInnerRadius2" 
1748               z_offset="OffsetZ*1.15"  
1749               outer_z="MuonBarrel_length*0.5" 
1750               vis="SolenoidBarrelLayerVis">
1751                 <slice material="Aluminum" thickness="SolenoidBarrelAlConductorThickness2" />
1752                 <slice material="Aluminum" thickness="SolenoidBarrelQuenchbackThickness2" />
1753             </layer>
1754 
1755             <layer id="3" 
1756               inner_r="SolenoidBarrelOuterCryostatInnerRadius2" 
1757               z_offset="OffsetZ*1.15" 
1758               outer_z="MuonBarrel_length*0.5" 
1759               vis="SolenoidBarrelLayerVis">
1760                 <slice material="Vacuum"   thickness="SolenoidBarrelOuterAirgapThickness2" />
1761                 <slice material="Steel235" thickness="SolenoidBarrelOuterCryostatThickness2" />
1762             </layer>
1763         </detector>
1764 
1765     </detectors>
1766 
1767     <readouts>
1768         <readout name="SiVertexBarrelHits">
1769             <id>system:0,barrel:3,layer:4,module:14,sensor:2,side:32:-2,strip:24</id>
1770         </readout>
1771         <readout name="SiTrackerBarrelHits">
1772             <id>system:0,barrel:3,layer:5,module:14,sensor:2,side:32:-2,strip:20</id>
1773         </readout>
1774         <readout name="SiTrackerForwardHits">
1775             <id>system:0,barrel:3,layer:7,module:12,sensor:1,side:32:-2,strip:28</id>
1776         </readout>        
1777         <readout name="SiTrackerBackwardHits">
1778             <id>system:0,barrel:3,layer:7,module:12,sensor:1,side:32:-2,strip:28</id>
1779         </readout>
1780         <readout name="EcalBarrelHits">
1781             <segmentation type="CartesianGridXY" grid_size_x="3.5*cm" grid_size_y="3.5*cm" />
1782             <id>system:0,barrel:3,module:6,layer:10,slice:5,x:32:-16,y:-16</id>
1783         </readout>
1784         <readout name="EcalEndcapHits0">
1785             <segmentation type="CartesianGridXY" grid_size_x="3.5*cm" grid_size_y="3.5*cm" />
1786             <id>system:0,barrel:3,module:4,layer:8,slice:5,x:32:-16,y:-16</id>
1787         </readout>
1788         <readout name="EcalEndcapHits1">
1789             <segmentation type="CartesianGridXY" grid_size_x="3.5*cm" grid_size_y="3.5*cm" />
1790             <id>system:0,barrel:3,module:4,layer:8,slice:5,x:32:-16,y:-16</id>
1791         </readout>
1792         <readout name="HcalBarrelHits">
1793             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1794             <id>system:0,barrel:3,module:6,layer:8,slice:5,x:32:-16,y:-16</id>
1795         </readout>
1796         <readout name="HcalEndcapHits0">
1797             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1798             <id>system:0,barrel:3,module:6,layer:10,slice:5,x:32:-16,y:-16</id>
1799         </readout>
1800         <readout name="HcalEndcapHits1">
1801             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1802             <id>system:0,barrel:3,module:6,layer:10,slice:5,x:32:-16,y:-16</id>
1803         </readout>
1804         <readout name="HcalPlugHits01">
1805             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1806             <id>system:0,barrel:3,module:6,layer:10,slice:5,x:32:-16,y:-16</id>
1807         </readout>
1808         <readout name="HcalPlugHits02">
1809             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1810             <id>system:0,barrel:3,module:6,layer:10,slice:5,x:32:-16,y:-16</id>
1811         </readout>
1812         <readout name="HcalPlugHits11">
1813             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1814             <id>system:0,barrel:3,module:4,layer:8,slice:5,x:32:-16,y:-16</id>
1815         </readout>
1816         <readout name="HcalPlugHits12">
1817             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1818             <id>system:0,barrel:3,module:4,layer:8,slice:5,x:32:-16,y:-16</id>
1819         </readout>
1820         <readout name="MuonBarrelHits">
1821             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1822             <id>system:0,barrel:3,module:4,layer:8,slice:5,x:32:-16,y:-16</id>
1823         </readout>
1824         <readout name="MuonEndcapHits01">
1825             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1826             <id>system:0,barrel:3,module:4,layer:8,slice:5,x:32:-16,y:-16</id>
1827         </readout>
1828         <readout name="MuonEndcapHits02">
1829             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1830             <id>system:0,barrel:3,module:4,layer:8,slice:5,x:32:-16,y:-16</id>
1831         </readout>
1832         <readout name="MuonEndcapHits11">
1833             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1834             <id>system:0,barrel:3,module:4,layer:8,slice:5,x:32:-16,y:-16</id>
1835         </readout>
1836         <readout name="MuonEndcapHits12">
1837             <segmentation type="CartesianGridXY" grid_size_x="3.0*cm" grid_size_y="3.0*cm" />
1838             <id>system:0,barrel:3,module:4,layer:8,slice:5,x:32:-16,y:-16</id>
1839         </readout>
1840      </readouts>
1841 
1842 <!--  
1843         <plugin name="TestSurfaces"> <argument value="SiTrackerBackward"/> </plugin>
1844 -->
1845 <!-- 
1846         <plugins>
1847 
1848           <plugin name="Lhe_SiTrackerBarrelSurfacePlugin"> 
1849               <argument value="SiVertexBarrel"/> <argument value="dimension=1"/> 
1850           </plugin>
1851  
1852           <plugin name="Lhe_SurfaceExamplePlugin">
1853              <argument value="SiVertexBarrel"/>
1854              <argument value="aa=1*mm"/>
1855              <argument value="bb=2*cm"/>
1856              <argument value="cc=3*m"/>
1857           </plugin>
1858 
1859           <plugin name="Lhe_SiTrackerBarrelSurfacePlugin"> 
1860               <argument value="SiTrackerBarrel"/> <argument value="dimension=1"/> </plugin>
1861 
1862           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="SiTrackerForward"/> </plugin>
1863           <plugin name="Lhe_SiTrackerEndcapSurfacePlugin"> <argument value="SiTrackerForward"/> </plugin>
1864 
1865           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="SiTrackerBackward"/> </plugin>
1866           <plugin name="Lhe_SiTrackerEndcapSurfacePlugin"> <argument value="SiTrackerBackward"/> </plugin>
1867 
1868           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="EcalBarrel"/> </plugin>
1869           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="EcalBarrel"/> </plugin>
1870           <plugin name="Lhe_SiTrackerBarrelSurfacePlugin"> 
1871               <argument value="EcalBarrel"/> <argument value="dimension=1"/> </plugin>
1872 
1873           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="EcalEndcap_fwd"/> </plugin>
1874           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="EcalEndcap_fwd"/> </plugin>
1875           <plugin name="Lhe_PolyhedraEndcapCalorimeterSurfacePlugin"> <argument value="EcalEndcap_fwd"/> </plugin>
1876 
1877           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="EcalEndcap_bwd"/> </plugin>
1878           <plugin name="Lhe_LayeringExtensionPlugin">    <argument value="EcalEndcap_bwd"/> </plugin>
1879           <plugin name="Lhe_PolyhedraEndcapCalorimeterSurfacePlugin"> <argument value="EcalEndcap_bwd"/> </plugin>
1880 
1881           <plugin name="Lhe_SiTrackerBarrelSurfacePlugin"> 
1882               <argument value="HcalBarrel"/> <argument value="dimension=1"/> </plugin>
1883 
1884           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="HcalEndcap_fwd"/> </plugin>
1885           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="HcalEndcap_fwd"/> </plugin>
1886           <plugin name="Lhe_PolyhedraEndcapCalorimeterSurfacePlugin"> <argument value="HcalEndcap_fwd"/> </plugin>
1887 
1888           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="HcalEndcap_bwd"/> </plugin>
1889           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="HcalEndcap_bwd"/> </plugin>
1890           <plugin name="Lhe_PolyhedraEndcapCalorimeterSurfacePlugin"> <argument value="HcalEndcap_bwd"/> </plugin>
1891 
1892           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="HcalPlug_fwd"/> </plugin>
1893           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="HcalPlug_fwd"/> </plugin>
1894           <plugin name="Lhe_PolyhedraEndcapCalorimeterSurfacePlugin"> <argument value="HcalPlug_fwd"/> </plugin>         
1895 
1896           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="HcalPlug_bwd"/> </plugin>
1897           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="HcalPlug_bwd"/> </plugin>
1898           <plugin name="Lhe_PolyhedraEndcapCalorimeterSurfacePlugin"> <argument value="HcalPlug_bwd"/> </plugin>
1899 
1900           <plugin name="Lhe_SiTrackerBarrelSurfacePlugin"> 
1901               <argument value="MuonBarrel"/> <argument value="dimension=1"/> </plugin>
1902 
1903           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="MuonEndcap_fwd1"/> </plugin>
1904           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="MuonEndcap_fwd1"/> </plugin>
1905           <plugin name="Lhe_PolyhedraEndcapCalorimeterSurfacePlugin"> <argument value="MuonEndcap_fwd1"/> </plugin>
1906 
1907           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="MuonEndcap_fwd2"/> </plugin>
1908           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="MuonEndcap_fwd2"/> </plugin>
1909           <plugin name="Lhe_PolyhedraEndcapCalorimeterSurfacePlugin"> <argument value="MuonEndcap_fwd2"/> </plugin>
1910 
1911           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="MuonEndcap_bwd1"/> </plugin>
1912           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="MuonEndcap_bwd1"/> </plugin>
1913           <plugin name="Lhe_PolyhedraEndcapCalorimeterSurfacePlugin"> <argument value="MuonEndcap_bwd1"/> </plugin>
1914 
1915           <plugin name="Lhe_SubdetectorExtensionPlugin"> <argument value="MuonEndcap_bwd2"/> </plugin>
1916           <plugin name="Lhe_LayeringExtensionPlugin"> <argument value="MuonEndcap_bwd2"/> </plugin>
1917           <plugin name="Lhe_PolyhedraEndcapCalorimeterSurfacePlugin"> <argument value="MuonEndcap_bwd2"/> </plugin>
1918 
1919         </plugins>
1920 -->
1921 
1922     <fields>
1923         <field name="GlobalSolenoid1" type="solenoid"
1924           inner_field="3.5*tesla"
1925           outer_field="-1.5*tesla"
1926           zmax="SolenoidCoilOuterZ1"
1927           outer_radius="SolenoidalFieldRadius1">
1928         </field>
1929         <field name="GlobalSolenoid2" type="solenoid"
1930           inner_field="-1.5*tesla"
1931           outer_field="0.5*tesla"
1932           zmax="SolenoidCoilOuterZ2"
1933           outer_radius="world_side">
1934         </field>
1935        <field name="MachineDipole+" type="DipoleMagnet"
1936          rmax="DipoleBarrelAlConductorRadius"
1937          zmin="1*cm"
1938          zmax="SolenoidCoilOuterZ1">
1939         <dipole_coeff>0.4*tesla</dipole_coeff>
1940          <dipole_coeff>0.1*tesla/pow(cm,1)</dipole_coeff>
1941          <dipole_coeff>0.01*tesla/pow(cm,2)</dipole_coeff>
1942        </field>
1943        <field name="MachineDipole-" type="DipoleMagnet"
1944          rmax="DipoleBarrelAlConductorRadius"
1945          zmin="-SolenoidCoilOuterZ1"
1946          zmax="-1*cm">
1947         <dipole_coeff>-0.4*tesla</dipole_coeff>
1948          <dipole_coeff>0.1*tesla/pow(cm,1)</dipole_coeff>
1949          <dipole_coeff>0.01*tesla/pow(cm,2)</dipole_coeff>
1950        </field>
1951     </fields>
1952 
1953 </lccdd>