diff --git a/corsika/detail/modules/ObservationPlane.inl b/corsika/detail/modules/ObservationPlane.inl index b40e8d772f694cb0335d4c2410f78a2f6b1c660b..7100db181d85ba603be2bda29eba9758a0bff8aa 100644 --- a/corsika/detail/modules/ObservationPlane.inl +++ b/corsika/detail/modules/ObservationPlane.inl @@ -22,7 +22,7 @@ namespace corsika { template <typename TTracking, typename TOutput> template <typename TParticle, typename TTrajectory> inline ProcessReturn ObservationPlane<TTracking, TOutput>::doContinuous( - TParticle& particle, TTrajectory&, bool const stepLimit) { + TParticle& particle, TTrajectory& step, bool const stepLimit) { /* The current step did not yet reach the ObservationPlane, do nothing now and wait: */ @@ -46,7 +46,7 @@ namespace corsika { } HEPEnergyType const energy = particle.getEnergy(); - Point const pointOfIntersection = particle.getPosition(); + Point const pointOfIntersection = step.getPosition(1); Vector const displacement = pointOfIntersection - plane_.getCenter(); // add our particles to the output file stream