 |
Belle II Software
release-05-02-19
|
19 #include <ecl/modules/eclLocalRunCalibration/ECLLocalRunCalibAcc.h>
20 #include <framework/database/IntervalOfValidity.h>
21 #include <ecl/utility/ECLDBTool.h>
34 class ECLLocalRunCalibUnit {
44 const float& min_value,
45 const float& max_value,
46 const int*
const ndevs);
58 void add(
const int& cellid,
const float& value);
76 const std::string& dbName,
77 const std::string& payloadName,
78 const IntervalOfValidity& iov,
80 const bool& changePrev,
111 const std::string& dbName,
113 const IntervalOfValidity& iov);
120 const IntervalOfValidity& iov);
131 template <
typename T>
134 T(ECLLocalRunCalibAcc::*getter)()
const);
bool isNegAmpl() const
Check presence of negative amplitudes in the current run.
std::vector< ECLLocalRunCalibAcc > m_unitData
Mean value and standard deviation accumulators for each cell id.
void changePreviousIoV(const ECLDBTool &payload, const IntervalOfValidity &iov)
Change previous validity interval.
void markAsRefference(const bool &isLocal, const std::string &dbName, const int &run, const IntervalOfValidity &iov)
Mark current run as reference.
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 add(const int &cellid, const float &value)
Add value to accumulate mean value, standard deviation and number of accepted events.
Abstract base class for different kinds of events.
ECLLocalRunCalibUnit(const int &ncellids, const float &min_value, const float &max_value, const int *const ndevs)
Constructor.
void callAccGetter(std::vector< T > *vec, T(ECLLocalRunCalibAcc::*getter)() const)
Getter of accumulated values.
void calc()
Calculate accumulated values.
void enableNegAmpl()
This function will be called only in the case, if negative amplitudes are observed in the current run...
~ECLLocalRunCalibUnit()
Destructor.
bool m_isNegAmpl
m_isNegAmpl is true if there are negative amplitudes in the current run and false otherwise.