8 #include <TDirectory.h> 25 edm::LogInfo(
"Benchmark") <<
" Benchmark::book1D " <<
"booking "<<histname;
31 int nbinsy,
float ymin,
float ymax ) {
32 edm::LogInfo(
"Benchmark") <<
" Benchmark::book2D "<<
"booked "<<histname;
33 return b.
book2D(histname,title,nbinsx,xmin, xmax, nbinsy, ymin, ymax)->
getTH2F();
37 int nbinsx,
float*
xbins,
38 int nbinsy,
float ymin,
float ymax ) {
39 edm::LogInfo(
"Benchmark") <<
" Benchmark::book2D " <<
" booked "<<histname;
42 vector<float> ybins( nbinsy+1 );
43 double binsize = (ymax -
ymin) / nbinsy;
44 for(
int i=0;
i<=nbinsy; ++
i) {
45 ybins[
i] = ymin +
i*binsize;
48 return b.
book2D(histname,title,nbinsx, xbins, nbinsy, &ybins[0])->
getTH2F();
54 edm::LogInfo(
"Benchmark") <<
" Benchmark::bookProfile "<<
"booked "<<histname;
59 int nbinsx,
float*
xbins,
63 vector<double> xbinsd(nbinsx+1);
64 for(
int i=0;
i<=nbinsx; ++
i) {
68 edm::LogInfo(
"Benchmark") <<
" Benchmark::bookProfile "<<
"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 ...
MonitorElement * bookProfile(Args &&...args)
virtual void setDirectory(TDirectory *dir)
void write()
write to the TFile, in plain ROOT mode. No need to call this function in DQM mode ...
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 with DQM or plain root depending if DQM_ has been initialized in a child ...
MonitorElement * book2D(Args &&...args)
TH1F * getTH1F(void) const
TProfile * getTProfile(void) const
TH2F * getTH2F(void) const
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 ...