8 #include <TDirectory.h>
26 edm::LogInfo(
"Benchmark") <<
" Benchmark::book1D " <<
"booking "<<histname;
34 int nbinsy,
float ymin,
float ymax ) {
36 edm::LogInfo(
"Benchmark") <<
" Benchmark::book2D "<<
"booked "<<histname;
37 return b.
book2D(histname,title,nbinsx,xmin, xmax, nbinsy, ymin, ymax)->
getTH2F();
43 int nbinsx,
float*
xbins,
44 int nbinsy,
float ymin,
float ymax ) {
46 edm::LogInfo(
"Benchmark") <<
" Benchmark::book2D " <<
" 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();
62 float ymin,
float ymax,
const char* option ) {
64 edm::LogInfo(
"Benchmark") <<
" Benchmark::bookProfile "<<
"booked "<<histname;
71 int nbinsx,
float*
xbins,
72 float ymin,
float ymax,
const char* option ) {
75 vector<double> xbinsd(nbinsx+1);
76 for(
int i=0;
i<=nbinsx; ++
i) {
81 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 ...
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 ...