added general class to detect photons

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorCalibration@11 113b152e-814d-439b-b186-022a431db7b5
This commit is contained in:
bergamaschi
2013-12-09 10:26:50 +00:00
parent b8462e24ef
commit 01f87cff96
6 changed files with 409 additions and 111 deletions

View File

@@ -1,7 +1,13 @@
class MovingStat
#ifndef MOVINGSTAT_H
#define MOVINGSTAT_H
#include <math.h>
class MovingStat
{
public:
MovingStat() : m_n(0), n(1000) {}
MovingStat() : n(1000), m_n(0) {}
void Clear()
{
@@ -86,3 +92,4 @@
int m_n;
double m_oldM, m_newM, m_oldM2, m_newM2;
};
#endif