![]() |
Belle II Software release-09-00-03
|
ECLLocalRunCalibUnit is the class designed for the control of mean value and the standard deviation accumulators. More...
#include <ECLLocalRunCalibUnit.h>

Public Member Functions | |
| ECLLocalRunCalibUnit (const int &ncellids, const float &min_value, const float &max_value, const int *const ndevs) | |
| Constructor. | |
| ~ECLLocalRunCalibUnit () | |
| Destructor. | |
| void | add (const int &cellid, const float &value) |
| Add value to accumulate mean value, standard deviation and number of accepted events. | |
| void | calc () |
| Calculate accumulated values. | |
| void | writeToDB (bool isLocal, const std::string &dbName, const std::string &payloadName, const IntervalOfValidity &iov, const int &run, const bool &changePrev, const bool &addref) |
| Write calibration results into a database. | |
| void | enableNegAmpl () |
| This function will be called only in the case, if negative amplitudes are observed in the current run. | |
| bool | isNegAmpl () const |
| Check presence of negative amplitudes in the current run. | |
Private Member Functions | |
| void | markAsRefference (const bool &isLocal, const std::string &dbName, const int &run, const IntervalOfValidity &iov) |
| Mark current run as reference. | |
| void | changePreviousIoV (const ECLDBTool &payload, const IntervalOfValidity &iov) |
| Change previous validity interval. | |
| template<typename T > | |
| void | callAccGetter (std::vector< T > *vec, T(ECLLocalRunCalibAcc::*getter)() const) |
| Getter of accumulated values. | |
Private Attributes | |
| bool | m_isNegAmpl |
| m_isNegAmpl is true if there are negative amplitudes in the current run and false otherwise. | |
| std::vector< ECLLocalRunCalibAcc > | m_unitData |
| Mean value and standard deviation accumulators for each cell id. | |
ECLLocalRunCalibUnit is the class designed for the control of mean value and the standard deviation accumulators.
Definition at line 27 of file ECLLocalRunCalibUnit.h.
| ECLLocalRunCalibUnit | ( | const int & | ncellids, |
| const float & | min_value, | ||
| const float & | max_value, | ||
| const int *const | ndevs | ||
| ) |
Constructor.
| ncellids | is the number of cell ids. |
| min_value | is the minimum allowed value. |
| max_value | is the maximum allowed value. |
| ndevs | is the number of standard deviations. |
Definition at line 16 of file ECLLocalRunCalibUnit.cc.
| ~ECLLocalRunCalibUnit | ( | ) |
| void add | ( | const int & | cellid, |
| const float & | value | ||
| ) |
Add value to accumulate mean value, standard deviation and number of accepted events.
| cellid | is the cell id number. |
| value | is the accumulated value. |
Definition at line 49 of file ECLLocalRunCalibUnit.cc.
| void calc | ( | ) |
Calculate accumulated values.
Definition at line 54 of file ECLLocalRunCalibUnit.cc.
|
private |
Getter of accumulated values.
| vec | is the vector used to get vector of accumulated values. |
| getter | is the name of the getter method. |
Definition at line 62 of file ECLLocalRunCalibUnit.cc.
|
private |
Change previous validity interval.
| payload | is the connection to a certain payload. |
| iov | is the current validity interval. |
Definition at line 84 of file ECLLocalRunCalibUnit.cc.
| void enableNegAmpl | ( | ) |
This function will be called only in the case, if negative amplitudes are observed in the current run.
Definition at line 35 of file ECLLocalRunCalibUnit.cc.
| bool isNegAmpl | ( | ) | const |
Check presence of negative amplitudes in the current run.
Definition at line 41 of file ECLLocalRunCalibUnit.cc.
|
private |
Mark current run as reference.
| isLocal | is true for local database |
| dbName | is central DB tag or path to a local DB. |
| run | is the current run number. |
| iov | is the current validity interval. |
Definition at line 71 of file ECLLocalRunCalibUnit.cc.
| void writeToDB | ( | bool | isLocal, |
| const std::string & | dbName, | ||
| const std::string & | payloadName, | ||
| const IntervalOfValidity & | iov, | ||
| const int & | run, | ||
| const bool & | changePrev, | ||
| const bool & | addref | ||
| ) |
Write calibration results into a database.
| isLocal | enables usage of a local database. |
| dbName | is the central database tag or path to a local database. |
| payloadName | is the payload name. |
| iov | is the validity interval. |
| run | is the current run number. |
| changePrev | enables previous validity interval changing. |
| addref | is used to mark current run as reference. |
Definition at line 99 of file ECLLocalRunCalibUnit.cc.
|
private |
m_isNegAmpl is true if there are negative amplitudes in the current run and false otherwise.
Definition at line 95 of file ECLLocalRunCalibUnit.h.
|
private |
Mean value and standard deviation accumulators for each cell id.
Definition at line 118 of file ECLLocalRunCalibUnit.h.