Back to home page

EIC code displayed by LXR

 
 

    


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

0001 <!-- SPDX-License-Identifier: LGPL-3.0-or-later -->
0002 <!-- Copyright (C) 2022 - 2026 Whitney Armstrong, Sylvester Joosten, Wouter Deconinck, Zhenyu Ye, Dmitry Kalinkin -->
0003 
0004 <lccdd>
0005 
0006   <comment>
0007     These are used by ddsim, the region where we store all secondaries
0008   </comment>
0009 
0010   <define>
0011 
0012     <comment>
0013       These constants are used directly by the *Geant4TCUserParticleHandler* (default in ddsim)
0014     </comment>
0015     <constant name="tracker_region_rmax"   value="EcalBarrel_rmin"/>
0016     <constant name="tracker_region_zmax"   value="+EcalEndcapP_zmin"/>
0017     <constant name="tracker_region_zmin"   value="-EcalEndcapN_zmin"/>
0018 
0019     <comment>
0020       Additional constants for the purpose of defining the additional extrusion
0021     </comment>
0022     <constant name="tracker_region_forward_extrusion_zmax"   value="36 * m"/>
0023     <constant name="tracker_region_forward_extrusion_rmax"   value="15 * cm"/>
0024     <constant name="tracker_region_forward_extrusion_rot_y"  value="ionCrossingAngle"/>
0025 
0026   </define>
0027 
0028   <comment>
0029     This volume is used by the *Geant4TVUserParticleHandler* (default in the latest npsim)
0030 
0031     Set `connected="true"` to make it visible in a geometry display
0032   </comment>
0033   <parallelworld_volume name="tracking_volume" anchor="/world" material="Air" connected="false" vis="BlueVis">
0034     <comment>
0035       We first build a tube using the legacy parameters and add an ion beamline extrusion
0036     </comment>
0037     <shape type="BooleanShape" operation="Union">
0038       <shape type="Tube" rmin="0 * cm" rmax="tracker_region_rmax" dz="(tracker_region_zmax - tracker_region_zmin) / 2" />
0039       <shape type="Tube" rmin="0 * cm" rmax="tracker_region_forward_extrusion_rmax" dz="tracker_region_forward_extrusion_zmax / 2" />
0040       <rotation x="0" y="tracker_region_forward_extrusion_rot_y" z="0" />
0041       <position x="sin(tracker_region_forward_extrusion_rot_y) * tracker_region_forward_extrusion_zmax / 2"
0042                 y="0"
0043                 z="cos(tracker_region_forward_extrusion_rot_y) * tracker_region_forward_extrusion_zmax / 2 - (tracker_region_zmax + tracker_region_zmin) / 2" />
0044     </shape>
0045     <position x="0" y="0" z="(tracker_region_zmax + tracker_region_zmin) / 2" />
0046     <rotation x="0" y="0" z="0" />
0047   </parallelworld_volume>
0048 
0049 </lccdd>