12#ifndef _O2_HISTOMANAGER_H_
13#define _O2_HISTOMANAGER_H_
33 HistoManager(
const std::string& dirname =
"",
const std::string& fname =
"histoman.root",
bool load = kFALSE,
const std::string& prefix =
"");
37 void addPrefix(
const std::string& pref =
"");
47 int addHisto(TH1* histo,
int at = -1);
48 int addGraph(TGraph* gr,
int at = -1);
55 const std::string&
getDirName()
const {
return mDirName; }
58 void write(TFile* file =
nullptr);
59 int write(
const std::string& flname)
74 int load(
const std::string& fname,
const std::string& dirname =
"");
76 void purify(
bool emptyToo = kFALSE);
78 void Print(Option_t* option =
"")
const override;
79 void Clear(Option_t* option =
"")
override;
80 void Delete(Option_t* option =
"")
override;
85 std::string mDefName{};
86 std::string mDirName{};
88 ClassDefOverride(HistoManager, 0);
void purify(bool emptyToo=kFALSE)
TH1F * getHisto1F(int id) const
int addHisto(TH1 *histo, int at=-1)
HistoManager * createClone(const std::string &prefix) const
void scaleHistos(Double_t c1=1.)
void addPrefix(const std::string &pref="")
void setMarkerStyle(Style_t mstyle=1, Size_t msize=1)
int load(const std::string &fname, const std::string &dirname="")
void setDirName(const std::string &name)
TProfile * getHistoP(int id) const
void addHistos(const HistoManager *hm, Double_t c1=1.)
void Delete(Option_t *option="") override
const std::string & getFileName() const
void setColor(int tcolor=1)
void divideHistos(const HistoManager *hm)
const std::string & getDirName() const
void Clear(Option_t *option="") override
TGraph * getGraph(int id) const
void Print(Option_t *option="") const override
int write(const std::string &flname)
TH2F * getHisto2F(int id) const
void setMarkerSize(Size_t msize=1)
void write(TFile *file=nullptr)
TH1 * getHisto(int id) const
int addGraph(TGraph *gr, int at=-1)
void setFile(TFile *file)
void setFileName(const std::string &fname)
void multiplyHistos(const HistoManager *hm)
GLuint const GLchar * name
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...