From 6cb04b86a1bdbfe9dc6cdad6ce2f084a379410ca Mon Sep 17 00:00:00 2001 From: Joana Niermann Date: Wed, 10 Jun 2026 16:59:36 +0200 Subject: [PATCH] Fix the perigee stopper --- .../tests/include/detray/test/utils/perigee_stopper.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Detray/tests/include/detray/test/utils/perigee_stopper.hpp b/Detray/tests/include/detray/test/utils/perigee_stopper.hpp index 5b2db58abbb..75c0c065b4f 100644 --- a/Detray/tests/include/detray/test/utils/perigee_stopper.hpp +++ b/Detray/tests/include/detray/test/utils/perigee_stopper.hpp @@ -76,9 +76,8 @@ struct perigee_stopper : public base_actor { // At least the exit portal should be reachable if (navigation.cache_exhausted()) { - prop_state._heartbeat = - prop_state._heartbeat && - navigation.abort("Pergigee stopper has no next candidate"); + navigation.abort("Pergigee stopper has no next candidate"); + prop_state.heartbeat(false); return; } @@ -112,7 +111,8 @@ struct perigee_stopper : public base_actor { // The track has reached the perigee: "exit success" if (math::fabs(perigee_intr.path()) <= actor_state.m_on_perigee_tol) { - prop_state._heartbeat = prop_state._heartbeat && navigation.exit(); + navigation.exit(); + prop_state.heartbeat(false); } else { // @TODO: Use a guided navigator for this in order to catch // overstepping correctly