Skip to content

Better Interpolation at Sensor Edges

Simon Spannagel requested to merge sensor_intersect into master

This code replaces the crude interpolation at the +z sensor surface with a more proper one, employing a Liang-Barsky line-clipping algorithm. Since this only works for axis-aligned boxes, the RadialStripDetector falls back to the old method of only doing a manual interpolation at the +z surface.

This is sort of a precursor to !682 (closed) which should make reviewing that a bit easier.

The tests had to be adapted because of

  • a change in the interpolated position at the sensor backside (before we didn't interpolate there at all)
  • a change in the exact time of arrival because now we do not interpolate time anymore. This should not be a problem because it was only used at one position in GenericPropagation, where time is not of prime importance.

Merge request reports