mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00
Created jungfrauCommonMode.h to apply common mode correction for full Jungfrau module.
This commit is contained in:
parent
9834d84f5b
commit
457cc0f70c
35
slsDetectorCalibration/jungfrauCommonMode.h
Normal file
35
slsDetectorCalibration/jungfrauCommonMode.h
Normal file
@ -0,0 +1,35 @@
|
||||
// SPDX-License-Identifier: LGPL-3.0-or-other
|
||||
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||
#ifndef COMMONMODEJF_H
|
||||
#define COMMONMODEJF_H
|
||||
|
||||
#include "commonModeSubtractionNew.h"
|
||||
|
||||
class commonModeSubtractionSuperColumnJF : public commonModeSubtraction {
|
||||
public:
|
||||
commonModeSubtractionSuperColumnJF()
|
||||
: commonModeSubtraction(32){};
|
||||
virtual int getROI(int ix, int iy) { int top=iy/256; int sc=ix/64; return sc+top*16; };
|
||||
/*
|
||||
virtual void addToCommonMode(double val, int ix = 0, int iy = 0) {
|
||||
int iroi = getROI(ix, iy);
|
||||
// cout << iy << " " << ix << " " << iroi ;
|
||||
if (iroi >= 0 && iroi < nROI) {
|
||||
mean[iroi] += val;
|
||||
mean2[iroi] += val * val;
|
||||
nCm[iroi]++;
|
||||
if (nCm[iroi] > 64*256)
|
||||
std::cout << "Too many pixels added " << nCm[iroi] << std::endl
|
||||
|
||||
}
|
||||
};
|
||||
*/
|
||||
virtual commonModeSubtractionSuperColumnJF *Clone() {
|
||||
return new commonModeSubtractionSuperColumnJF();
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user