From d47027f4e33687ff00d234fb2d52112047672d68 Mon Sep 17 00:00:00 2001 From: Sylvain Joube <40246406+SylvainJoube@users.noreply.github.com> Date: Sun, 14 Apr 2024 08:25:27 +0200 Subject: [PATCH] Fix ambiguity resolution algorithm: add unique measurement_id (#536) * Fix ambiguity resolution: unique measurement_id * Get measurement_id with measurements.size() --- .../clusterization/detail/measurement_creation_helper.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/include/traccc/clusterization/detail/measurement_creation_helper.hpp b/core/include/traccc/clusterization/detail/measurement_creation_helper.hpp index d8bb2b1f37..06e83ba064 100644 --- a/core/include/traccc/clusterization/detail/measurement_creation_helper.hpp +++ b/core/include/traccc/clusterization/detail/measurement_creation_helper.hpp @@ -115,6 +115,9 @@ TRACCC_HOST inline void fill_measurement( pitch[1] * pitch[1] / static_cast(12.)}; // @todo add variance estimation + // For the ambiguity resolution algorithm, give a unique measurement ID + m.measurement_id = measurements.size(); + measurements.push_back(std::move(m)); } }