![]() |
Belle II Software release-09-00-03
|
ECLLocalRunCalibAcc is the class designed to accumulate mean values, standard deviation and number of accepted events. More...
#include <ECLLocalRunCalibAcc.h>

Public Member Functions | |
| ECLLocalRunCalibAcc (const float &min_value, const float &max_value, const int *const ndevs) | |
| Constructor. | |
| ~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. | |
Private Member Functions | |
| bool | isValueInRange (const float &value) const |
| Check value. | |
| float | calcStdDev (const float &variance, const int &count) const |
| Calculate standard deviation using variance and number of accepted events. | |
| void | updateLimits (const float &mean, const float &stddev) |
| Update value limits. | |
Private Attributes | |
| 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 | ( | const float & | min_value, |
| const float & | max_value, | ||
| const int *const | ndevs | ||
| ) |
Constructor.
| 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.
| ~ECLLocalRunCalibAcc | ( | ) |
| void add | ( | const float & | value | ) |
Add value.
Definition at line 43 of file ECLLocalRunCalibAcc.cc.
| void calc | ( | ) |
Calculate mean value, standard deviation and number of accepted events.
Definition at line 65 of file ECLLocalRunCalibAcc.cc.
|
private |
Calculate standard deviation using variance and number of accepted events.
| variance | is the variance. |
| count | is the number of accepted events. |
Definition at line 50 of file ECLLocalRunCalibAcc.cc.
| int getCount | ( | ) | const |
Get number of accepted events.
Definition at line 116 of file ECLLocalRunCalibAcc.cc.
| float getMean | ( | ) | const |
| int getNOfEvents | ( | ) | const |
Get total number of events.
Definition at line 111 of file ECLLocalRunCalibAcc.cc.
| float getStdDev | ( | ) | const |
Get standard deviation.
Definition at line 126 of file ECLLocalRunCalibAcc.cc.
|
private |
Check value.
| value | is the amplitude or time value |
Definition at line 37 of file ECLLocalRunCalibAcc.cc.
|
private |
Update value limits.
| mean | is the mean value. |
| stddev | is the standard deviation. |
Definition at line 56 of file ECLLocalRunCalibAcc.cc.
|
private |
Number of standard deviations used to update value limits.
Definition at line 109 of file ECLLocalRunCalibAcc.h.
|
private |
Number of accepted events.
Definition at line 118 of file ECLLocalRunCalibAcc.h.
|
private |
Vector of accepted values.
Definition at line 130 of file ECLLocalRunCalibAcc.h.
|
private |
Lower value limit.
Definition at line 99 of file ECLLocalRunCalibAcc.h.
|
private |
Mean value.
Definition at line 122 of file ECLLocalRunCalibAcc.h.
|
private |
Total number of events.
Definition at line 113 of file ECLLocalRunCalibAcc.h.
|
private |
Upper value limit.
Definition at line 103 of file ECLLocalRunCalibAcc.h.
|
private |
Standard deviation.
Definition at line 126 of file ECLLocalRunCalibAcc.h.