 |
Belle II Software
release-05-02-19
|
20 #include <boost/accumulators/accumulators.hpp>
21 #include <boost/accumulators/statistics.hpp>
22 namespace bacc = boost::accumulators;
34 class ECLLocalRunCalibAcc {
44 const float& min_value,
45 const float& max_value,
46 const int*
const ndevs);
71 void add(
const float& value);
94 const int& count)
const;
102 const float& stddev);
int m_count
Number of accepted events.
bool isValueInRange(const float &value) const
Check value.
int getCount() const
Get number of accepted events.
void add(const float &value)
Add value.
std::vector< int > m_data
Vector of accepted values.
~ECLLocalRunCalibAcc()
Destructor.
float m_rightLimit
Upper value limit.
float getStdDev() const
Get standard deviation.
float m_leftLimit
Lower value limit.
ECLLocalRunCalibAcc(const float &min_value, const float &max_value, const int *const ndevs)
Constructor.
float calcStdDev(const float &variance, const int &count) const
Calculate standard deviation using variance and number of accepted events.
int getNOfEvents() const
Get total number of events.
void calc()
Calculate mean value, standard deviation and number of accepted events.
float m_stddev
Standard deviation.
float getMean() const
Get mean value.
Abstract base class for different kinds of events.
const int *const c_ndevs
Number of standard deviations used to update value limits.
void updateLimits(const float &mean, const float &stddev)
Update value limits.
int m_nevents
Total number of events.