mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
fixed bug by pedestal cloning
This commit is contained in:
@ -31,7 +31,7 @@ class MovingStat
|
|||||||
*/
|
*/
|
||||||
void Set(double val, double rms=0, int m=-1)
|
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;
|
m_newM=val*m_n;
|
||||||
// cout << "set " << val << " " << m << " " << m_n << " " << m_newM << endl;
|
// cout << "set " << val << " " << m << " " << m_n << " " << m_newM << endl;
|
||||||
SetRMS(rms);
|
SetRMS(rms);
|
||||||
|
Reference in New Issue
Block a user