7 #include <TDirectory.h> 18 <<
"booking " << histname;
32 <<
"booked " << histname;
45 <<
" booked " << histname;
49 vector<float> ybins(nbinsy + 1);
50 double binsize = (
ymax -
ymin) / nbinsy;
51 for (
int i = 0;
i <= nbinsy; ++
i) {
52 ybins[
i] =
ymin +
i * binsize;
55 return b.book2D(histname,
title, nbinsx,
xbins, nbinsy, &ybins[0])->getTH2F();
68 <<
"booked " << histname;
83 vector<double> xbinsd(nbinsx + 1);
84 for (
int i = 0;
i <= nbinsx; ++
i) {
89 <<
"booked " << histname;
TH1F * book1D(DQMStore::IBooker &b, const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child ...
virtual ~Benchmark() noexcept(false)
virtual void setDirectory(TDirectory *dir)
void write()
write to the TFile, in plain ROOT mode. No need to call this function in DQM mode ...
TH2F * book2D(DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float xmin, float xmax, int nbinsy, float ymin, float ymax)
book a 2D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child ...
Log< level::Info, false > LogInfo
TProfile * bookProfile(DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float xmin, float xmax, float ymin, float ymax, const char *option)
book a TProfile histogram, either with DQM or plain root depending if DQM_ has been initialized in a ...