mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
general funcs for pedestal subtraction, common mode, photon finding developed and implemented specifically for moench
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorCalibration@12 113b152e-814d-439b-b186-022a431db7b5
This commit is contained in:
24
slsDetectorCalibration/pedestalSubtraction.h
Normal file
24
slsDetectorCalibration/pedestalSubtraction.h
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef PEDESTALSUBTRACTION_H
|
||||
#define PEDESTALSUBTRACTION_H
|
||||
|
||||
#include "MovingStat.h"
|
||||
|
||||
class pedestalSubtraction {
|
||||
|
||||
public:
|
||||
pedestalSubtraction (int nn=1000) : stat(nn) {};
|
||||
virtual ~pedestalSubtraction() {};
|
||||
|
||||
virtual void Clear() {stat.Clear();}
|
||||
virtual void addToPedestal(double val){ stat.Calc(val);};
|
||||
virtual double getPedestal(){return stat.Mean();};
|
||||
virtual double getPedestalRMS(){return stat.StandardDeviation();};
|
||||
virtual int SetNPedestals(int i=-1) {if (i>0) stat.SetN(i); return stat.GetN();};
|
||||
|
||||
|
||||
|
||||
private:
|
||||
MovingStat stat;
|
||||
|
||||
};
|
||||
#endif
|
Reference in New Issue
Block a user