Fix missing includes

This commit is contained in:
hinger_v 2025-02-07 21:49:06 +01:00
parent 7396ceed54
commit be607e8a2e
2 changed files with 7 additions and 4 deletions

View File

@ -24,6 +24,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <mutex> #include <mutex>
#include <algorithm>
#include<unordered_map>
using namespace std; using namespace std;
@ -846,13 +848,13 @@ class multiThreadedAnalogDetector {
int* ff; int* ff;
double* ped; double* ped;
//pthread_mutex_t fmutex; //unused //pthread_mutex_t fmutex; //unused
std::unordered_map< int, std::vector<int> > sc_to_threads; // Maps storage cell -> vector of assigned thread ids std::unordered_map<int,std::vector<int>> sc_to_threads; // Maps storage cell -> vector of assigned thread ids
std::mutex map_mutex; // Ensure thread-safe access to the map std::mutex map_mutex; // Ensure thread-safe access to the map
int nSC{1}; // Number of storage cells int nSC{1}; // Number of storage cells
std::unordered_map<int, int*> sc_images; // Store images per storage cell std::unordered_map<int,int*> sc_images; // Store images per storage cell
std::unordered_map<int, double*> sc_pedestals; // Store pedestal arrays per storage cell std::unordered_map<int,double*> sc_pedestals; // Store pedestal arrays per storage cell
std::unordered_map<int, double*> sc_pedestals_rms; // Store pedestal RMS arrays per storage cell std::unordered_map<int,double*> 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 // at the moment, these maps could be avoided, but this implementation is more robust in allowing future changes
}; };

View File

@ -205,6 +205,7 @@ class singlePhotonDetector : public analogDetector<uint16_t> {
virtual singlePhotonDetector* Copy() { virtual singlePhotonDetector* Copy() {
return new singlePhotonDetector(*this); // Calls the copy constructor return new singlePhotonDetector(*this); // Calls the copy constructor
} }
/** sets/gets number of rms threshold to detect photons /** sets/gets number of rms threshold to detect photons
\param n number of sigma to be set (0 or negative gets) \param n number of sigma to be set (0 or negative gets)