ECLLocalRunCalibUnit is the class designed for the control of mean value and the standard deviation accumulators.
More...
#include <ECLLocalRunCalibUnit.h>
|
| ECLLocalRunCalibUnit (const int &ncellids, const float &min_value, const float &max_value, const int *const ndevs) |
| Constructor. More...
|
|
| ~ECLLocalRunCalibUnit () |
| Destructor.
|
|
void | add (const int &cellid, const float &value) |
| Add value to accumulate mean value, standard deviation and number of accepted events. More...
|
|
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. More...
|
|
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.
|
|
|
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()
ECLLocalRunCalibUnit |
( |
const int & |
ncellids, |
|
|
const float & |
min_value, |
|
|
const float & |
max_value, |
|
|
const int *const |
ndevs |
|
) |
| |
Constructor.
- Parameters
-
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.
ECLLocalRunCalibAcc is the class designed to accumulate mean values, standard deviation and number of...
std::vector< ECLLocalRunCalibAcc > m_unitData
Mean value and standard deviation accumulators for each cell id.
bool m_isNegAmpl
m_isNegAmpl is true if there are negative amplitudes in the current run and false otherwise.
◆ add()
void add |
( |
const int & |
cellid, |
|
|
const float & |
value |
|
) |
| |
Add value to accumulate mean value, standard deviation and number of accepted events.
- Parameters
-
cellid | is the cell id number. |
value | is the accumulated value. |
Definition at line 49 of file ECLLocalRunCalibUnit.cc.
◆ callAccGetter()
void callAccGetter |
( |
std::vector< T > * |
vec, |
|
|
T(ECLLocalRunCalibAcc::*)() const |
getter |
|
) |
| |
|
private |
Getter of accumulated values.
- Parameters
-
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.
◆ changePreviousIoV()
Change previous validity interval.
- Parameters
-
payload | is the connection to a certain payload. |
iov | is the current validity interval. |
Definition at line 84 of file ECLLocalRunCalibUnit.cc.
◆ markAsRefference()
void markAsRefference |
( |
const bool & |
isLocal, |
|
|
const std::string & |
dbName, |
|
|
const int & |
run, |
|
|
const IntervalOfValidity & |
iov |
|
) |
| |
|
private |
Mark current run as reference.
- Parameters
-
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.
◆ writeToDB()
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.
- Parameters
-
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.
The documentation for this class was generated from the following files: