mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-07 21:30:05 +02:00
Reintroduced changes having confirmed segmentation fault unrelated to changes made for CM correction - still confirming CM correction for Jungfrau correct.
This commit is contained in:
parent
5caf1966fb
commit
88e6b9685e
@ -19,7 +19,7 @@ class commonModeSubtractionSuperColumnJF : public commonModeSubtraction {
|
||||
mean2[iroi] += val * val;
|
||||
nCm[iroi]++;
|
||||
if (nCm[iroi] > 64*256)
|
||||
std::cout << "Too many pixels added " << nCm[iroi] << std::endl
|
||||
std::cout << "Too many pixels added " << nCm[iroi] << std::endl;
|
||||
|
||||
}
|
||||
};
|
||||
@ -27,8 +27,6 @@ class commonModeSubtractionSuperColumnJF : public commonModeSubtraction {
|
||||
virtual commonModeSubtractionSuperColumnJF *Clone() {
|
||||
return new commonModeSubtractionSuperColumnJF();
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
@ -2,11 +2,11 @@
|
||||
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||
//#include "sls/ansi.h"
|
||||
#include <iostream>
|
||||
|
||||
//enable common mode subtraction
|
||||
//#define CMS
|
||||
|
||||
//disable common mode subtraction
|
||||
//#undef CMS
|
||||
#undef CMS
|
||||
#undef CORR
|
||||
#define C_GHOST 0.0004
|
||||
|
||||
@ -184,11 +184,13 @@ int main(int argc, char *argv[]) {
|
||||
cout << "Nframes is " << nframes << endl;
|
||||
|
||||
uint32_t nnx, nny;
|
||||
// commonModeSubtraction *cm = NULL;
|
||||
//commonModeSubtraction *cm = NULL;
|
||||
//#ifdef CMS
|
||||
// cm = new commonModeSubtractionSuperColumnJF();
|
||||
// std::cout << "Enabled common mode subtraction" << std::endl;
|
||||
//cm = new commonModeSubtractionSuperColumnJF();
|
||||
//std::cout << "Enabled common mode subtraction" << std::endl;
|
||||
//#endif
|
||||
//singlePhotonDetector *filter = new singlePhotonDetector(
|
||||
// decoder, 3, nsigma, 1, cm, nped, 200, -1, -1, gainmap, NULL);
|
||||
singlePhotonDetector *filter = new singlePhotonDetector(
|
||||
decoder, 3, nsigma, 1, NULL, nped, 200, -1, -1, gainmap, NULL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user