ECLLocalRunCalibAcc is the class designed to accumulate mean values, standard deviation and number of accepted events.
More...
#include <ECLLocalRunCalibAcc.h>
|
| ECLLocalRunCalibAcc (const float &min_value, const float &max_value, const int *const ndevs) |
| Constructor. More...
|
|
| ~ECLLocalRunCalibAcc () |
| Destructor.
|
|
int | getNOfEvents () const |
| Get total number of events.
|
|
int | getCount () const |
| Get number of accepted events.
|
|
float | getMean () const |
| Get mean value.
|
|
float | getStdDev () const |
| Get standard deviation.
|
|
void | add (const float &value) |
| Add value.
|
|
void | calc () |
| Calculate mean value, standard deviation and number of accepted events.
|
|
|
bool | isValueInRange (const float &value) const |
| Check value. More...
|
|
float | calcStdDev (const float &variance, const int &count) const |
| Calculate standard deviation using variance and number of accepted events. More...
|
|
void | updateLimits (const float &mean, const float &stddev) |
| Update value limits. More...
|
|
|
float | m_leftLimit |
| Lower value limit.
|
|
float | m_rightLimit |
| Upper value limit.
|
|
const int *const | c_ndevs |
| Number of standard deviations used to update value limits.
|
|
int | m_nevents |
| Total number of events.
|
|
int | m_count |
| Number of accepted events.
|
|
float | m_mean |
| Mean value.
|
|
float | m_stddev |
| Standard deviation.
|
|
std::vector< int > | m_data |
| Vector of accepted values.
|
|
ECLLocalRunCalibAcc is the class designed to accumulate mean values, standard deviation and number of accepted events.
Definition at line 27 of file ECLLocalRunCalibAcc.h.
◆ ECLLocalRunCalibAcc()
ECLLocalRunCalibAcc |
( |
const float & |
min_value, |
|
|
const float & |
max_value, |
|
|
const int *const |
ndevs |
|
) |
| |
Constructor.
- Parameters
-
min_value | is the lower value limit. |
max_value | is the upper value limit |
ndevs | is the number of standard deviations. used to update value limits. |
Definition at line 18 of file ECLLocalRunCalibAcc.cc.
float m_leftLimit
Lower value limit.
float m_rightLimit
Upper value limit.
std::vector< int > m_data
Vector of accepted values.
int m_nevents
Total number of events.
const int *const c_ndevs
Number of standard deviations used to update value limits.
int m_count
Number of accepted events.
float m_stddev
Standard deviation.
◆ calcStdDev()
float calcStdDev |
( |
const float & |
variance, |
|
|
const int & |
count |
|
) |
| const |
|
private |
Calculate standard deviation using variance and number of accepted events.
- Parameters
-
variance | is the variance. |
count | is the number of accepted events. |
Definition at line 50 of file ECLLocalRunCalibAcc.cc.
◆ isValueInRange()
bool isValueInRange |
( |
const float & |
value | ) |
const |
|
private |
◆ updateLimits()
void updateLimits |
( |
const float & |
mean, |
|
|
const float & |
stddev |
|
) |
| |
|
private |
Update value limits.
- Parameters
-
mean | is the mean value. |
stddev | is the standard deviation. |
Definition at line 56 of file ECLLocalRunCalibAcc.cc.
The documentation for this class was generated from the following files: