Skip to content

VECGEOM-601: Add regression test Polycone/Cone tolerance issue

Benjamin Morgan requested to merge bmorgan/VecGeom:bmorgan/vecgeom-601 into master

ATLAS reported an issue with stuck tracks in their simulation, with Geant4 Cons,Polycons replaced by VecGeom versions. VecGeom versions up to 1.1.20 were checked. Triaged to VecGeom's Polycone/Cone DistanceToOut and Inside functions using kHalfConeTolerance and kConeTolerance respectively. Can result in points close to surface being marked as "on surface" by Inside, but "outside" by DistanceToOut. The overall effect of this is that DistanceToOut always returns an infinite distance for such points.

VecGeom !878 (closed) (after 1.1.20) updated the Polycone/Cone implementation to only use kConeTolerance, and this resolves the problem in the ATLAS test case.

Add the ATLAS test case that exposed the problem as a new unit test to identify any regressions future changes in Polycone/Cone might introduce.

Merge request reports