From b754fa7c3a90faf80038816caaf0a58a949433c5 Mon Sep 17 00:00:00 2001 From: robbietuk Date: Fri, 22 Nov 2024 23:08:17 -0800 Subject: [PATCH] Change bins in mask for sinogram message to use info() (#1542) * Change bins in mask for sinogram message to use info() * Formatting * include "boost/format.hpp" --- src/scatter_buildblock/CreateTailMaskFromACFs.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scatter_buildblock/CreateTailMaskFromACFs.cxx b/src/scatter_buildblock/CreateTailMaskFromACFs.cxx index 65a249dc0..884b83a5c 100644 --- a/src/scatter_buildblock/CreateTailMaskFromACFs.cxx +++ b/src/scatter_buildblock/CreateTailMaskFromACFs.cxx @@ -11,6 +11,7 @@ #include "stir/scatter/CreateTailMaskFromACFs.h" #include "stir/Bin.h" #include "boost/lambda/lambda.hpp" +#include "boost/format.hpp" #include "stir/error.h" START_NAMESPACE_STIR @@ -147,8 +148,8 @@ CreateTailMaskFromACFs::process_data() count += mask_left_size + mask_right_size; #endif } - std::cout << count << " bins in mask for sinogram at segment " << bin.segment_num() << ", axial_pos " - << bin.axial_pos_num() << "\n"; + info(boost::format("%1% bins in mask for sinogram at segment %2%, axial_pos %3%") % count % bin.segment_num() + % bin.axial_pos_num()); if (this->mask_proj_data->set_sinogram(mask_sinogram) != Succeeded::yes) return Succeeded::no; }