From 405a8e7dbdac9776f3cf363ca80ad87a810af821 Mon Sep 17 00:00:00 2001 From: Beomki Yeo Date: Wed, 9 Oct 2024 18:51:29 +0200 Subject: [PATCH] Backup --- .../src/efficiency/seeding_performance_writer.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/performance/src/efficiency/seeding_performance_writer.cpp b/performance/src/efficiency/seeding_performance_writer.cpp index 66654188dd..da27b66c98 100644 --- a/performance/src/efficiency/seeding_performance_writer.cpp +++ b/performance/src/efficiency/seeding_performance_writer.cpp @@ -73,19 +73,15 @@ void seeding_performance_writer::write( std::vector particle_hit_counts; + const auto measurements = sd.get_measurements(spacepoints_view); + if (!evt_data.m_found_meas_to_ptc_map.empty()) { particle_hit_counts = identify_contributing_particles( - sd.get_measurements(spacepoints_view), - evt_data.m_found_meas_to_ptc_map); + measurements, evt_data.m_found_meas_to_ptc_map); } else { particle_hit_counts = identify_contributing_particles( - sd.get_measurements(spacepoints_view), - evt_data.m_meas_to_ptc_map); - const auto measurements = sd.get_measurements(spacepoints_view); - - // Check which particle matches this seed. - std::vector particle_hit_counts = - identify_contributing_particles(measurements, evt_map.meas_ptc_map); + measurements, evt_data.m_meas_to_ptc_map); + } if (particle_hit_counts.size() > measurements.size() / 2) { auto pid = particle_hit_counts.at(0).ptc.particle_id;