12#ifndef ALICEO2_FIT_DCSDPVALUES_H_
13#define ALICEO2_FIT_DCSDPVALUES_H_
24 std::vector<std::pair<O2LongUInt, O2LongInt>>
values;
28 values = std::vector<std::pair<O2LongUInt, O2LongInt>>();
33 values.push_back(std::pair<O2LongUInt, O2LongInt>(timestamp,
value));
46 void print(
const bool verbose =
false)
const
48 LOG(info) <<
values.size() <<
" value(s)";
49 if (verbose && !
values.empty()) {
51 LOG(info) <<
"timestamp = " <<
val.first <<
", value = " <<
val.second;
53 }
else if (!
values.empty()) {
54 LOG(info) <<
"First value: "
55 <<
"timestamp = " <<
values.front().first <<
", value = " <<
values.front().second;
56 LOG(info) <<
"Last value: "
57 <<
"timestamp = " <<
values.back().first <<
", value = " <<
values.back().second;
GLsizei const GLfloat * value
GLenum GLsizei GLsizei GLint * values
TFitResultPtr fit(const size_t nBins, const T *arr, const T xMin, const T xMax, TF1 &func, std::string_view option="")
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
ClassDefNV(DCSDPValues, 3)
void print(const bool verbose=false) const
void add(uint64_t timestamp, int64_t value)
std::vector< std::pair< O2LongUInt, O2LongInt > > values
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"