From 95351d0924360f57fe03dad0eeaeb4ffeb8060ef Mon Sep 17 00:00:00 2001 From: Anna Bergamaschi Date: Tue, 24 Mar 2020 12:05:10 +0100 Subject: [PATCH] fixed bug by pedestal cloning --- slsDetectorCalibration/MovingStat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorCalibration/MovingStat.h b/slsDetectorCalibration/MovingStat.h index 46917c98e..67f7be2dd 100755 --- a/slsDetectorCalibration/MovingStat.h +++ b/slsDetectorCalibration/MovingStat.h @@ -31,7 +31,7 @@ class MovingStat */ void Set(double val, double rms=0, int m=-1) { - if (m>0) m_n = m; else m_n = n; + if (m>=0) m_n = m; else m_n = n; m_newM=val*m_n; // cout << "set " << val << " " << m << " " << m_n << " " << m_newM << endl; SetRMS(rms);