From cadb4cff93783771716baf11e7379539c3c799e2 Mon Sep 17 00:00:00 2001 From: Anna Bergamaschi Date: Wed, 21 Aug 2019 16:27:14 +0200 Subject: [PATCH] moench02 common mode moved to new structure --- slsDetectorCalibration/moenchCommonMode.h | 56 +++++++++---------- .../moenchExecutables/moenchZmqProcess.cpp | 2 +- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/slsDetectorCalibration/moenchCommonMode.h b/slsDetectorCalibration/moenchCommonMode.h index dba0df2b7..b34428113 100644 --- a/slsDetectorCalibration/moenchCommonMode.h +++ b/slsDetectorCalibration/moenchCommonMode.h @@ -1,7 +1,7 @@ #ifndef MOENCHCOMMONMODE_H #define MOENCHCOMMONMODE_H -#include "commonModeSubtraction.h" +#include "commonModeSubtractionNew.h" class moenchCommonMode : public commonModeSubtraction { /** @short class to calculate the common mode noise for moench02 i.e. on 4 supercolumns separately */ @@ -9,35 +9,35 @@ class moenchCommonMode : public commonModeSubtraction { /** constructor - initalizes a commonModeSubtraction with 4 different regions of interest \param nn number of samples for the moving average */ - moenchCommonMode(int nn=1000) : commonModeSubtraction(nn,4){} ; + moenchCommonMode(int nn=1000) : commonModeSubtraction(0){} ; - /** add value to common mode as a function of the pixel value, subdividing the region of interest in the 4 supercolumns of 40 columns each; - \param val value to add to the common mode - \param ix pixel coordinate in the x direction - \param iy pixel coordinate in the y direction - */ - virtual void addToCommonMode(double val, int ix=0, int iy=0) { - (void) iy; - int isc=ix/40; - if (isc>=0 && isc=0 && isc0) return cmPed[isc]/nCm[isc]-cmStat[isc].Mean(); - } - return 0; - }; + /* /\** add value to common mode as a function of the pixel value, subdividing the region of interest in the 4 supercolumns of 40 columns each; */ + /* \param val value to add to the common mode */ + /* \param ix pixel coordinate in the x direction */ + /* \param iy pixel coordinate in the y direction */ + /* *\/ */ + /* virtual void addToCommonMode(double val, int ix=0, int iy=0) { */ + /* (void) iy; */ + /* int isc=ix/40; */ + /* if (isc>=0 && isc=0 && isc0) return cmPed[isc]/nCm[isc]-cmStat[isc].Mean(); */ + /* } */ + /* return 0; */ + /* }; */ }; diff --git a/slsDetectorCalibration/moenchExecutables/moenchZmqProcess.cpp b/slsDetectorCalibration/moenchExecutables/moenchZmqProcess.cpp index e256dd5d2..c1517b970 100644 --- a/slsDetectorCalibration/moenchExecutables/moenchZmqProcess.cpp +++ b/slsDetectorCalibration/moenchExecutables/moenchZmqProcess.cpp @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) { char dummybuff[size]; int ncol_cm=20; - double xt_ghost=0.00045; + double xt_ghost=0.0004; moench03CommonMode *cm=new moench03CommonMode(ncol_cm); moench03GhostSummation *gs=new moench03GhostSummation(det, xt_ghost); double *gainmap=NULL;