mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 09:10:01 +02:00
Fix missing includes
This commit is contained in:
parent
7396ceed54
commit
be607e8a2e
@ -24,6 +24,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <mutex>
|
||||
#include <algorithm>
|
||||
#include<unordered_map>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -846,13 +848,13 @@ class multiThreadedAnalogDetector {
|
||||
int* ff;
|
||||
double* ped;
|
||||
//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
|
||||
int nSC{1}; // Number of storage cells
|
||||
|
||||
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_rms; // Store pedestal RMS arrays 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_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
|
||||
};
|
||||
|
||||
|
@ -205,6 +205,7 @@ class singlePhotonDetector : public analogDetector<uint16_t> {
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user