From c8cb62395ec8bd31b13a5ba5533609b6cf962818 Mon Sep 17 00:00:00 2001 From: Beomki Yeo Date: Wed, 11 Dec 2024 05:10:58 -0800 Subject: [PATCH] Backup --- .../fitting/actors/surface_id_aborter.hpp | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 core/include/traccc/fitting/actors/surface_id_aborter.hpp diff --git a/core/include/traccc/fitting/actors/surface_id_aborter.hpp b/core/include/traccc/fitting/actors/surface_id_aborter.hpp deleted file mode 100644 index 68fa11a86..000000000 --- a/core/include/traccc/fitting/actors/surface_id_aborter.hpp +++ /dev/null @@ -1,41 +0,0 @@ -/** TRACCC library, part of the ACTS project (R&D line) - * - * (c) 2024 CERN for the benefit of the ACTS project - * - * Mozilla Public License Version 2.0 - */ - -#pragma once - -// Project include(s) -#include "detray/definitions/detail/qualifiers.hpp" -#include "detray/propagator/base_actor.hpp" - -// System include(s) -#include - -namespace traccc { - -/// Aborter triggered when the next surface is reached -struct surface_id_aborter : detray::actor { - struct state { - detray::geometry::barcode m_abort_id; - }; - - template - DETRAY_HOST_DEVICE void operator()(state &abrt_state, - propagator_state_t &prop_state) const { - - auto &navigation = prop_state._navigation; - - // Abort if the propagator is on the surface with abort ID - if ((navigation.is_on_sensitive() || - navigation.encountered_sf_material())) { - if (navigation.barcode() == abrt_state.m_abort_id) { - prop_state._heartbeat &= navigation.abort(); - } - } - } -}; - -} // namespace traccc