13#include <boost/accumulators/accumulators.hpp>
14#include <boost/accumulators/statistics.hpp>
15namespace bacc = boost::accumulators;
37 const float& min_value,
38 const float& max_value,
39 const int*
const ndevs);
64 void add(
const float& value);
87 const int& count)
const;
ECLLocalRunCalibAcc is the class designed to accumulate mean values, standard deviation and number of...
void calc()
Calculate mean value, standard deviation and number of accepted events.
float calcStdDev(const float &variance, const int &count) const
Calculate standard deviation using variance and number of accepted events.
float m_leftLimit
Lower value limit.
int getCount() const
Get number of accepted events.
float getMean() const
Get mean value.
float m_rightLimit
Upper value limit.
~ECLLocalRunCalibAcc()
Destructor.
void updateLimits(const float &mean, const float &stddev)
Update value limits.
bool isValueInRange(const float &value) const
Check value.
std::vector< int > m_data
Vector of accepted values.
int m_nevents
Total number of events.
int getNOfEvents() const
Get total number of events.
void add(const float &value)
Add value.
const int *const c_ndevs
Number of standard deviations used to update value limits.
float getStdDev() const
Get standard deviation.
int m_count
Number of accepted events.
float m_stddev
Standard deviation.
Abstract base class for different kinds of events.