12#include <ecl/modules/eclLocalRunCalibration/ECLLocalRunCalibAcc.h>
13#include <framework/database/IntervalOfValidity.h>
14#include <ecl/utility/ECLDBTool.h>
37 const float& min_value,
38 const float& max_value,
39 const int*
const ndevs);
51 void add(
const int& cellid,
const float& value);
69 const std::string& dbName,
70 const std::string& payloadName,
73 const bool& changePrev,
104 const std::string& dbName,
124 template <
typename T>
ECLLocalRunCalibAcc is the class designed to accumulate mean values, standard deviation and number of...
ECLLocalRunCalibUnit is the class designed for the control of mean value and the standard deviation a...
void calc()
Calculate accumulated values.
std::vector< ECLLocalRunCalibAcc > m_unitData
Mean value and standard deviation accumulators for each cell id.
void callAccGetter(std::vector< T > *vec, T(ECLLocalRunCalibAcc::*getter)() const)
Getter of accumulated values.
void markAsRefference(const bool &isLocal, const std::string &dbName, const int &run, const IntervalOfValidity &iov)
Mark current run as reference.
void enableNegAmpl()
This function will be called only in the case, if negative amplitudes are observed in the current run...
void changePreviousIoV(const ECLDBTool &payload, const IntervalOfValidity &iov)
Change previous validity interval.
bool m_isNegAmpl
m_isNegAmpl is true if there are negative amplitudes in the current run and false otherwise.
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.
~ECLLocalRunCalibUnit()
Destructor.
bool isNegAmpl() const
Check presence of negative amplitudes in the current run.
void add(const int &cellid, const float &value)
Add value to accumulate mean value, standard deviation and number of accepted events.
A class that describes the interval of experiments/runs for which an object in the database is valid.
Abstract base class for different kinds of events.