Back to home page

EIC code displayed by LXR

 
 

    


Warning, /epic/compact/far_forward/ion_beamline.xml is written in an unsupported language. File is not indexed.

0001 <!-- SPDX-License-Identifier: LGPL-3.0-or-later -->
0002 <!-- Copyright (C) 2022 Sylvester Joosten, Alex Jentsch, Wouter Deconinck, Whitney Armstrong, Andrii Natochii -->
0003 
0004 <lccdd>
0005   <define>
0006     <!-- B0pF Yoke Center Position -->
0007     <constant name="B0PF_Yoke_Center_posX" value="-3.40264*cm"/>
0008     <constant name="B0PF_Yoke_Center_posY" value="0*cm"/>
0009     <constant name="B0PF_Yoke_Center_posZ" value="640.648*cm"/>
0010     <constant name="B0PF_Yoke_Rotation_Angle" value="0*rad"/>
0011     <!-- B0ApF Yoke Center Position -->
0012     <constant name="B0APF_Yoke_Center_posX" value="-21.3736*cm"/>
0013     <constant name="B0APF_Yoke_Center_posY" value="0*cm"/>
0014     <constant name="B0APF_Yoke_Center_posZ" value="820.648*cm"/>
0015     <constant name="B0APF_Yoke_Rotation_Angle" value="-0.0219093*rad"/>
0016     <!-- Q1ApF Yoke Center Position -->
0017     <constant name="Q1APF_Yoke_Center_posX" value="-25.8207*cm"/>
0018     <constant name="Q1APF_Yoke_Center_posY" value="0*cm"/>
0019     <constant name="Q1APF_Yoke_Center_posZ" value="963.648*cm"/>
0020     <constant name="Q1APF_Yoke_Rotation_Angle" value="-0.0208752*rad"/>
0021     <!-- Q1BpF Yoke Center Position -->
0022     <constant name="Q1BPF_Yoke_Center_posX" value="-31.3088*cm"/>
0023     <constant name="Q1BPF_Yoke_Center_posY" value="0*cm"/>
0024     <constant name="Q1BPF_Yoke_Center_posZ" value="1157.15*cm"/>
0025     <constant name="Q1BPF_Yoke_Rotation_Angle" value="-0.0135542*rad"/>
0026     <!-- Q2pF Yoke Center Position -->
0027     <constant name="Q2PF_Yoke_Center_posX" value="-40.6057*cm"/>
0028     <constant name="Q2PF_Yoke_Center_posY" value="0*cm"/>
0029     <constant name="Q2PF_Yoke_Center_posZ" value="1467.41*cm"/>
0030     <constant name="Q2PF_Yoke_Rotation_Angle" value="-0.0138003*rad"/>
0031     <!-- B1pF Yoke Center Position -->
0032     <constant name="B1PF_Yoke_Center_posX" value="-51.4896*cm"/>
0033     <constant name="B1PF_Yoke_Center_posY" value="0*cm"/>
0034     <constant name="B1PF_Yoke_Center_posZ" value="1857.67*cm"/>
0035     <constant name="B1PF_Yoke_Rotation_Angle" value="-0.0277921*rad"/>
0036     <!-- B1ApF Yoke Center Position -->
0037     <constant name="B1APF_Yoke_Center_posX" value="-61.5849*cm"/>
0038     <constant name="B1APF_Yoke_Center_posY" value="0*cm"/>
0039     <constant name="B1APF_Yoke_Center_posZ" value="2132.65*cm"/>
0040     <constant name="B1APF_Yoke_Rotation_Angle" value="-0.021*rad"/>
0041     <constant name="B1APF_Yoke_Center_offsetY" value="16.5*cm"/>
0042   </define>
0043 
0044   <comment>
0045         Instructions on how to obtain magnet element coordinates and dimensions.
0046 
0047         The reference STEP file, provided by the Superconducting Magnet Division (SMD), is available on SharePoint:
0048         EIC Public Sharing Docs → Documents → Experimental Program → ePIC → Engineering → STR-Files → IR6_CRYOSTAT_2200m_top_4-24-2025.stp
0049         [https://brookhavenlab.sharepoint.com/:u:/s/EICPublicSharingDocs/EdR44ODny1BEmMTTks61CCwBe8tJYMc0iWkPIYY_EjYEuw?e=2XLUEt]
0050 
0051        -The file can be opened using Onshape (www.onshape.com), a free, cloud-based CAD platform for 3D modeling and mechanical design.
0052        -Both the forward (FWD) and backward (BWD/rear) cryostats contain multiple sub-cryostats, primarily associated with hadron magnets.
0053        -The main components are the magnet yokes; most other elements—such as coils, support tubes, yoke shielding, heat shielding, and vessels—are positioned relative to these yokes.
0054        -Since the STEP file provides coordinates in the RHIC coordinate system, a rotation and translation must be applied before using them in the geometry XML files. See page 19 of the following PDF from the IR Meeting on May 30, 2025:
0055         [https://brookhavenlab.sharepoint.com/:b:/r/sites/eRHIC/bnl%26slac/EIC%20IR%20Meeting%20Minutes%20%20Documents/IR-Meeting/2025/05-30-2025/EIC_CRYO_GEANT4_May2025_NATOCHII_UPDATED.pdf]
0056 
0057         -- Apply a shift of 81 cm (the offset between RHIC and EIC IP6 interaction points).
0058         -- Apply a rotation of 8 mrad to align with the ePIC detector axis.
0059 
0060         Example of how to extract coordinates from Onshape and compute the yoke's position and orientation:
0061 
0062                 TVector3 coord1(-47.389536*cm, 0, -1704.865494*cm); // B1pF yoke endcap — IP side
0063                 TVector3 coord2(-41.351827*cm, 0, -2009.882603*cm); // B1pF yoke endcap — non-IP side
0064                 // Rotate around the Y axis by (π-8e-3)
0065                 double angle = M_PI-8e-3; // π flips the Z-axis; 8e-3 rad aligns with ePIC axis
0066                 coord1.RotateY(angle*rad);
0067                 coord2.RotateY(angle*rad);
0068                 // Compute center
0069                 TVector3 center = 0.5*(coord1+coord2);
0070                 center += TVector3(-81.*cm, 0, 0); // Apply RHIC → EIC IP6 offset
0071                 // Compute rotation angle around Y
0072                 double deltaX = coord2.X()-coord1.X();
0073                 double deltaZ = coord2.Z()-coord1.Z();
0074                 double rotY_angle = atan(deltaX/deltaZ)*rad;
0075                 // Threshold small angles
0076                 if (1e-6 > std::abs(rotY_angle)) {
0077                     rotY_angle = 0;
0078                 }
0079                 // Add 'center' and 'rotY_angle' to the XML file
0080 
0081        -Some barrel elements (e.g., heat shield, vessel) and endplates are described using polygons with two or more Z-planes. Example:
0082 
0083                 <placement x="Q1APF_Yoke_Center_posX" y="Q1APF_Yoke_Center_posY" z="Q1APF_Yoke_Center_posZ" theta="Q1APF_Yoke_Rotation_Angle"/>
0084                 <zplane z="-(160.817560*cm/2.)" rmin="7.114540*cm" rmax="29.21*cm"/>
0085                 <zplane z="-(160.817560*cm/2.+15.246221*cm)" rmin="7.114540*cm" rmax="29.21*cm"/>
0086 
0087         Here, 160.817560 cm is the distance between the inner surfaces of the two Q1ApF endplates (mounted on both ends of the magnet),
0088         and 15.246221 cm is the Z-thickness of the endplate on the IP side (note the minus sign).
0089   </comment>
0090 
0091   <comment>
0092       =====================================
0093       (170-177) Forward Hadron Beamline Magnets (up to B0pf)
0094       =====================================
0095 
0096           =====================================
0097           (180-189) Forward Electron Beamline Magnets
0098           =====================================
0099   </comment>
0100 
0101   <comment>
0102       =====================================
0103       (190-199) Backward Beamline Magnets
0104       =====================================
0105   </comment>
0106   <detectors>
0107     <!-- B0pF magnet -->
0108     <detector id="B0PF_ID" name="B0PF_BeamlineMagnet" type="ip6_CryostatMagnet">
0109       <yoke name="B0PF_Yoke" vis="MagnetVis">
0110         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle"/>
0111         <dimensions rmin="74.*cm/2." rmax="140.*cm/2." half_length="127.*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0112         <cut>
0113           <placement x="11.841*cm" y="-44.1911*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0114           <dimensions rmin="0*cm" rmax="12.7*cm/2." half_length="400.*cm/2."/>
0115           <rotation num="4" start="0*deg" step="90*deg" axis="Z"/>
0116         </cut>
0117         <cut>
0118           <placement x="-11.841*cm" y="-44.1911*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0119           <dimensions rmin="0*cm" rmax="12.7*cm/2." half_length="400.*cm/2."/>
0120           <rotation num="4" start="0*deg" step="90*deg" axis="Z"/>
0121         </cut>
0122       </yoke>
0123       <coil name="B0PF_Quad_Coil" vis="MagnetCoilVis">
0124         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle" phiNum="3" phiStart="90*deg" phiStep="90*deg"/>
0125         <dimensions rmin="32.595820*cm" rmax="34.424620*cm" half_length="127.0*cm/2." sphi="-69.0*deg/2." dphi="69.0*deg"/>
0126       </coil>
0127       <coil name="B0PF_Dipole_Coil" vis="MagnetCoilVis">
0128         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle" phiNum="1" phiStart="180*deg" phiStep="180*deg"/>
0129         <dimensions rmin="35.323780*cm" rmax="35.796*cm" half_length="127.0*cm/2." sphi="-152.0*deg/2." dphi="152.0*deg"/>
0130       </coil>
0131       <coil name="B0PF_SkewQuad_Coil" vis="MagnetCoilVis">
0132         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle" phiNum="3" phiStart="90*deg" phiStep="90*deg"/>
0133         <dimensions rmin="35.796220*cm" rmax="36.047680*cm" half_length="127.0*cm/2." sphi="45*deg-60.0*deg/2." dphi="60.0*deg"/>
0134       </coil>
0135       <coil name="B0PF_SkewDipole_Coil" vis="MagnetCoilVis">
0136         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle" phiNum="1" phiStart="180*deg" phiStep="180*deg"/>
0137         <dimensions rmin="36.047680*cm" rmax="36.329620*cm" half_length="127.0*cm/2." sphi="90*deg-152.0*deg/2." dphi="152.0*deg"/>
0138       </coil>
0139       <tube name="B0PF_InnerSupport_Tube" vis="MagnetSupportTubeVis">
0140         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle"/>
0141         <dimensions rmin="62.793880*cm/2." rmax="65.191640*cm/2." half_length="134.769860*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0142       </tube>
0143       <tube name="B0PF_OuterSupport_Tube" vis="MagnetSupportTubeVis">
0144         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle"/>
0145         <dimensions rmin="69.448680*cm/2." rmax="70.647560*cm/2." half_length="130.81*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0146       </tube>
0147       <endplate name="B0PF_EndPlate_IP" vis="MagnetEndPlateVis">
0148         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle"/>
0149         <zplane z="-(134.9*cm/2.)" rmin="31.396940*cm" rmax="142.539974*cm/2."/>
0150         <zplane z="-(134.9*cm/2.+6.35*cm)" rmin="31.396940*cm" rmax="142.539974*cm/2."/>
0151       </endplate>
0152       <endplate name="B0PF_EndPlate_nonIP" vis="MagnetEndPlateVis">
0153         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle"/>
0154         <zplane z="(134.9*cm/2.)" rmin="31.396940*cm" rmax="142.539974*cm/2."/>
0155         <zplane z="(134.9*cm/2.+6.35*cm)" rmin="31.396940*cm" rmax="142.539974*cm/2."/>
0156       </endplate>
0157       <yokeshield name="B0PF_YoketShield" vis="MagnetEndPlateVis">
0158         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle"/>
0159         <dimensions rmin="140.0*cm/2." rmax="142.54*cm/ 2." half_length="134.8*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0160       </yokeshield>
0161       <heatshieldbarrel name="B0PF_HeatShield_Barrel" vis="MagnetHeatShieldVis">
0162         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle"/>
0163         <dimensions rmin="170.18*cm/2." rmax="171.45*cm/ 2." half_length="174.139860*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0164       </heatshieldbarrel>
0165       <heatshieldend name="B0PF_HeatShield_End_IP" vis="MagnetHeatShieldVis">
0166         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle"/>
0167         <zplane z="-(174.139860*cm/2.)" rmin="29.391*cm" rmax="171.45*cm/2."/>
0168         <zplane z="-(174.139860*cm/2.+0.635*cm)" rmin="29.391*cm" rmax="171.45*cm/2."/>
0169         <add shape="Tube">
0170           <placement x="3.4*cm" y="0*cm" z="-(174.139860*cm/2.+0.635*cm/2.)" theta="0*rad"/>
0171           <dimensions rmin="0*cm" rmax="8.845*cm" half_length="0.635*cm/2."/>
0172         </add>
0173         <add shape="Prism">
0174           <placement x="35.3*cm/2." y="0*cm" z="-(174.139860*cm/2.+0.635*cm/2.)" theta="90*deg"/>
0175           <dimensions pdx1="0.635*cm/2." pdx2="0.635*cm/2." pdy1="16.4*cm/2." pdy2="48.9*cm/2." pdz="35.3*cm/2."/>
0176         </add>
0177         <cut>
0178           <placement x="3.4*cm" y="0*cm" z="-(174.139860*cm/2.+0.635*cm/2.)" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0179           <dimensions rmin="0*cm" rmax="6.827520*cm/2." half_length="200.*cm/2."/>
0180           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0181         </cut>
0182       </heatshieldend>
0183       <heatshieldend name="B0PF_HeatShield_End_nonIP" vis="MagnetHeatShieldVis">
0184         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle"/>
0185         <zplane z="(174.139860*cm/2.)" rmin="0*cm" rmax="171.45*cm/2."/>
0186         <zplane z=" (174.139860*cm/2.+0.635*cm)" rmin="0*cm" rmax="171.45*cm/2."/>
0187         <cut>
0188           <placement x="3.4*cm" y="0*cm" z="(174.139860*cm/2.+0.635*cm/2.)" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0189           <dimensions rmin="0*cm" rmax="9.5*cm/2." half_length="200.*cm/2."/>
0190           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0191         </cut>
0192         <cut>
0193           <placement x="-15.4*cm" y="0*cm" z="(174.139860*cm/2.+0.635*cm/2.)" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0194           <dimensions rmin="0*cm" rmax="7.0*cm/2." half_length="200.*cm/2."/>
0195           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0196         </cut>
0197       </heatshieldend>
0198       <cryobarrel name="B0PF_Cryo_Barrel" vis="MagnetCryoVis">
0199         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ-(132.86*cm/2.+22.54*cm-162.709860*cm/2.)" theta="B0PF_Yoke_Rotation_Angle"/>
0200         <dimensions rmin="180.34*cm/2." rmax="182.88*cm/ 2." half_length="162.709860*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0201       </cryobarrel>
0202       <cryoend name="B0PF_Cryo_End_IP" vis="MagnetCryoVis">
0203         <placement x="B0PF_Yoke_Center_posX" y="B0PF_Yoke_Center_posY" z="B0PF_Yoke_Center_posZ" theta="B0PF_Yoke_Rotation_Angle"/>
0204         <zplane z="-(132.86*cm/2.+22.54*cm)" rmin="27.403501*cm" rmax="182.88*cm/2."/>
0205         <zplane z="-(132.86*cm/2.+22.54* cm+2.54*cm)" rmin="27.403501*cm" rmax="182.88*cm/2."/>
0206         <add shape="Tube">
0207           <placement x="3.4*cm" y="0*cm" z="-(132.86*cm/2.+22.54*cm+2.54*cm/2.)" theta="0*rad"/>
0208           <dimensions rmin="0*cm" rmax="8.845*cm" half_length="2.54*cm/2."/>
0209         </add>
0210         <add shape="Prism">
0211           <placement x="35.3*cm/2." y="0*cm" z="-(132.86*cm/2.+22.54*cm+2.54*cm/2.)" theta="90*deg"/>
0212           <dimensions pdx1="2.54*cm/2." pdx2="2.54*cm/2." pdy1="16.4*cm/2." pdy2="48.9*cm/2." pdz="35.3*cm/2."/>
0213         </add>
0214         <cut>
0215           <placement x="3.4*cm" y="0*cm" z="-(132.86*cm/2.+22.54*cm+2.54*cm/2.)" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0216           <dimensions rmin="0*cm" rmax="6.827520*cm/2." half_length="200.*cm/2."/>
0217           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0218         </cut>
0219       </cryoend>
0220     </detector>
0221 
0222     <!-- B0ApF magnet -->
0223     <detector id="B0APF_ID" name="B0APF_BeamlineMagnet" type="ip6_CryostatMagnet">
0224       <yoke name="B0APF_Yoke" vis="MagnetVis">
0225         <placement x="B0APF_Yoke_Center_posX" y="B0APF_Yoke_Center_posY" z="B0APF_Yoke_Center_posZ" theta="B0APF_Yoke_Rotation_Angle"/>
0226         <dimensions rmin="22.*cm/2." rmax="60.*cm/2." half_length="60.*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0227         <cut>
0228           <placement x="(15.543+(16.858-15.543)/2.+5.2)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.255321*deg" rotZ="0*rad"/>
0229           <dimensions rmin="0*cm" rmax="10.4*cm/2." half_length="400.*cm/2."/>
0230           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0231         </cut>
0232       </yoke>
0233       <coil name="B0APF_Dummy_Coil_In" vis="MagnetCoilVis">
0234         <placement x="B0APF_Yoke_Center_posX" y="B0APF_Yoke_Center_posY" z="B0APF_Yoke_Center_posZ" theta="B0APF_Yoke_Rotation_Angle" phiNum="3" phiStart="90*deg" phiStep="90*deg"/>
0235         <dimensions rmin="11.917680*cm/2." rmax="14.127480*cm/2." half_length="52.379880*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0236       </coil>
0237       <coil name="B0APF_Dummy_Coil_Out" vis="MagnetCoilVis">
0238         <placement x="B0APF_Yoke_Center_posX" y="B0APF_Yoke_Center_posY" z="B0APF_Yoke_Center_posZ" theta="B0APF_Yoke_Rotation_Angle" phiNum="3" phiStart="90*deg" phiStep="90*deg"/>
0239         <dimensions rmin="15.742920*cm/2." rmax="19.405600*cm/2." half_length="52.379880*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0240       </coil>
0241       <tube name="B0APF_InnerSupport_Tube" vis="MagnetSupportTubeVis">
0242         <placement x="B0APF_Yoke_Center_posX" y="B0APF_Yoke_Center_posY" z="B0APF_Yoke_Center_posZ" theta="B0APF_Yoke_Rotation_Angle"/>
0243         <dimensions rmin="10.901680*cm/2." rmax="11.902440*cm/2." half_length="57.459880*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0244       </tube>
0245       <tube name="B0APF_OuterSupport_Tube" vis="MagnetSupportTubeVis">
0246         <placement x="B0APF_Yoke_Center_posX" y="B0APF_Yoke_Center_posY" z="B0APF_Yoke_Center_posZ" theta="B0APF_Yoke_Rotation_Angle"/>
0247         <dimensions rmin="14.726920*cm/2." rmax="15.727680*cm/2." half_length="57.459880*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0248       </tube>
0249       <endplate name="B0APF_EndPlate_IP" vis="MagnetEndPlateVis">
0250         <placement x="B0APF_Yoke_Center_posX" y="B0APF_Yoke_Center_posY" z="B0APF_Yoke_Center_posZ" theta="B0APF_Yoke_Rotation_Angle"/>
0251         <zplane z="-60.*cm/2." rmin="10.957560*cm/2." rmax="53.34*cm/2."/>
0252         <zplane z="-(60.*cm/2.+1.2*cm)" rmin="10.957560*cm/2." rmax="53.34*cm/2."/>
0253         <cut>
0254           <placement x="(15.543+(16.858-15.543)/2.+5.2)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.255321*deg" rotZ="0*rad"/>
0255           <dimensions rmin="0*cm" rmax="5.2*cm" half_length="200.*cm/2."/>
0256           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0257         </cut>
0258       </endplate>
0259       <endplate name="B0APF_EndPlate_nonIP" vis="MagnetEndPlateVis">
0260         <placement x="B0APF_Yoke_Center_posX" y="B0APF_Yoke_Center_posY" z="B0APF_Yoke_Center_posZ" theta="B0APF_Yoke_Rotation_Angle"/>
0261         <zplane z="60.*cm/2." rmin="10.957560*cm/2." rmax="53.34*cm/2."/>
0262         <zplane z="(60.*cm/2.+1.2*cm)" rmin="10.957560*cm/2." rmax="53.34*cm/2."/>
0263         <cut>
0264           <placement x="(15.543+(16.858-15.543)/2.+5.2)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.255321*deg" rotZ="0*rad"/>
0265           <dimensions rmin="0*cm" rmax="5.2*cm" half_length="200.*cm/2."/>
0266           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0267         </cut>
0268       </endplate>
0269       <yokeshield name="B0APF_YoketShield" vis="MagnetEndPlateVis">
0270         <placement x="B0APF_Yoke_Center_posX" y="B0APF_Yoke_Center_posY" z="B0APF_Yoke_Center_posZ" theta="B0APF_Yoke_Rotation_Angle"/>
0271         <dimensions rmin="30.*cm" rmax="31.27*cm" half_length="60.*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0272       </yokeshield>
0273       <endplate name="B0APF_Head_IP" vis="MagnetEndPlateVis">
0274         <placement x="B0APF_Yoke_Center_posX" y="B0APF_Yoke_Center_posY" z="B0APF_Yoke_Center_posZ" theta="B0APF_Yoke_Rotation_Angle"/>
0275         <zplane z="-60.*cm/2." rmin="60.827815*cm/2." rmax="62.535247*cm/2."/>
0276         <zplane z="-(60.*cm/2.+1.7*cm)" rmin="60.827815*cm/2." rmax="62.535247*cm/2."/>
0277         <cut>
0278           <placement x="(15.543+(16.858-15.543)/2.+5.2)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.255321*deg" rotZ="0*rad"/>
0279           <dimensions rmin="0*cm" rmax="5.2*cm" half_length="200.*cm/2."/>
0280           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0281         </cut>
0282       </endplate>
0283       <endplate name="B0APF_Head_nonIP" vis="MagnetEndPlateVis">
0284         <placement x="B0APF_Yoke_Center_posX" y="B0APF_Yoke_Center_posY" z="B0APF_Yoke_Center_posZ" theta="B0APF_Yoke_Rotation_Angle"/>
0285         <zplane z="-(60.*cm/2.+1.7*cm)" rmin="9.062720*cm/2." rmax="62.535247*cm/2."/>
0286         <zplane z="-(60.*cm/2.+1.7*cm+0.9*cm)" rmin="9.062720*cm/2." rmax="62.535247*cm/2."/>
0287         <cut>
0288           <placement x="(15.543+(16.858-15.543)/2.+5.2)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.255321*deg" rotZ="0*rad"/>
0289           <dimensions rmin="0*cm" rmax="5.2*cm" half_length="200.*cm/2."/>
0290           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0291         </cut>
0292       </endplate>
0293     </detector>
0294 
0295     <!-- Q1ApF magnet -->
0296     <detector id="Q1APF_ID" name="Q1APF_BeamlineMagnet" type="ip6_CryostatMagnet">
0297       <yoke name="Q1APF_Yoke" vis="MagnetVis">
0298         <placement x="Q1APF_Yoke_Center_posX" y="Q1APF_Yoke_Center_posY" z="Q1APF_Yoke_Center_posZ" theta="Q1APF_Yoke_Rotation_Angle"/>
0299         <dimensions rmin="26.4*cm/2." rmax="120.*cm/2." half_length="150.114*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0300         <cut>
0301           <placement x="(17.346+(20.480-17.346)/2.+6.91)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.196077*deg" rotZ="0*rad"/>
0302           <dimensions rmin="0*cm" rmax="13.82*cm/2." half_length="400.*cm/2."/>
0303           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0304         </cut>
0305         <cut>
0306           <placement x="-(44.117+11.43)/2.*cm" y="-(20.743+11.43/2.)*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0307           <dimensions rmin="0*cm" rmax="11.43*cm/2." half_length="400.*cm/2."/>
0308           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0309         </cut>
0310         <cut>
0311           <placement x="(44.117+11.43)/2.*cm" y="-(20.743+11.43/2.)*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0312           <dimensions rmin="0*cm" rmax="11.43*cm/2." half_length="400.*cm/2."/>
0313           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0314         </cut>
0315         <cut>
0316           <placement x="(44.117+11.43)/2.*cm" y="(20.743+11.43/2.)*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0317           <dimensions rmin="0*cm" rmax="11.43*cm/2." half_length="400.*cm/2."/>
0318           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0319         </cut>
0320         <cut>
0321           <placement x="-(44.117+11.43)/2.*cm" y="(20.743+11.43/2.)*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0322           <dimensions rmin="0*cm" rmax="11.43*cm/2." half_length="400.*cm/2."/>
0323           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0324         </cut>
0325       </yoke>
0326       <coil name="Q1APF_Dummy_Coil" vis="MagnetCoilVis">
0327         <placement x="Q1APF_Yoke_Center_posX" y="Q1APF_Yoke_Center_posY" z="Q1APF_Yoke_Center_posZ" theta="Q1APF_Yoke_Rotation_Angle" phiNum="1" phiStart="0*deg" phiStep="0*deg"/>
0328         <dimensions rmin="14.198600*cm/2." rmax="20.523200*cm/2." half_length="157.007560*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0329         <cut shape="Box">
0330           <placement x="0*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="45.0*deg"/>
0331           <dimensions dx="2.994422*cm/2." dy="50.*cm/2." dz="126.591756*cm/2."/>
0332           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0333         </cut>
0334         <cut shape="Box">
0335           <placement x="0*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="-45.0*deg"/>
0336           <dimensions dx="2.994422*cm/2." dy="50.*cm/2." dz="126.591756*cm/2."/>
0337           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0338         </cut>
0339       </coil>
0340       <endplate name="Q1APF_EndPlate_IP" vis="MagnetEndPlateVis">
0341         <placement x="Q1APF_Yoke_Center_posX" y="Q1APF_Yoke_Center_posY" z="Q1APF_Yoke_Center_posZ" theta="Q1APF_Yoke_Rotation_Angle"/>
0342         <zplane z="-(160.817560*cm/2.)" rmin="7.114540*cm" rmax="29.21*cm"/>
0343         <zplane z="-(160.817560*cm/2.+15.246221*cm)" rmin="7.114540*cm" rmax="29.21*cm"/>
0344         <cut>
0345           <placement x="(17.346+(20.480-17.346)/2.+6.91)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.196077*deg" rotZ="0*rad"/>
0346           <dimensions rmin="0*cm" rmax="13.82*cm/2." half_length="400.*cm/2."/>
0347           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0348         </cut>
0349       </endplate>
0350       <endplate name="Q1APF_EndPlate_nonIP" vis="MagnetEndPlateVis">
0351         <placement x="Q1APF_Yoke_Center_posX" y="Q1APF_Yoke_Center_posY" z="Q1APF_Yoke_Center_posZ" theta="Q1APF_Yoke_Rotation_Angle"/>
0352         <zplane z="(160.817560*cm/2.)" rmin="14.229080*cm/2." rmax="29.21*cm"/>
0353         <zplane z="(160.817560*cm/2.+10.16*cm)" rmin="14.229080*cm/2." rmax="29.21*cm"/>
0354         <cut>
0355           <placement x="(17.346+(20.480-17.346)/2.+6.91)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.196077*deg" rotZ="0*rad"/>
0356           <dimensions rmin="0*cm" rmax="13.82*cm/2." half_length="400.*cm/2."/>
0357           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0358         </cut>
0359       </endplate>
0360       <yokeshield name="Q1APF_YoketShield" vis="MagnetEndPlateVis">
0361         <placement x="Q1APF_Yoke_Center_posX" y="Q1APF_Yoke_Center_posY" z="Q1APF_Yoke_Center_posZ" theta="Q1APF_Yoke_Rotation_Angle"/>
0362         <dimensions rmin="60.*cm" rmax="62.54*cm" half_length="157.*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0363       </yokeshield>
0364     </detector>
0365 
0366     <!-- Q1BpF magnet -->
0367     <detector id="Q1BPF_ID" name="Q1BPF_BeamlineMagnet" type="ip6_CryostatMagnet">
0368       <yoke name="Q1BPF_Yoke" vis="MagnetVis">
0369         <placement x="Q1BPF_Yoke_Center_posX" y="Q1BPF_Yoke_Center_posY" z="Q1BPF_Yoke_Center_posZ" theta="Q1BPF_Yoke_Rotation_Angle"/>
0370         <dimensions rmin="30.6*cm/2." rmax="120.*cm/2." half_length="160.365*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0371         <cut>
0372           <placement x="(20.647+(22.821-20.647)/2.+9.58)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0.776621*deg" rotZ="0*rad"/>
0373           <dimensions rmin="0*cm" rmax="19.15*cm/2." half_length="400.*cm/2."/>
0374           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0375         </cut>
0376         <cut>
0377           <placement x="-(49.204+11.43)/2.*cm" y="-(22.442+11.43/2.)*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0378           <dimensions rmin="0*cm" rmax="11.43*cm/2." half_length="400.*cm/2."/>
0379           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0380         </cut>
0381         <cut>
0382           <placement x="(49.204+11.43)/2.*cm" y="-(22.442+11.43/2.)*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0383           <dimensions rmin="0*cm" rmax="11.43*cm/2." half_length="400.*cm/2."/>
0384           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0385         </cut>
0386         <cut>
0387           <placement x="(49.204+11.43)/2.*cm" y="(22.442+11.43/2.)*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0388           <dimensions rmin="0*cm" rmax="11.43*cm/2." half_length="400.*cm/2."/>
0389           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0390         </cut>
0391         <cut>
0392           <placement x="-(49.204+11.43)/2.*cm" y="(22.442+11.43/2.)*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0393           <dimensions rmin="0*cm" rmax="11.43*cm/2." half_length="400.*cm/2."/>
0394           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0395         </cut>
0396       </yoke>
0397       <coil name="Q1BPF_Dummy_Coil" vis="MagnetCoilVis">
0398         <placement x="Q1BPF_Yoke_Center_posX" y="Q1BPF_Yoke_Center_posY" z="Q1BPF_Yoke_Center_posZ" theta="Q1BPF_Yoke_Rotation_Angle" phiNum="1" phiStart="0*deg" phiStep="0*deg"/>
0399         <dimensions rmin="18.600420*cm/2." rmax="21.706840*cm/2." half_length="160.434020*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0400         <cut shape="Box">
0401           <placement x="0*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="45.0*deg"/>
0402           <dimensions dx="3.881058*cm/2." dy="50.*cm/2." dz="128.549400*cm/2."/>
0403           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0404         </cut>
0405         <cut shape="Box">
0406           <placement x="0*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="-45.0*deg"/>
0407           <dimensions dx="3.881058*cm/2." dy="50.*cm/2." dz="128.549400*cm/2."/>
0408           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0409         </cut>
0410       </coil>
0411       <endplate name="Q1BPF_EndPlate_IP" vis="MagnetEndPlateVis">
0412         <placement x="Q1BPF_Yoke_Center_posX" y="Q1BPF_Yoke_Center_posY" z="Q1BPF_Yoke_Center_posZ" theta="Q1BPF_Yoke_Rotation_Angle"/>
0413         <zplane z="-(164.244020*cm/2.)" rmin="9.300210*cm" rmax="30.48*cm"/>
0414         <zplane z="-(164.244020*cm/2.+14.605008*cm)" rmin="9.300210*cm" rmax="30.48*cm"/>
0415         <cut>
0416           <placement x="(20.647+(22.821-20.647)/2.+9.58)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0.776621*deg" rotZ="0*rad"/>
0417           <dimensions rmin="0*cm" rmax="19.15*cm/2." half_length="400.*cm/2."/>
0418           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0419         </cut>
0420       </endplate>
0421       <endplate name="Q1BPF_EndPlate_nonIP" vis="MagnetEndPlateVis">
0422         <placement x="Q1BPF_Yoke_Center_posX" y="Q1BPF_Yoke_Center_posY" z="Q1BPF_Yoke_Center_posZ" theta="Q1BPF_Yoke_Rotation_Angle"/>
0423         <!-- zplane z="(164.244020*cm/2.)" rmin="18.600420*cm/2." rmax="30.48*cm"/ (actual dimensions, temporarily commented to avoid overlap with the outdated hadron beam pipe)-->
0424         <!-- zplane z="(164.244020*cm/2.+12.065167*cm)" rmin="18.600420*cm/2." rmax="30.48*cm"/ (actual dimensions, temporarily commented to avoid overlap with the outdated hadron beam pipe)-->
0425         <zplane z="(164.244020*cm/2.)" rmin="22.0*cm/2." rmax="30.48*cm"/>
0426         <zplane z="(164.244020*cm/2.+12.065167*cm)" rmin="22.0*cm/2." rmax="30.48*cm"/>
0427         <cut>
0428           <placement x="(20.647+(22.821-20.647)/2.+9.58)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0.776621*deg" rotZ="0*rad"/>
0429           <dimensions rmin="0*cm" rmax="19.15*cm/2." half_length="400.*cm/2."/>
0430           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0431         </cut>
0432       </endplate>
0433       <yokeshield name="Q1BPF_YoketShield" vis="MagnetEndPlateVis">
0434         <placement x="Q1BPF_Yoke_Center_posX" y="Q1BPF_Yoke_Center_posY" z="Q1BPF_Yoke_Center_posZ" theta="Q1BPF_Yoke_Rotation_Angle"/>
0435         <dimensions rmin="60.*cm" rmax="62.54*cm" half_length="173.77*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0436       </yokeshield>
0437       <heatshieldbarrel name="Q1BOPF_HeatShield_Barrel" vis="MagnetHeatShieldVis">
0438         <placement x="-27.9262*cm" y="0*cm" z="1064.49*cm" theta="-0.0208752*cm"/>
0439         <dimensions rmin="75.882500*cm" rmax="76.20*cm" half_length="351.848420*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0440       </heatshieldbarrel>
0441       <cryobarrel name="Q1BPF_Cryo_Barrel" vis="MagnetCryoVis">
0442         <placement x="-26.9339*cm" y="0*cm" z="1016.98*cm" theta="-0.0208759*rad"/>
0443         <dimensions rmin="182.245000*cm/2." rmax="182.88*cm/2." half_length="447.04*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0444       </cryobarrel>
0445     </detector>
0446 
0447     <!-- Q2pF magnet -->
0448     <detector id="Q2PF_ID" name="Q2PF_BeamlineMagnet" type="ip6_CryostatMagnet">
0449       <yoke name="Q2PF_Yoke" vis="MagnetVis">
0450         <placement x="Q2PF_Yoke_Center_posX" y="Q2PF_Yoke_Center_posY" z="Q2PF_Yoke_Center_posZ" theta="Q2PF_Yoke_Rotation_Angle"/>
0451         <dimensions rmin="40.4*cm/2." rmax="120.*cm/2." half_length="366.522*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0452         <cut>
0453           <placement x="(30.458+(35.517-30.458)/2.+7.62)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0.790717*deg" rotZ="0*rad"/>
0454           <dimensions rmin="0*cm" rmax="15.24*cm/2." half_length="400.*cm/2."/>
0455           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0456         </cut>
0457         <cut>
0458           <placement x="-(30.458+(35.517-30.458)/2.+7.62)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="-0.790717*deg" rotZ="0*rad"/>
0459           <dimensions rmin="0*cm" rmax="15.24*cm/2." half_length="400.*cm/2."/>
0460           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0461         </cut>
0462         <cut>
0463           <placement x="(30.458+(35.517-30.458)/2.+7.62)*cm" y="0*cm" z="0*cm" rotX="0.790717*deg" rotY="0*rad" rotZ="0*rad"/>
0464           <dimensions rmin="0*cm" rmax="15.24*cm/2." half_length="400.*cm/2."/>
0465           <rotation num="1" start="90*deg" step="0*deg" axis="Z"/>
0466         </cut>
0467         <cut>
0468           <placement x="-(30.458+(35.517-30.458)/2.+7.62)*cm" y="0*cm" z="0*cm" rotX="-0.790717*deg" rotY="0*rad" rotZ="0*rad"/>
0469           <dimensions rmin="0*cm" rmax="15.24*cm/2." half_length="400.*cm/2."/>
0470           <rotation num="1" start="90*deg" step="0*deg" axis="Z"/>
0471         </cut>
0472         <cut shape="Box">
0473           <placement x="-31.128*cm" y="+31.128*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0474           <dimensions dx="20.693*cm/2." dy="20.693*cm/2." dz="400.*cm/2."/>
0475           <rotation num="4" start="0*deg" step="90*deg" axis="Z"/>
0476         </cut>
0477       </yoke>
0478       <coil name="Q2PF_Dummy_Coil" vis="MagnetCoilVis">
0479         <placement x="Q2PF_Yoke_Center_posX" y="Q2PF_Yoke_Center_posY" z="Q2PF_Yoke_Center_posZ" theta="Q2PF_Yoke_Rotation_Angle" phiNum="1" phiStart="0*deg" phiStep="0*deg"/>
0480         <dimensions rmin="28.064321*cm/2." rmax="34.284785*cm/2." half_length="360.457852*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0481         <cut shape="Box">
0482           <placement x="0*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*deg"/>
0483           <dimensions dx="5.653406*cm/2." dy="50.*cm/2." dz="300.271832*cm/2."/>
0484           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0485         </cut>
0486         <cut shape="Box">
0487           <placement x="0*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="90.0*deg"/>
0488           <dimensions dx="5.653406*cm/2." dy="50.*cm/2." dz="300.271832*cm/2."/>
0489           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0490         </cut>
0491       </coil>
0492       <endplate name="Q2PF_EndPlate_IP" vis="MagnetEndPlateVis">
0493         <placement x="Q2PF_Yoke_Center_posX" y="Q2PF_Yoke_Center_posY" z="Q2PF_Yoke_Center_posZ" theta="Q2PF_Yoke_Rotation_Angle"/>
0494         <zplane z="-(371.650028*cm/2.)" rmin="13.817600*cm" rmax="30.162500*cm"/>
0495         <zplane z="-(371.650028*cm/2.+12.70*cm)" rmin="13.817600*cm" rmax="30.162500*cm"/>
0496       </endplate>
0497       <endplate name="Q2PF_EndPlate_nonIP" vis="MagnetEndPlateVis">
0498         <placement x="Q2PF_Yoke_Center_posX" y="Q2PF_Yoke_Center_posY" z="Q2PF_Yoke_Center_posZ" theta="Q2PF_Yoke_Rotation_Angle"/>
0499         <zplane z="(371.650028*cm/2.)" rmin="27.635200*cm/2." rmax="60.325000*cm/2."/>
0500         <zplane z="(371.650028*cm/2.+12.70*cm)" rmin="27.635200*cm/2." rmax="60.325000*cm/2."/>
0501       </endplate>
0502       <yokeshield name="Q2PF_YoketShield" vis="MagnetEndPlateVis">
0503         <placement x="Q2PF_Yoke_Center_posX" y="Q2PF_Yoke_Center_posY" z="Q2PF_Yoke_Center_posZ" theta="Q2PF_Yoke_Rotation_Angle"/>
0504         <dimensions rmin="60.*cm" rmax="61.269852*cm" half_length="366.897920*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0505       </yokeshield>
0506       <heatshieldbarrel name="Q2OPF_HeatShield_Barrel" vis="MagnetHeatShieldVis">
0507         <placement x="Q2PF_Yoke_Center_posX" y="Q2PF_Yoke_Center_posY" z="Q2PF_Yoke_Center_posZ" theta="Q2PF_Yoke_Rotation_Angle"/>
0508         <dimensions rmin="71.424800*cm" rmax="71.742300*cm" half_length="376.814080*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0509       </heatshieldbarrel>
0510       <cryobarrel name="Q2PF_Cryo_Barrel" vis="MagnetCryoVis">
0511         <placement x="-40.497*cm" y="0*cm" z="1459.53*cm" theta="Q2PF_Yoke_Rotation_Angle"/>
0512         <dimensions rmin="182.245000*cm/2." rmax="182.88*cm/2." half_length="382.27*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0513       </cryobarrel>
0514     </detector>
0515 
0516     <!-- B1pF magnet -->
0517     <detector id="B1PF_ID" name="B1PF_BeamlineMagnet" type="ip6_CryostatMagnet">
0518       <yoke name="B1PF_Yoke" vis="MagnetVis">
0519         <placement x="B1PF_Yoke_Center_posX" y="B1PF_Yoke_Center_posY" z="B1PF_Yoke_Center_posZ" theta="B1PF_Yoke_Rotation_Angle"/>
0520         <dimensions rmin="66.*cm/2." rmax="145.*cm/2." half_length="305.077*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0521         <cut>
0522           <placement x="(40.265+(48.747-40.265)/2.+7.)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.592379*deg" rotZ="0*rad"/>
0523           <dimensions rmin="0*cm" rmax="14.*cm/2." half_length="400.*cm/2."/>
0524           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0525         </cut>
0526         <cut>
0527           <placement x="0*cm" y="46.243*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0528           <dimensions rmin="0*cm" rmax="16.568*cm/2." half_length="400.*cm/2."/>
0529           <rotation num="4" start="45.0*deg" step="90.0*deg" axis="Z"/>
0530         </cut>
0531       </yoke>
0532       <coil name="B1PF_Dummy_Coil" vis="MagnetCoilVis">
0533         <placement x="B1PF_Yoke_Center_posX" y="B1PF_Yoke_Center_posY" z="B1PF_Yoke_Center_posZ" theta="B1PF_Yoke_Rotation_Angle" phiNum="1" phiStart="0*deg" phiStep="0*deg"/>
0534         <!-- dimensions rmin="30.*cm/2." rmax="34.*cm/2." half_length="304.728880*cm/2." sphi="0*deg" dphi="360.0*deg"/ (actual dimensions, temporarily commented to avoid overlap with the outdated hadron beam pipe)-->
0535         <dimensions rmin="34.*cm/2." rmax="38.*cm/2." half_length="304.728880*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0536       </coil>
0537       <tube name="B1PF_InnerSupport_Tube" vis="MagnetSupportTubeVis">
0538         <placement x="B1PF_Yoke_Center_posX" y="B1PF_Yoke_Center_posY" z="B1PF_Yoke_Center_posZ" theta="B1PF_Yoke_Rotation_Angle"/>
0539         <!-- dimensions rmin="28.143200*cm/2." rmax="28.829000*cm/2." half_length="340.111080*cm/2." sphi="0*deg" dphi="360.0*deg"/ (actual dimensions, temporarily commented to avoid overlap with the outdated hadron beam pipe)-->
0540         <dimensions rmin="32.*cm/2." rmax="32.7*cm/2." half_length="305*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0541       </tube>
0542       <endplate name="B1PF_EndPlates_OuterSupport_Tube" vis="MagnetEndPlateVis">
0543         <placement x="B1PF_Yoke_Center_posX" y="B1PF_Yoke_Center_posY" z="B1PF_Yoke_Center_posZ" theta="B1PF_Yoke_Rotation_Angle"/>
0544         <!-- zplane z="-340.212680*cm/2." rmin="14.999970*cm" rmax="33.00*cm"/ (actual dimensions, temporarily commented to avoid overlap with the outdated hadron beam pipe)-->
0545         <!-- zplane z="-340.212680*cm/2.+15.24*cm" rmin="14.999970*cm" rmax="33.00*cm"/ (actual dimensions, temporarily commented to avoid overlap with the outdated hadron beam pipe)-->
0546         <zplane z="-340.212680*cm/2." rmin="18*cm" rmax="33.00*cm"/>
0547         <zplane z="-340.212680*cm/2.+15.24*cm" rmin="18*cm" rmax="33.00*cm"/>
0548         <zplane z="-340.212680*cm/2.+15.24*cm" rmin="25.00*cm" rmax="33.00*cm"/>
0549         <zplane z="340.212680*cm/2.-15.24*cm" rmin="25.00*cm" rmax="33.00*cm"/>
0550         <!-- zplane z="340.212680*cm/2.-15.24*cm" rmin="14.999970*cm" rmax="33.00*cm"/ (actual dimensions, temporarily commented to avoid overlap with the outdated hadron beam pipe)-->
0551         <!-- zplane z="340.212680*cm/2." rmin="14.999970*cm" rmax="33.00*cm"/ (actual dimensions, temporarily commented to avoid overlap with the outdated hadron beam pipe)-->
0552         <zplane z="340.212680*cm/2.-15.24*cm" rmin="18*cm" rmax="33.00*cm"/>
0553         <zplane z="340.212680*cm/2." rmin="18*cm" rmax="33.00*cm"/>
0554       </endplate>
0555       <yokeshield name="B1PF_YoketShield" vis="MagnetEndPlateVis">
0556         <placement x="-51.3125*cm" y="0*cm" z="1851.3*cm" theta="B1PF_Yoke_Rotation_Angle"/>
0557         <dimensions rmin="73.*cm" rmax="74.*cm" half_length="317.776860*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0558       </yokeshield>
0559       <heatshieldbarrel name="B1PF_HeatShield_Barrel" vis="MagnetHeatShieldVis">
0560         <placement x="-51.489*cm" y="0*cm" z="1857.65*cm" theta="B1PF_Yoke_Rotation_Angle"/>
0561         <dimensions rmin="90.17*cm" rmax="91.44*cm" half_length="299.72*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0562       </heatshieldbarrel>
0563       <cryobarrel name="B1PF_Cryo_Barrel" vis="MagnetCryoVis">
0564         <placement x="-50.8183*cm" y="0*cm" z="1833.53*cm" theta="B1PF_Yoke_Rotation_Angle"/>
0565         <dimensions rmin="210.82*cm/2." rmax="214.63*cm/2." half_length="302.26*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0566       </cryobarrel>
0567     </detector>
0568 
0569     <!-- B1ApF magnet -->
0570     <detector id="B1APF_ID" name="B1APF_BeamlineMagnet" type="ip6_CryostatMagnet">
0571       <yoke name="B1APF_Yoke_Bot" vis="MagnetVis">
0572         <placement x="B1APF_Yoke_Center_posX" y="B1APF_Yoke_Center_posY+B1APF_Yoke_Center_offsetY" z="B1APF_Yoke_Center_posZ" theta="B1APF_Yoke_Rotation_Angle"/>
0573         <dimensions rmin="0*cm" rmax="183.*cm/2." half_length="155.956*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0574         <cut>
0575           <placement x="0*cm" y="-B1APF_Yoke_Center_offsetY" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0576           <dimensions rmin="0*cm" rmax="60.8*cm/2." half_length="400.*cm/2."/>
0577           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0578         </cut>
0579         <cut shape="Box">
0580           <placement x="0*cm" y="-B1APF_Yoke_Center_offsetY+200.*cm/2." z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0581           <dimensions dx="200.*cm/2." dy="200.*cm/2." dz="400.*cm/2."/>
0582           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0583         </cut>
0584         <cut>
0585           <placement x="(46.852850+(50.128391-46.852850)/2.+13.1)*cm" y="-B1APF_Yoke_Center_offsetY" z="0*cm" rotX="0*rad" rotY="1.203225*deg" rotZ="0*rad"/>
0586           <dimensions rmin="0*cm" rmax="26.2*cm/2." half_length="400.*cm/2."/>
0587           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0588         </cut>
0589         <cut>
0590           <placement x="-(46.852850+(50.128391-46.852850)/2.+13.1)*cm" y="-B1APF_Yoke_Center_offsetY" z="0*cm" rotX="0*rad" rotY="-1.203225*deg" rotZ="0*rad"/>
0591           <dimensions rmin="0*cm" rmax="26.2*cm/2." half_length="400.*cm/2."/>
0592           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0593         </cut>
0594         <cut>
0595           <placement x="0*cm" y="51.543*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0596           <dimensions rmin="0*cm" rmax="16.52*cm/2." half_length="400.*cm/2."/>
0597           <rotation num="4" start="45.0*deg" step="90.0*deg" axis="Z"/>
0598         </cut>
0599       </yoke>
0600       <yoke name="B1APF_Yoke_Top" vis="MagnetVis">
0601         <placement x="B1APF_Yoke_Center_posX" y="B1APF_Yoke_Center_posY-B1APF_Yoke_Center_offsetY" z="B1APF_Yoke_Center_posZ" theta="B1APF_Yoke_Rotation_Angle"/>
0602         <dimensions rmin="0*cm" rmax="183.*cm/2." half_length="155.956*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0603         <cut>
0604           <placement x="0*cm" y="B1APF_Yoke_Center_offsetY" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0605           <dimensions rmin="0*cm" rmax="60.8*cm/2." half_length="400.*cm/2."/>
0606           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0607         </cut>
0608         <cut shape="Box">
0609           <placement x="0*cm" y="B1APF_Yoke_Center_offsetY-200.*cm/2." z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0610           <dimensions dx="200.*cm/2." dy="200.*cm/2." dz="400.*cm/2."/>
0611           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0612         </cut>
0613         <cut>
0614           <placement x="(46.852850+(50.128391-46.852850)/2.+13.1)*cm" y="B1APF_Yoke_Center_offsetY" z="0*cm" rotX="0*rad" rotY="1.203225*deg" rotZ="0*rad"/>
0615           <dimensions rmin="0*cm" rmax="26.2*cm/2." half_length="400.*cm/2."/>
0616           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0617         </cut>
0618         <cut>
0619           <placement x="-(46.852850+(50.128391-46.852850)/2.+13.1)*cm" y="B1APF_Yoke_Center_offsetY" z="0*cm" rotX="0*rad" rotY="-1.203225*deg" rotZ="0*rad"/>
0620           <dimensions rmin="0*cm" rmax="26.2*cm/2." half_length="400.*cm/2."/>
0621           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0622         </cut>
0623         <cut>
0624           <placement x="0*cm" y="51.543*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0625           <dimensions rmin="0*cm" rmax="16.52*cm/2." half_length="400.*cm/2."/>
0626           <rotation num="4" start="45.0*deg" step="90.0*deg" axis="Z"/>
0627         </cut>
0628       </yoke>
0629       <coil name="B1APF_Dummy_Coil" vis="MagnetCoilVis">
0630         <placement x="B1APF_Yoke_Center_posX" y="B1APF_Yoke_Center_posY" z="B1APF_Yoke_Center_posZ" theta="B1APF_Yoke_Rotation_Angle" phiNum="1" phiStart="0*deg" phiStep="0*deg"/>
0631         <dimensions rmin="37.091470*cm/2." rmax="40.092722*cm/2." half_length="150.171652*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0632         <cut shape="Box">
0633           <placement x="0*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="0*rad" rotZ="0*rad"/>
0634           <dimensions dx="14.696868*cm/2." dy="50.*cm/2." dz="42.028349*cm/2."/>
0635           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0636         </cut>
0637       </coil>
0638       <tube name="B1APF_InnerSupport_Tube" vis="MagnetSupportTubeVis">
0639         <placement x="B1APF_Yoke_Center_posX" y="B1APF_Yoke_Center_posY" z="B1APF_Yoke_Center_posZ" theta="B1APF_Yoke_Rotation_Angle"/>
0640         <dimensions rmin="36.*cm/2." rmax="37.*cm/2." half_length="156.471692*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0641       </tube>
0642       <tube name="B1APF_OuterSupport_Tube" vis="MagnetSupportTubeVis">
0643         <placement x="B1APF_Yoke_Center_posX" y="B1APF_Yoke_Center_posY" z="B1APF_Yoke_Center_posZ" theta="B1APF_Yoke_Rotation_Angle"/>
0644         <dimensions rmin="20.12*cm" rmax="30.*cm" half_length="156.471692*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0645       </tube>
0646       <endplate name="B1APF_EndPlate_IP" vis="MagnetEndPlateVis">
0647         <placement x="B1APF_Yoke_Center_posX" y="B1APF_Yoke_Center_posY" z="B1APF_Yoke_Center_posZ" theta="B1APF_Yoke_Rotation_Angle"/>
0648         <zplane z="-(160.581412*cm/2.)" rmin="37.000180*cm/2." rmax="60.96*cm/2."/>
0649         <zplane z="-(160.581412*cm/2.+14.935200*cm)" rmin="37.000180*cm/2." rmax="60.96*cm/2."/>
0650       </endplate>
0651       <endplate name="B1APF_EndPlate_nonIP" vis="MagnetEndPlateVis">
0652         <placement x="B1APF_Yoke_Center_posX" y="B1APF_Yoke_Center_posY" z="B1APF_Yoke_Center_posZ" theta="B1APF_Yoke_Rotation_Angle"/>
0653         <zplane z="(160.581412*cm/2.)" rmin="37.000180*cm/2." rmax="60.96*cm/2."/>
0654         <zplane z="(160.581412*cm/2.+14.935200*cm)" rmin="37.000180*cm/2." rmax="60.96*cm/2."/>
0655       </endplate>
0656       <yokeshield name="B1APF_YoketShield" vis="MagnetEndPlateVis">
0657         <placement x="-61.5849*cm" y="0*cm" z="2132.65*cm" theta="B1APF_Yoke_Rotation_Angle"/>
0658         <dimensions rmin="91.5*cm" rmax="93.0*cm" half_length="155.956000*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0659       </yokeshield>
0660       <heatshieldbarrel name="B1APF_HeatShield_Barrel" vis="MagnetHeatShieldVis">
0661         <placement x="-62.5449*cm" y="0*cm" z="2178.36*cm" theta="B1APF_Yoke_Rotation_Angle"/>
0662         <dimensions rmin="97.79*cm" rmax="99.06*cm" half_length="238.76*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0663       </heatshieldbarrel>
0664       <endplate name="B1APF_Head_nonIP" vis="MagnetEndPlateVis">
0665         <placement x="B1APF_Yoke_Center_posX" y="B1APF_Yoke_Center_posY" z="B1APF_Yoke_Center_posZ" theta="B1APF_Yoke_Rotation_Angle"/>
0666         <zplane z="(160.581412*cm/2.)" rmin="158.395137*cm/2." rmax="162.56*cm/2."/>
0667         <zplane z="(160.581412*cm/2.+37.374794*cm)" rmin="158.395137*cm/2." rmax="162.56*cm/2."/>
0668         <zplane z="(160.581412*cm/2.+37.374794*cm)" rmin="34.701480*cm/2." rmax="162.56*cm/2."/>
0669         <zplane z="(160.581412*cm/2.+37.374794*cm+2.*cm)" rmin="34.701480*cm/2." rmax="162.56*cm/2."/>
0670         <cut>
0671           <placement x="(46.852850+(50.128391-46.852850)/2.+13.1)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.203225*deg" rotZ="0*rad"/>
0672           <dimensions rmin="0*cm" rmax="26.2*cm/2." half_length="800.*cm/2."/>
0673           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0674         </cut>
0675         <cut>
0676           <placement x="-(46.852850+(50.128391-46.852850)/2.+13.1)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="-1.203225*deg" rotZ="0*rad"/>
0677           <dimensions rmin="0*cm" rmax="26.2*cm/2." half_length="800.*cm/2."/>
0678           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0679         </cut>
0680       </endplate>
0681       <cryobarrel name="B1APF_Cryo_Barrel" vis="MagnetCryoVis">
0682         <placement x="-63.3423*cm" y="0*cm" z="2216.32*cm" theta="B1APF_Yoke_Rotation_Angle"/>
0683         <dimensions rmin="224.79*cm/2." rmax="228.60*cm/2." half_length="299.470742*cm/2." sphi="0*deg" dphi="360.0*deg"/>
0684       </cryobarrel>
0685       <cryoend name="B1APF_Cryo_End_nonIP" vis="MagnetCryoVis">
0686         <placement x="B1APF_Yoke_Center_posX" y="B1APF_Yoke_Center_posY" z="B1APF_Yoke_Center_posZ" theta="B1APF_Yoke_Rotation_Angle"/>
0687         <zplane z="(160.581412*cm/2.+155.448020*cm)" rmin="226.06*cm/2." rmax="228.60*cm/2."/>
0688         <zplane z="(160.581412*cm/2.+155.448020*cm+7.62*cm)" rmin="226.06*cm/2." rmax="228.60*cm/2."/>
0689         <zplane z="(160.581412*cm/2.+155.448020*cm+7.62*cm)" rmin=" 34.701480*cm/2." rmax="228.60*cm/2."/>
0690         <zplane z="(160.581412*cm/2.+155.448020*cm+7.62*cm+1.275521*cm)" rmin="34.701480*cm/2." rmax="228.60*cm/2."/>
0691         <cut>
0692           <placement x="(46.852850+(50.128391-46.852850)/2.+13.1)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="1.203225*deg" rotZ="0*rad"/>
0693           <dimensions rmin="0*cm" rmax="26.2*cm/2." half_length="800.*cm/2."/>
0694           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0695         </cut>
0696         <cut>
0697           <placement x="-(46.852850+(50.128391-46.852850)/2.+13.1)*cm" y="0*cm" z="0*cm" rotX="0*rad" rotY="-1.203225*deg" rotZ="0*rad"/>
0698           <dimensions rmin="0*cm" rmax="26.2*cm/2." half_length="800.*cm/2."/>
0699           <rotation num="1" start="0*deg" step="0*deg" axis="Z"/>
0700         </cut>
0701       </cryoend>
0702     </detector>
0703   </detectors>
0704 </lccdd>