7 #include <TDirectory.h>
18 <<
"booking " << histname;
19 return b.
book1D(histname, title, nbins, xmin, xmax)->
getTH1F();
32 <<
"booked " << histname;
33 return b.
book2D(histname, title, nbinsx, xmin, xmax, nbinsy, ymin, ymax)->
getTH2F();
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 TH2F * getTH2F() const
virtual TH1F * getTH1F() const
virtual void setDirectory(TDirectory *dir)
void write()
write to the TFile, in plain ROOT mode. No need to call this function in DQM mode ...
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
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
virtual TProfile * getTProfile() const
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
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 ...