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:
bergamaschi
2013-12-11 09:56:09 +00:00
parent 01f87cff96
commit 1ae2d78bf5
8 changed files with 365 additions and 420 deletions

View File

@@ -7,11 +7,15 @@
class MovingStat
{
public:
MovingStat() : n(1000), m_n(0) {}
MovingStat(int nn=1000) : n(nn), m_n(0) {}
void Clear()
{
m_n = 0;
m_n = 0;
m_oldM=0;
m_newM=0;
m_oldM2=0;
m_newM2=0;
}
void SetN(int i) {n=i;};