8 #include <TDirectory.h> 19 <<
"booking " << histname;
20 return b.
book1D(histname, title, nbins, xmin, xmax)->
getTH1F();
33 <<
"booked " << histname;
34 return b.
book2D(histname, title, nbinsx, xmin, xmax, nbinsy, ymin, ymax)->
getTH2F();
46 <<
" booked " << histname;
50 vector<float> ybins(nbinsy + 1);
51 double binsize = (ymax -
ymin) / nbinsy;
52 for (
int i = 0;
i <= nbinsy; ++
i) {
53 ybins[
i] = ymin +
i * binsize;
56 return b.
book2D(histname, title, nbinsx, xbins, nbinsy, &ybins[0])->
getTH2F();
69 <<
"booked " << histname;
84 vector<double> xbinsd(nbinsx + 1);
85 for (
int i = 0;
i <= nbinsx; ++
i) {
90 <<
"booked " << histname;
TProfile * getTProfile() const
TH1F * book1D(DQMStore::IBooker &b, const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either through IBooker or plain root
MonitorElement * bookProfile(Args &&...args)
virtual void setDirectory(TDirectory *dir)
virtual ~Benchmark()(false)
MonitorElement * book1D(Args &&...args)
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 through IBooker or plain root
MonitorElement * book2D(Args &&...args)
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, either through IBooker or plain root