From f3c669f19301488687166c405e37ffd4a07903ba Mon Sep 17 00:00:00 2001 From: Kirsty Paton Date: Thu, 1 Feb 2024 16:44:51 +0100 Subject: [PATCH] Previously forgot to change singlePhotonCounter on line 192 of jungfrauRawDataProcess.cpp so that the common mode correction was applied again. Now fixed. --- .../jungfrauExecutables/jungfrauRawDataProcess.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/slsDetectorCalibration/jungfrauExecutables/jungfrauRawDataProcess.cpp b/slsDetectorCalibration/jungfrauExecutables/jungfrauRawDataProcess.cpp index b71076dfb..6e9b65ec0 100644 --- a/slsDetectorCalibration/jungfrauExecutables/jungfrauRawDataProcess.cpp +++ b/slsDetectorCalibration/jungfrauExecutables/jungfrauRawDataProcess.cpp @@ -184,15 +184,13 @@ int main(int argc, char *argv[]) { cout << "Nframes is " << nframes << endl; uint32_t nnx, nny; - //commonModeSubtraction *cm = NULL; -//#ifdef CMS - //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); + commonModeSubtraction *cm = NULL; +#ifdef CMS + cm = new commonModeSubtractionSuperColumnJF(); + std::cout << "Enabled common mode subtraction" << std::endl; +#endif singlePhotonDetector *filter = new singlePhotonDetector( - decoder, 3, nsigma, 1, NULL, nped, 200, -1, -1, gainmap, NULL); + decoder, 3, nsigma, 1, cm, nped, 200, -1, -1, gainmap, NULL); if (gainfname) {