From be607e8a2ebc5d020bcdf9475c613712dfeb1274 Mon Sep 17 00:00:00 2001 From: vhinger Date: Fri, 7 Feb 2025 21:49:06 +0100 Subject: [PATCH] Fix missing includes --- slsDetectorCalibration/multiThreadedAnalogDetector.h | 10 ++++++---- slsDetectorCalibration/singlePhotonDetector.h | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/slsDetectorCalibration/multiThreadedAnalogDetector.h b/slsDetectorCalibration/multiThreadedAnalogDetector.h index 1766fe680..be887a9b4 100644 --- a/slsDetectorCalibration/multiThreadedAnalogDetector.h +++ b/slsDetectorCalibration/multiThreadedAnalogDetector.h @@ -24,6 +24,8 @@ #include #include #include +#include +#include using namespace std; @@ -846,13 +848,13 @@ class multiThreadedAnalogDetector { int* ff; double* ped; //pthread_mutex_t fmutex; //unused - std::unordered_map< int, std::vector > sc_to_threads; // Maps storage cell -> vector of assigned thread ids + std::unordered_map> sc_to_threads; // Maps storage cell -> vector of assigned thread ids std::mutex map_mutex; // Ensure thread-safe access to the map int nSC{1}; // Number of storage cells - std::unordered_map sc_images; // Store images per storage cell - std::unordered_map sc_pedestals; // Store pedestal arrays per storage cell - std::unordered_map sc_pedestals_rms; // Store pedestal RMS arrays per storage cell + std::unordered_map sc_images; // Store images per storage cell + std::unordered_map sc_pedestals; // Store pedestal arrays per storage cell + std::unordered_map sc_pedestals_rms; // Store pedestal RMS arrays per storage cell // at the moment, these maps could be avoided, but this implementation is more robust in allowing future changes }; diff --git a/slsDetectorCalibration/singlePhotonDetector.h b/slsDetectorCalibration/singlePhotonDetector.h index d1b929f14..3311028ef 100644 --- a/slsDetectorCalibration/singlePhotonDetector.h +++ b/slsDetectorCalibration/singlePhotonDetector.h @@ -205,6 +205,7 @@ class singlePhotonDetector : public analogDetector { virtual singlePhotonDetector* Copy() { return new singlePhotonDetector(*this); // Calls the copy constructor } + /** sets/gets number of rms threshold to detect photons \param n number of sigma to be set (0 or negative gets)