mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 17:10:03 +02:00
Fix missing includes
This commit is contained in:
parent
7396ceed54
commit
be607e8a2e
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -206,6 +206,7 @@ class singlePhotonDetector : public analogDetector<uint16_t> {
|
|||||||
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)
|
||||||
\returns actual number of sigma parameter
|
\returns actual number of sigma parameter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user