Warning, /epic/compact/far_backward/lumi/lumi_magnets.xml is written in an unsupported language. File is not indexed.
0001 <!-- SPDX-License-Identifier: LGPL-3.0-or-later -->
0002 <!-- Copyright (C) 2022, 2023 Justin Chan, Dhevan Gangadharan -->
0003
0004 <lccdd>
0005
0006 <comment>
0007 Construct the sweeper and analyzer dipole magnets for the luminosity subsystem.
0008 </comment>
0009
0010 <define>
0011 <constant name="LumiMag_DY" value="0.94*m"/>
0012 <constant name="LumiMag_DX" value="0.75972*m"/>
0013
0014 <constant name="LumiMag_DX_InnerBox" value="0.42032*m"/>
0015 <constant name="LumiMag_DY_InnerBox" value="0.61262*m"/>
0016
0017 <constant name="LumiMag_DY1_Coil" value="0.59262*m"/>
0018 <constant name="LumiMag_DY2_Coil" value="0.30592*m"/>
0019 <constant name="LumiMag_DX1_Coil" value="0.198*m"/>
0020 <constant name="LumiMag_DX2_Coil" value="0.42932*m"/>
0021
0022 <constant name="LumiMag_DX_Yoke" value="0.15*m"/>
0023
0024 <constant name="LumiMag_DX1_Legs" value="0.65972*m"/>
0025 <constant name="LumiMag_DX2_Legs" value="0.55972*m"/>
0026 <constant name="LumiMag_DY1_Legs" value="0.500*m"/>
0027 <constant name="LumiMag_DY2_Legs" value="0.500*m"/>
0028 <constant name="CenterY_Bfield" value="0*m"/>
0029 </define>
0030
0031
0032 <detectors>
0033 <detector
0034 name="SweeperMag"
0035 type="LumiMagnets"
0036 vis_name1="AnlGreen"
0037 vis_name2="AnlRed"
0038 vis_name3="AnlGray">
0039 <dimensions_mainbody_outer x="LumiMag_DX" y="LumiMag_DY" z="LumiMagMainBody_DZ" />
0040 <dimensions_mainbody_inner x="LumiMag_DX_InnerBox" y="LumiMag_DY_InnerBox" z="LumiMagMainBody_DZ" />
0041 <dimensions_coils_outer x="LumiMag_DX_InnerBox" y="LumiMag_DY1_Coil" z="LumiMagCoils_DZ" />
0042 <dimensions_coils_inner_1 x="LumiMag_DX1_Coil" y="LumiMag_DY1_Coil" z="LumiMagCoils_DZ" />
0043 <dimensions_coils_inner_2 x="LumiMag_DX2_Coil" y="LumiMag_DY2_Coil" z="LumiMagMainBody_DZ" />
0044 <dimensions_yoke_outer x="LumiMag_DX1_Coil" y="LumiMag_DY2_Coil" z="LumiMagMainBody_DZ" />
0045 <dimensions_yoke_inner x="LumiMag_DX_Yoke" y="LumiMag_DY2_Coil" z="LumiMagMainBody_DZ" />
0046 <dimensions_leg_outer x="LumiMag_DX1_Legs" y="LumiMag_DY1_Legs" z="LumiMagMainBody_DZ" />
0047 <dimensions_leg_inner x="LumiMag_DX2_Legs" y="LumiMag_DY2_Legs" z="LumiMagMainBody_DZ" />
0048 <position x="LumiSweepMag_X" y="LumiSweepMag_Y - CenterY_Bfield" z="LumiSweepMag_Z" />
0049 <rotation x="0*rad" y="0*rad" z="0*rad" />
0050 </detector>
0051
0052 <detector
0053 name="AnalyzerMag"
0054 type="LumiMagnets"
0055 vis_name1="AnlGreen"
0056 vis_name2="AnlRed"
0057 vis_name3="AnlGray">
0058 <dimensions_mainbody_outer x="LumiMag_DX" y="LumiMag_DY" z="LumiMagMainBody_DZ" />
0059 <dimensions_mainbody_inner x="LumiMag_DX_InnerBox" y="LumiMag_DY_InnerBox" z="LumiMagMainBody_DZ" />
0060 <dimensions_coils_outer x="LumiMag_DX_InnerBox" y="LumiMag_DY1_Coil" z="LumiMagCoils_DZ" />
0061 <dimensions_coils_inner_1 x="LumiMag_DX1_Coil" y="LumiMag_DY1_Coil" z="LumiMagCoils_DZ" />
0062 <dimensions_coils_inner_2 x="LumiMag_DX2_Coil" y="LumiMag_DY2_Coil" z="LumiMagMainBody_DZ" />
0063 <dimensions_yoke_outer x="LumiMag_DX1_Coil" y="LumiMag_DY2_Coil" z="LumiMagMainBody_DZ" />
0064 <dimensions_yoke_inner x="LumiMag_DX_Yoke" y="LumiMag_DY2_Coil" z="LumiMagMainBody_DZ" />
0065 <dimensions_leg_outer x="LumiMag_DX1_Legs" y="LumiMag_DY1_Legs" z="LumiMagMainBody_DZ" />
0066 <dimensions_leg_inner x="LumiMag_DX2_Legs" y="LumiMag_DY2_Legs" z="LumiMagMainBody_DZ" />
0067 <position x="LumiAnalyzerMag_X" y="LumiAnalyzerMag_Y - CenterY_Bfield" z="LumiAnalyzerMag_Z"/>
0068 <rotation x="0*rad" y="0*rad" z="0*rad" />
0069 </detector>
0070
0071 </detectors>
0072
0073
0074 <comment>
0075 Calculated field option is the current default.
0076 DZ of Ideal Fields option is set to main body length, not coil length.
0077 </comment>
0078
0079
0080 <fields>
0081
0082 <comment> Ideal fields </comment>
0083 <comment>
0084 <field name="LumiSweeperField" type="MultipoleMagnet">
0085 <position x="LumiSweepMag_X" y="LumiSweepMag_Y" z="LumiSweepMag_Z"/>
0086 <rotation x="0" y="0" z="0"/>
0087 <shape type="Box" dx="LumiMag_DX_InnerBox/2.0" dy="LumiMag_DY_InnerBox/2.0" dz="LumiMagMainBody_DZ/2.0"/>
0088 <coefficient coefficient="0" skew="LumiSweepIdealMag_B"/>
0089 </field>
0090
0091 <field name="LumiAnalyzerField" type="MultipoleMagnet">
0092 <position x="LumiAnalyzerMag_X" y="LumiAnalyzerMag_Y" z="LumiAnalyzerMag_Z"/>
0093 <rotation x="0" y="0" z="0"/>
0094 <shape type="Box" dx="LumiMag_DX_InnerBox/2.0" dy="LumiMag_DY_InnerBox/2.0" dz="LumiMagMainBody_DZ/2.0"/>
0095 <coefficient coefficient="0" skew="LumiAnalyzerIdealMag_B"/>
0096 </field>
0097 </comment>
0098
0099 <comment> Calculated fields </comment>
0100 <field type="epic_FieldMapB" name="LumiSweeperField" field_type="magnetic" coord_type="BxByBz"
0101 field_map="fieldmaps/LumiDipoleMapping_2023_09_15_XYZ_coords_cm_T.txt"
0102 url="https://github.com/eic/epic-data/raw/5a6bc4cd583fb3330bce475cf25b599661b902ee/LumiDipoleMapping_2023_09_15_XYZ_coords_cm_T.txt"
0103 cache="$DETECTOR_PATH:/opt/detector"
0104 scale="1.0">
0105 <dimensions>
0106 <X step="0.5*cm" min="-7.5*cm" max="7.5*cm" />
0107 <Y step="2.0*cm" min="-34*cm" max="34*cm" />
0108 <Z step="2.0*cm" min="-80*cm" max="80*cm" />
0109 <translationCoord x="LumiSweepMag_X" y="LumiSweepMag_Y" z="LumiSweepMag_Z" />
0110 <rotationField x="0" y="0" z="0" />
0111 </dimensions>
0112 </field>
0113
0114 <field type="epic_FieldMapB" name="LumiAnalyzerField" field_type="magnetic" coord_type="BxByBz"
0115 field_map="fieldmaps/LumiDipoleMapping_2023_09_15_XYZ_coords_cm_T.txt"
0116 url="https://github.com/eic/epic-data/raw/5a6bc4cd583fb3330bce475cf25b599661b902ee/LumiDipoleMapping_2023_09_15_XYZ_coords_cm_T.txt"
0117 cache="$DETECTOR_PATH:/opt/detector"
0118 scale="1.0">
0119 <dimensions>
0120 <X step="0.5*cm" min="-7.5*cm" max="7.5*cm" />
0121 <Y step="2.0*cm" min="-34*cm" max="34*cm" />
0122 <Z step="2.0*cm" min="-80*cm" max="80*cm" />
0123 <translationCoord x="LumiAnalyzerMag_X" y="LumiAnalyzerMag_Y" z="LumiAnalyzerMag_Z" />
0124 <rotationField x="0" y="0" z="0" />
0125 </dimensions>
0126 </field>
0127
0128 </fields>
0129
0130 </lccdd>