Fix bug to allow larger clusters

This commit is contained in:
2023-03-17 15:34:08 +01:00
parent 943a85cbd5
commit 1bd813d620
5 changed files with 43 additions and 16 deletions

View File

@ -19,7 +19,7 @@ using namespace std;
class multiThreadedCountingDetector : public multiThreadedAnalogDetector {
public:
multiThreadedCountingDetector(singlePhotonDetector *d, int n, int fs = 1000)
multiThreadedCountingDetector(singlePhotonDetector *d, int n, int fs = 1000)
: multiThreadedAnalogDetector(d, n, fs){};
// virtual
// ~multiThreadedCountingDetector{multiThreadedAnalogDetector::~multiThreadedAnalogDetector();};
@ -33,6 +33,11 @@ class multiThreadedCountingDetector : public multiThreadedAnalogDetector {
for (int i = 0; i < nThreads; i++)
(dets[i])->setEnergyRange(emi, ema);
};
virtual void setClusterSize(int sizex, int sizey) {
for (int i = 0; i < nThreads; i++)
((dets[i]))->setClusterSize(sizex, sizey);
//std::cout << "+++++++++++++ sizex " << sizex << std::endl;
};
};
#endif