Update UT beampipe interface
Update UT-beam pipe interface in the following aspects
- Components 2,3,4 as illustrated in EDMS document: https://edms.cern.ch/document/2863462. Installed during YETS22-23, but some of them were not included in the geometry until this MR.
- 16-cm long x 5mm thick pyrogel around the beam pipe in the middle of UT. Installed during YETS23-24.
- The degisn of Airex ring (a.k.a. UT beam pipe collar) and HalfMoons are changed from https://edms.cern.ch/document/2797582 (design in YETS22-23) to https://edms.cern.ch/document/3061946 and https://edms.cern.ch/document/3062195 (design in YETS23-24)
Comparison with lhcb-conddb/DDDB!133: diff-formatted.txt.
The detailed steps of obtaining the comparison results:
- Compile a
master
stack and specify Detector project to this branch - Run
Detector/build.${BINARY_TAG}/bin/run geoPluginRun -interactive -input Detector/compact/run3/trunk/debug/UT_debug.xml -plugin DD4hep_GeometryDisplay -option "e"
and usegGeoManager->Export("DD4hep.gdml")
in the opened ROOT session to save UT DD4hep geometry to GDML file. - Run following commands to change
lvBeforeMagnetRegion
XML tag from avolume
toassembly
, otherwise pyg4ometry will not recognize its daughters.
sed -i 's/ <volume name="lvBeforeMagnetRegion">/ <assembly name="lvBeforeMagnetRegion">/g' DD4hep.gdml
awk -v line_number=$(($(awk '/<volume name="lvMagnetRegion">/ {print NR; exit}' DD4hep.gdml) - 1)) 'NR==line_number {gsub("volume", "assembly", $0);} {print}' > DD4hep-fix-lvBeforeMagnetRegion.gdml
- Run
lb-run -c best Gauss/v56r7 gaudirun.py Gauss-SaveGDML.py
with Gauss-SaveGDML.py to obtainDetDesc.gdml
- Run the following commands using compareGeoms.py
lb-conda geometryvalidation python compareGeoms.py DD4hep-fix-lvBeforeMagnetRegion.gdml DetDesc.gdml |& tee diff.txt
sed 's/, /,\n/g' diff.txt | sed '/NotTested/d' > diff-formatted.txt
Validated by
-
Core Software -
RTA -
Simulation
Edited by Hangyi Wu