From 8a5bd21eccb5d8949cc296adaec5c31632035c20 Mon Sep 17 00:00:00 2001 From: vhinger Date: Mon, 10 Feb 2025 19:08:13 +0100 Subject: [PATCH] Add constructor printout (debug) --- slsDetectorCalibration/multiThreadedAnalogDetector.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slsDetectorCalibration/multiThreadedAnalogDetector.h b/slsDetectorCalibration/multiThreadedAnalogDetector.h index f2be39098..497687d94 100644 --- a/slsDetectorCalibration/multiThreadedAnalogDetector.h +++ b/slsDetectorCalibration/multiThreadedAnalogDetector.h @@ -380,6 +380,8 @@ class multiThreadedAnalogDetector { dd[thread_idx] = sc_detectors[s]->Clone(); // Other threads get clones } + std::cout << "Assigned thread " << thread_idx << " to storage cell " << s << std::endl; + dd[thread_idx]->setId(thread_idx); // Store which threads belong to which SC @@ -526,7 +528,7 @@ class multiThreadedAnalogDetector { }; // t ... threshold // Loop over each storage cell - for (auto const& [sc, _] : sc_to_threads) { + for (auto const& [sc, _] : sc_to_threads) { // structured bindings [sc, _] only available with -std=c++17 std::string imgname(base_imgname); if (nSC > 1) imgname += "_SC" + std::to_string(sc); imgname += ".tiff";