From 57e035abc3a4cc5108bb89cfdadcb5f86796373f Mon Sep 17 00:00:00 2001 From: vhinger Date: Thu, 20 Aug 2026 14:44:25 +0200 Subject: [PATCH] Format --- include/aare/RemapAlgorithm.hpp | 7 +++---- src/RemapAlgorithm.cpp | 19 +++++++------------ 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/include/aare/RemapAlgorithm.hpp b/include/aare/RemapAlgorithm.hpp index 013d82cf..d3a227ba 100644 --- a/include/aare/RemapAlgorithm.hpp +++ b/include/aare/RemapAlgorithm.hpp @@ -9,10 +9,9 @@ defs::StrixelGroupToPixelMap strixel_to_pixel_map( defs::SensorModulePlacement const &, InclusiveROI const &user_roi, defs::BondShift bond_shift = {0, 0}); -std::vector -strixel_to_pixel_maps(defs::SensorConfig const &, defs::SensorModulePlacement const &, - InclusiveROI const &user_roi, - defs::BondShift bond_shift = {0, 0}); +std::vector strixel_to_pixel_maps( + defs::SensorConfig const &, defs::SensorModulePlacement const &, + InclusiveROI const &user_roi, defs::BondShift bond_shift = {0, 0}); /** * Public API: diff --git a/src/RemapAlgorithm.cpp b/src/RemapAlgorithm.cpp index 09afee7c..fbbd8c52 100644 --- a/src/RemapAlgorithm.cpp +++ b/src/RemapAlgorithm.cpp @@ -102,23 +102,20 @@ strixel_to_pixel_map(defs::GroupConfig const &group_config, // -- 1) Rebase the user ROI (rx_roi) into sensor-local coordinates const InclusiveROI roi_user_local = inclusiveroi::geom::rebaseROI(roi_user, placement.placement_on_module); - // LOG(logDEBUG) - std::cout + LOG(logDEBUG) << "aare::remap::algo::strixel_to_pixel_map: Transformed user ROI: " << roi_user_local << std::endl; - // LOG(logDEBUG) - std::cout << "aare::remap::algo::strixel_to_pixel_map: Group ROI " - "before transformation (as in global config)" - << group_config.placement_on_sensor << '\n'; + LOG(logDEBUG) << "aare::remap::algo::strixel_to_pixel_map: Group ROI " + "before transformation (as in global config)" + << group_config.placement_on_sensor << '\n'; // -- 2) Apply the physical bond shift first, sensor rotation second. const InclusiveROI roi_group = shift_rotate_roi(group_config.placement_on_sensor, pixel, bond_shift, placement.rotation); - // LOG(logDEBUG) - std::cout << "aare::remap::algo::strixel_to_pixel_map: Group ROI after " + LOG(logDEBUG) << "aare::remap::algo::strixel_to_pixel_map: Group ROI after " "transformation (as in local transformation) " << roi_group << '\n'; @@ -134,8 +131,7 @@ strixel_to_pixel_map(defs::GroupConfig const &group_config, return {{}, InclusiveROI::emptyROI()}; } - // LOG(logDEBUG) - std::cout << "aare::remap::algo::strixel_to_pixel_map: Result of " + LOG(logDEBUG) << "aare::remap::algo::strixel_to_pixel_map: Result of " "intersecting ROIs " << effective_roi << '\n'; @@ -192,8 +188,7 @@ strixel_to_pixel_map(defs::GroupConfig const &group_config, // And allocate aare::NDArray map({nrows, ncols}, -1); - // LOG(logDEBUG) - std::cout + LOG(logDEBUG) << "aare::remap::algo::strixel_to_pixel_map: Resulting strixel grid: (" << map.shape(0) << ", " << map.shape(1) << ")" << '\n';