From ac4c2d22d82c41c77b0a1ee07025670064f26e84 Mon Sep 17 00:00:00 2001 From: beomki-yeo Date: Wed, 15 Nov 2023 13:26:49 +0100 Subject: [PATCH] Fix annulus shape --- .../include/traccc/simulation/measurement_smearer.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/simulation/include/traccc/simulation/measurement_smearer.hpp b/simulation/include/traccc/simulation/measurement_smearer.hpp index 5544effe86..7145732195 100644 --- a/simulation/include/traccc/simulation/measurement_smearer.hpp +++ b/simulation/include/traccc/simulation/measurement_smearer.hpp @@ -96,12 +96,16 @@ struct measurement_smearer { std::max(std::abs(matrix_operator().element(meas, 0u, 0u)) + offset[0], static_cast(0.f)); + } else if (mask_t::shape::name == "(stereo) annulus2D") { + iomeas.local1 = + matrix_operator().element(meas, 0u, 0u) + offset[0]; } else { iomeas.local0 = matrix_operator().element(meas, 0u, 0u) + offset[0]; } + } - } else if (meas_dim == 2u) { + else if (meas_dim == 2u) { const auto proj = subs.projector<2u>(); matrix_type<2u, 1u> meas = proj * bound_params.vector();