12#ifndef ALICEO2_MATHUTILS_VALUEMONITOR_H_
13#define ALICEO2_MATHUTILS_VALUEMONITOR_H_
16#include <unordered_map>
56 std::string mFileName;
58 std::unordered_map<const char*, TH1*> mHistos;
64inline TH1* makeHist(
const char*
key)
70inline TH1* makeHist<int>(
const char*
key)
72 return new TH1I(
key,
key, 200, 0, 1);
76inline TH1* makeHist<double>(
const char*
key)
78 return new TH1D(
key,
key, 200, 0, 1);
82inline TH1* makeHist<float>(
const char*
key)
84 return new TH1F(
key,
key, 200, 0, 1);
93 auto iter = mHistos.find(
key);
94 if (iter == mHistos.end()) {
95 auto newHist = makeHist<T>(
key);
96 newHist->SetCanExtend(TH1::kAllAxes);
97 mHistos[
key] = newHist;
Class for time synchronization of RawReader instances.
void Collect(const char *key, T value)
main interface to add a value to a histogram called "key"
GLsizei const GLfloat * value
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Common utility functions.