Skip to content

Update UT beampipe interface

Hangyi Wu requested to merge ut/bp-interface into master

Update UT-beam pipe interface in the following aspects

Comparison with lhcb-conddb/DDDB!133: diff-formatted.txt.

The detailed steps of obtaining the comparison results:

  1. Compile a master stack and specify Detector project to this branch
  2. Run Detector/build.${BINARY_TAG}/bin/run geoPluginRun -interactive -input Detector/compact/run3/trunk/debug/UT_debug.xml -plugin DD4hep_GeometryDisplay -option "e" and use gGeoManager->Export("DD4hep.gdml") in the opened ROOT session to save UT DD4hep geometry to GDML file.
  3. Run following commands to change lvBeforeMagnetRegion XML tag from a volume to assembly, 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
  1. Run lb-run -c best Gauss/v56r7 gaudirun.py Gauss-SaveGDML.py with Gauss-SaveGDML.py to obtain DetDesc.gdml
  2. 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

BPInterface


Validated by

  • Core Software
  • RTA
  • Simulation
Edited by Hangyi Wu

Merge request reports

Loading