CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FlavourHistorgrams.h
Go to the documentation of this file.
1 
2 #ifndef FlavourHistograms_H
3 #define FlavourHistograms_H
4 
8 
9 // #include "BTagPlotPrintC.h"
10 
11 #include "TH1F.h"
12 #include "TCanvas.h"
13 #include "TROOT.h"
14 #include "TSystem.h"
15 #include "TStyle.h"
16 
19 #include <iostream>
20 #include <string>
21 
22 //class DQMStore;
23 
24 //
25 // class to describe Histo
26 //
27 template <class T>
29 
30 public:
31 
32  FlavourHistograms (const std::string& baseNameTitle_ , const std::string& baseNameDescription_ ,
33  const int& nBins_ , const double& lowerBound_ , const double& upperBound_ ,
34  const bool& statistics_ , const bool& plotLog_ , const bool& plotNormalized_ ,
35  const std::string& plotFirst_ , const bool& update, const std::string& folder,
36  const unsigned int& mc, DQMStore::IBooker & ibook) ;
37 
38  virtual ~FlavourHistograms () ;
39 
40 
41  // define arrays (if needed)
42 // void defineArray ( int * dimension , int max , int indexToPlot ) ;
43 
44  // fill entry
45  // For single variables and arrays (for arrays only a single index can be filled)
46  void fill ( const int & flavour, const T & variable) const;
47  void fill ( const int & flavour, const T & variable, const T & w) const;
48 
49  // For single variables and arrays
50  void fill ( const int & flavour, const T * variable) const;
51 
52 
53  void settitle(const char* title) ;
54 
55  void plot (TPad * theCanvas = 0) ;
56 
57  void epsPlot(const std::string& name);
58 
59  // needed for efficiency computations -> this / b
60  // (void : alternative would be not to overwrite the histos but to return a cloned HistoDescription)
61  void divide ( const FlavourHistograms<T> & bHD ) const ;
62 
63  inline void SetMaximum(const double& max) { theMax = max;}
64  inline void SetMinimum(const double& min) { theMin = min;}
65 
66 
67  // trivial access functions
68  inline std::string baseNameTitle () const { return theBaseNameTitle ; }
70  inline int nBins () const { return theNBins ; }
71  inline double lowerBound () const { return theLowerBound ; }
72  inline double upperBound () const { return theUpperBound ; }
73  inline bool statistics () const { return theStatistics ; }
74  inline bool plotLog () const { return thePlotLog ; }
75  inline bool plotNormalized () const { return thePlotNormalized ; }
76  inline std::string plotFirst () const { return thePlotFirst ; }
77  inline int* arrayDimension () const { return theArrayDimension; }
78  inline int maxDimension () const {return theMaxDimension; }
79  inline int indexToPlot () const {return theIndexToPlot; }
80 
81  // access to the histos
82  inline TH1F * histo_all () const { return theHisto_all->getTH1F() ; }
83  inline TH1F * histo_d () const { return theHisto_d ->getTH1F() ; }
84  inline TH1F * histo_u () const { return theHisto_u->getTH1F() ; }
85  inline TH1F * histo_s () const { return theHisto_s->getTH1F() ; }
86  inline TH1F * histo_c () const { return theHisto_c->getTH1F() ; }
87  inline TH1F * histo_b () const { return theHisto_b->getTH1F() ; }
88  inline TH1F * histo_g () const { return theHisto_g->getTH1F() ; }
89  inline TH1F * histo_ni () const { return theHisto_ni->getTH1F() ; }
90  inline TH1F * histo_dus () const { return theHisto_dus->getTH1F() ; }
91  inline TH1F * histo_dusg () const { return theHisto_dusg->getTH1F() ; }
92  inline TH1F * histo_pu () const { return theHisto_pu->getTH1F() ; }
93 
94  std::vector<TH1F*> getHistoVector() const;
95 
96 
97 protected:
98 
99  void fillVariable ( const int & flavour , const T & var , const T & w) const;
100 
101  //
102  // the data members
103  //
104 
105 // T * theVariable ;
106 
107  // for arrays
110  int theIndexToPlot ; // in case that not the complete array has to be plotted
111 
114  int theNBins ;
115  double theLowerBound ;
116  double theUpperBound ;
118  bool thePlotLog ;
120  std::string thePlotFirst ; // one character; gives flavour to plot first: l (light) , c , b
121  double theMin, theMax;
122 
123  // the histos
135 
136  // DQMStore * dqmStore_;
137 
138 
139  // the canvas to plot
140  TCanvas* theCanvas ;
141  private:
143 
144  unsigned int mcPlots_;
145 
146 } ;
147 
148 template <class T>
149 FlavourHistograms<T>::FlavourHistograms (const std::string& baseNameTitle_ , const std::string& baseNameDescription_ ,
150  const int& nBins_ , const double& lowerBound_ , const double& upperBound_ ,
151  const bool& statistics_ , const bool& plotLog_ , const bool& plotNormalized_ ,
152  const std::string& plotFirst_, const bool& update, const std::string& folder,
153  const unsigned int& mc, DQMStore::IBooker & ibook) :
154  // BaseFlavourHistograms () ,
155  // theVariable ( variable_ ) ,
156  theMaxDimension(-1), theIndexToPlot(-1), theBaseNameTitle ( baseNameTitle_ ) , theBaseNameDescription ( baseNameDescription_ ) ,
157  theNBins ( nBins_ ) , theLowerBound ( lowerBound_ ) , theUpperBound ( upperBound_ ) ,
158  theStatistics ( statistics_ ) , thePlotLog ( plotLog_ ) , thePlotNormalized ( plotNormalized_ ) ,
159  thePlotFirst ( plotFirst_ ), theMin(-1.), theMax(-1.), mcPlots_(mc)
160 {
161  // defaults for array dimensions
162  theArrayDimension = 0 ;
163 
164  // check plot order string
165  if ( thePlotFirst == "l" || thePlotFirst == "c" || thePlotFirst == "b" ) {
166  // OK
167  }
168  else {
169  // not correct: print warning and set default (l)
170  std::cout << "FlavourHistograms::FlavourHistograms : thePlotFirst was not correct : " << thePlotFirst << std::endl ;
171  std::cout << "FlavourHistograms::FlavourHistograms : Set it to default value (l)! " << std::endl ;
172  thePlotFirst = "l" ;
173  }
174 
175  if (!update) {
176  // book histos
177  HistoProviderDQM prov("Btag",folder,ibook);
178  if(mcPlots_%2==0) theHisto_all = (prov.book1D( theBaseNameTitle + "ALL" , theBaseNameDescription + " all jets" , theNBins , theLowerBound , theUpperBound )) ;
179  else theHisto_all = 0;
180  if (mcPlots_) {
181  if(mcPlots_>2) {
187  }
188  else{
189  theHisto_d = 0;
190  theHisto_u = 0;
191  theHisto_s = 0;
192  theHisto_g = 0;
193  theHisto_dus = 0;
194  }
200  }else{
201  theHisto_d = 0;
202  theHisto_u = 0;
203  theHisto_s = 0;
204  theHisto_c = 0;
205  theHisto_b = 0;
206  theHisto_g = 0;
207  theHisto_ni = 0;
208  theHisto_dus = 0;
209  theHisto_dusg = 0;
210  theHisto_pu = 0;
211  }
212 
213  // statistics if requested
214  if ( theStatistics ) {
215  if(theHisto_all) theHisto_all ->getTH1F()->Sumw2() ;
216  if (mcPlots_ ) {
217  if (mcPlots_>2 ) {
218  theHisto_d ->getTH1F()->Sumw2() ;
219  theHisto_u ->getTH1F()->Sumw2() ;
220  theHisto_s ->getTH1F()->Sumw2() ;
221  theHisto_g ->getTH1F()->Sumw2() ;
222  theHisto_dus ->getTH1F()->Sumw2() ;
223  }
224  theHisto_c ->getTH1F()->Sumw2() ;
225  theHisto_b ->getTH1F()->Sumw2() ;
226  theHisto_ni ->getTH1F()->Sumw2() ;
227  theHisto_dusg->getTH1F()->Sumw2() ;
228  theHisto_pu ->getTH1F()->Sumw2() ;
229  }
230  }
231  } else {
232  //is it useful? anyway access function is deprecated...
233  HistoProviderDQM prov("Btag",folder,ibook);
234  if(theHisto_all) theHisto_all = prov.access(theBaseNameTitle + "ALL" ) ;
235  if (mcPlots_) {
236  if (mcPlots_>2 ) {
237  theHisto_d = prov.access(theBaseNameTitle + "D" ) ;
238  theHisto_u = prov.access(theBaseNameTitle + "U" ) ;
239  theHisto_s = prov.access(theBaseNameTitle + "S" ) ;
240  theHisto_g = prov.access(theBaseNameTitle + "G" ) ;
241  theHisto_dus = prov.access(theBaseNameTitle + "DUS" ) ;
242  }
243  theHisto_c = prov.access(theBaseNameTitle + "C" ) ;
244  theHisto_b = prov.access(theBaseNameTitle + "B" ) ;
245  theHisto_ni = prov.access(theBaseNameTitle + "NI" ) ;
246  theHisto_dusg = prov.access(theBaseNameTitle + "DUSG") ;
247  theHisto_pu = prov.access(theBaseNameTitle + "PU") ;
248  }
249  }
250 
251  // defaults for other data members
252  theCanvas = 0 ;
253 }
254 
255 
256 template <class T>
258  // delete the canvas*/
259  delete theCanvas ;
260 }
261 
262 
263 // define arrays (if needed)
264 // template <class T>
265 // void FlavourHistograms<T>::defineArray ( int * dimension , int max , int indexToPlot ) {
266 // // indexToPlot < 0 if all to be plotted
267 // theArrayDimension = dimension ;
268 // theMaxDimension = max ;
269 // theIndexToPlot = indexToPlot ;
270 // }
271 
272 // fill entry
273 template <class T> void
274 FlavourHistograms<T>::fill ( const int & flavour, const T & variable) const
275 {
276  // For single variables and arrays (for arrays only a single index can be filled)
277  fillVariable ( flavour , variable, 1.) ;
278 }
279 
280 template <class T> void
281 FlavourHistograms<T>::fill ( const int & flavour, const T & variable, const T & w) const
282 {
283  // For single variables and arrays (for arrays only a single index can be filled)
284  fillVariable ( flavour , variable, w) ;
285 }
286 
287 template <class T> void
288 FlavourHistograms<T>::fill ( const int & flavour, const T * variable) const
289 {
290  if ( theArrayDimension == 0 ) {
291  // single variable
292  fillVariable ( flavour , *variable, 1.) ;
293  } else {
294  // array
295  int iMax = (*theArrayDimension > theMaxDimension) ? theMaxDimension : *theArrayDimension ;
296  //
297  for ( int i = 0 ; i != iMax ; ++i ) {
298  // check if only one index to be plotted (<0: switched off -> plot all)
299  if ( ( theIndexToPlot < 0 ) || ( i == theIndexToPlot ) ) {
300  fillVariable ( flavour , *(variable+i) , 1.) ;
301  }
302  }
303 
304  // if single index to be filled but not enough entries: fill 0.0 (convention!)
305  if ( theIndexToPlot >= iMax ) {
306  // cout << "==>> The index to be filled is too big -> fill 0.0 : " << theBaseNameTitle << " : " << theIndexToPlot << " >= " << iMax << endl ;
307  const T& theZero = static_cast<T> ( 0.0 ) ;
308  fillVariable ( flavour , theZero , 1.) ;
309  }
310  }
311 }
312 
313 
314 template <class T>
316  if(theHisto_all) theHisto_all ->setAxisTitle(title) ;
317  if (mcPlots_) {
318  if (mcPlots_>2 ) {
319  theHisto_d ->setAxisTitle(title) ;
320  theHisto_u ->setAxisTitle(title) ;
321  theHisto_s ->setAxisTitle(title) ;
322  theHisto_g ->setAxisTitle(title) ;
323  theHisto_dus ->setAxisTitle(title) ;
324  }
325  theHisto_c ->setAxisTitle(title) ;
326  theHisto_b ->setAxisTitle(title) ;
327  theHisto_ni ->setAxisTitle(title) ;
328  theHisto_dusg->setAxisTitle(title) ;
329  theHisto_pu->setAxisTitle(title) ;
330  }
331 }
332 
333 
334 template <class T>
335 void FlavourHistograms<T>::plot (TPad * theCanvas /* = 0 */) {
336 
337 //fixme:
338  bool btppNI = false;
339  bool btppColour = true;
340 
341  if (theCanvas)
342  theCanvas->cd();
343 
344  RecoBTag::setTDRStyle()->cd();
345  gPad->UseCurrentStyle();
346 // if ( !btppTitle ) gStyle->SetOptTitle ( 0 ) ;
347 //
348 // // here: plot histograms in a canvas
349 // theCanvas = new TCanvas ( "C" + theBaseNameTitle , "C" + theBaseNameDescription ,
350 // btppXCanvas , btppYCanvas ) ;
351 // theCanvas->SetFillColor ( 0 ) ;
352 // theCanvas->cd ( 1 ) ;
353  gPad->SetLogy ( 0 ) ;
354  if ( thePlotLog ) gPad->SetLogy ( 1 ) ;
355  gPad->SetGridx ( 0 ) ;
356  gPad->SetGridy ( 0 ) ;
357  gPad->SetTitle ( 0 ) ;
358 
359  MonitorElement * histo[4];
360  int col[4], lineStyle[4], markerStyle[4];
361  int lineWidth = 1 ;
362 
363  const double markerSize = gPad->GetWh() * gPad->GetHNDC() / 500.;
364 
365  // default (l)
366  histo[0] = theHisto_dusg ;
367  //CW histo_1 = theHisto_dus ;
368  histo[1] = theHisto_b ;
369  histo[2] = theHisto_c ;
370  histo[3]= 0 ;
371 
372  double max = theMax;
373  if (theMax<=0.) {
374  max = theHisto_dusg->getTH1F()->GetMaximum();
375  if (theHisto_b->getTH1F()->GetMaximum() > max) max = theHisto_b->getTH1F()->GetMaximum();
376  if (theHisto_c->getTH1F()->GetMaximum() > max) max = theHisto_c->getTH1F()->GetMaximum();
377  }
378 
379  if (btppNI) {
380  histo[3] = theHisto_ni ;
381  if (theHisto_ni->getTH1F()->GetMaximum() > max) max = theHisto_ni->getTH1F()->GetMaximum();
382  }
383 
384  if ( btppColour ) { // print colours
385  col[0] = 4 ;
386  col[1] = 2 ;
387  col[2] = 6 ;
388  col[3] = 3 ;
389  lineStyle[0] = 1 ;
390  lineStyle[1] = 1 ;
391  lineStyle[2] = 1 ;
392  lineStyle[3] = 1 ;
393  markerStyle[0] = 20 ;
394  markerStyle[1] = 21 ;
395  markerStyle[2] = 22 ;
396  markerStyle[3] = 23 ;
397  lineWidth = 1 ;
398  }
399  else { // different marker/line styles
400  col[1] = 1 ;
401  col[2] = 1 ;
402  col[3] = 1 ;
403  col[0] = 1 ;
404  lineStyle[0] = 2 ;
405  lineStyle[1] = 1 ;
406  lineStyle[2] = 3 ;
407  lineStyle[3] = 4 ;
408  markerStyle[0] = 20 ;
409  markerStyle[1] = 21 ;
410  markerStyle[2] = 22 ;
411  markerStyle[3] = 23 ;
412  }
413 
414  // if changing order (NI stays always last)
415 
416  // c to plot first
417  if ( thePlotFirst == "c" ) {
418  histo[0] = theHisto_c ;
419  if ( btppColour ) col[0] = 6 ;
420  if ( !btppColour ) lineStyle[0] = 3 ;
421  histo[2] = theHisto_dusg ;
422  if ( btppColour ) col[2] = 4 ;
423  if ( !btppColour ) lineStyle[2] = 2 ;
424  }
425 
426  // b to plot first
427  if ( thePlotFirst == "b" ) {
428  histo[0] = theHisto_b ;
429  if ( btppColour ) col[0] = 2 ;
430  if ( !btppColour ) lineStyle[0] = 1 ;
431  histo[1] = theHisto_dusg ;
432  if ( btppColour ) col[1] = 4 ;
433  if ( !btppColour ) lineStyle[1] = 2 ;
434  }
435 
436 
437  histo[0] ->getTH1F()->GetXaxis()->SetTitle ( theBaseNameDescription.c_str() ) ;
438  histo[0] ->getTH1F()->GetYaxis()->SetTitle ( "Arbitrary Units" ) ;
439  histo[0] ->getTH1F()->GetYaxis()->SetTitleOffset(1.25) ;
440 
441  for (int i=0; i != 4; ++i) {
442  if (histo[i]== 0 ) continue;
443  histo[i] ->getTH1F()->SetStats ( false ) ;
444  histo[i] ->getTH1F()->SetLineStyle ( lineStyle[i] ) ;
445  histo[i] ->getTH1F()->SetLineWidth ( lineWidth ) ;
446  histo[i] ->getTH1F()->SetLineColor ( col[i] ) ;
447  histo[i] ->getTH1F()->SetMarkerStyle ( markerStyle[i] ) ;
448  histo[i] ->getTH1F()->SetMarkerColor ( col[i] ) ;
449  histo[i] ->getTH1F()->SetMarkerSize ( markerSize ) ;
450  }
451 
452  if ( thePlotNormalized ) {
453 // cout <<histo[0]->GetEntries() <<" "<< histo[1]->GetEntries() <<" "<< histo[2]->GetEntries()<<" "<<histo[3]->GetEntries()<<endl;
454  if (histo[0]->getTH1F()->GetEntries() != 0) {histo[0]->getTH1F() ->DrawNormalized() ;} else { histo[0]->getTH1F() ->SetMaximum(1.0);
455 histo[0] ->getTH1F()->Draw() ;}
456  if (histo[1]->getTH1F()->GetEntries() != 0) histo[1] ->getTH1F()->DrawNormalized("Same") ;
457  if (histo[2]->getTH1F()->GetEntries() != 0) histo[2]->getTH1F() ->DrawNormalized("Same") ;
458  if ((histo[3] != 0) && (histo[3]->getTH1F()->GetEntries() != 0)) histo[3] ->getTH1F()->DrawNormalized("Same") ;
459  }
460  else {
461  histo[0]->getTH1F()->SetMaximum(max*1.05);
462  if (theMin!=-1.) histo[0]->getTH1F()->SetMinimum(theMin);
463  histo[0]->getTH1F()->Draw() ;
464  histo[1]->getTH1F()->Draw("Same") ;
465  histo[2]->getTH1F()->Draw("Same") ;
466  if ( histo[3] != 0 ) histo[3]->getTH1F()->Draw("Same") ;
467  }
468 
469 }
470 
471 template <class T>
473 {
474  TCanvas tc(theBaseNameTitle.c_str() , theBaseNameDescription.c_str());
475 
476  plot(&tc);
477  tc.Print((name + theBaseNameTitle + ".eps").c_str());
478 }
479 
480 
481 // needed for efficiency computations -> this / b
482 // (void : alternative would be not to overwrite the histos but to return a cloned HistoDescription)
483 template <class T>
485  // divide histos using binomial errors
486  //
487  // ATTENTION: It's the responsability of the user to make sure that the HistoDescriptions
488  // involved in this operation have been constructed with the statistics option switched on!!
489  //
490  if(theHisto_all) theHisto_all ->getTH1F()-> Divide ( theHisto_all->getTH1F() , bHD.histo_all () , 1.0 , 1.0 , "b" ) ;
491  if (mcPlots_) {
492  if (mcPlots_>2 ) {
493  theHisto_d ->getTH1F()-> Divide ( theHisto_d ->getTH1F() , bHD.histo_d () , 1.0 , 1.0 , "b" ) ;
494  theHisto_u ->getTH1F()-> Divide ( theHisto_u ->getTH1F() , bHD.histo_u () , 1.0 , 1.0 , "b" ) ;
495  theHisto_s ->getTH1F()-> Divide ( theHisto_s ->getTH1F() , bHD.histo_s () , 1.0 , 1.0 , "b" ) ;
496  theHisto_g ->getTH1F()-> Divide ( theHisto_g ->getTH1F() , bHD.histo_g () , 1.0 , 1.0 , "b" ) ;
497  theHisto_dus ->getTH1F()-> Divide ( theHisto_dus->getTH1F() , bHD.histo_dus () , 1.0 , 1.0 , "b" ) ;
498  }
499  theHisto_c ->getTH1F()-> Divide ( theHisto_c ->getTH1F() , bHD.histo_c () , 1.0 , 1.0 , "b" ) ;
500  theHisto_b ->getTH1F()-> Divide ( theHisto_b ->getTH1F() , bHD.histo_b () , 1.0 , 1.0 , "b" ) ;
501  theHisto_ni ->getTH1F()-> Divide ( theHisto_ni->getTH1F() , bHD.histo_ni () , 1.0 , 1.0 , "b" ) ;
502  theHisto_dusg ->getTH1F()-> Divide ( theHisto_dusg->getTH1F() , bHD.histo_dusg() , 1.0 , 1.0 , "b" ) ;
503  theHisto_pu ->getTH1F()-> Divide ( theHisto_pu->getTH1F() , bHD.histo_pu() , 1.0 , 1.0 , "b" ) ;
504  }
505 }
506 
507 
508 template <class T>
509 void FlavourHistograms<T>::fillVariable ( const int & flavour , const T & var , const T & w) const {
510 
511  // all, except for the Jet Multiplicity which is not filled for each jets but for each events
512  if( (theBaseNameDescription != "Jet Multiplicity" || flavour == -1) && theHisto_all) theHisto_all->Fill ( var ,w) ;
513 
514  // flavour specific
515  if (!mcPlots_ || (theBaseNameDescription == "Jet Multiplicity" && flavour == -1)) return;
516 
517  switch(flavour) {
518  case 1:
519  if (mcPlots_>2 ) {
520  theHisto_d->Fill( var ,w);
521  if(theBaseNameDescription != "Jet Multiplicity") theHisto_dus->Fill( var ,w);
522  }
523  if(theBaseNameDescription != "Jet Multiplicity") theHisto_dusg->Fill( var ,w);
524  return;
525  case 2:
526  if (mcPlots_>2 ) {
527  theHisto_u->Fill( var ,w);
528  if(theBaseNameDescription != "Jet Multiplicity") theHisto_dus->Fill( var ,w);
529  }
530  if(theBaseNameDescription != "Jet Multiplicity") theHisto_dusg->Fill( var ,w);
531  return;
532  case 3:
533  if (mcPlots_>2 ) {
534  theHisto_s->Fill( var ,w);
535  if(theBaseNameDescription != "Jet Multiplicity") theHisto_dus->Fill( var ,w);
536  }
537  if(theBaseNameDescription != "Jet Multiplicity") theHisto_dusg->Fill( var ,w);
538  return;
539  case 4:
540  theHisto_c->Fill( var ,w);
541  return;
542  case 5:
543  theHisto_b->Fill( var ,w);
544  return;
545  case 21:
546  if (mcPlots_>2 ) theHisto_g->Fill( var ,w);
547  if(theBaseNameDescription != "Jet Multiplicity") theHisto_dusg->Fill( var ,w);
548  return;
549  case 123:
550  if (mcPlots_>2 && theBaseNameDescription == "Jet Multiplicity") theHisto_dus->Fill( var ,w);
551  return;
552  case 12321:
553  if (theBaseNameDescription == "Jet Multiplicity") theHisto_dusg->Fill( var ,w);
554  return;
555  case 20:
556  theHisto_pu->Fill( var ,w);
557  return;
558  default:
559  theHisto_ni->Fill( var ,w);
560  return;
561  }
562 }
563 
564 template <class T>
565 std::vector<TH1F*> FlavourHistograms<T>::getHistoVector() const
566 {
567  std::vector<TH1F*> histoVector;
568  if(theHisto_all) histoVector.push_back ( theHisto_all->getTH1F() );
569  if (mcPlots_) {
570  if (mcPlots_>2 ) {
571  histoVector.push_back ( theHisto_d->getTH1F() );
572  histoVector.push_back ( theHisto_u->getTH1F() );
573  histoVector.push_back ( theHisto_s->getTH1F() );
574  histoVector.push_back ( theHisto_g ->getTH1F() );
575  histoVector.push_back ( theHisto_dus->getTH1F() );
576  }
577  histoVector.push_back ( theHisto_c->getTH1F() );
578  histoVector.push_back ( theHisto_b->getTH1F() );
579  histoVector.push_back ( theHisto_ni->getTH1F() );
580  histoVector.push_back ( theHisto_dusg->getTH1F());
581  histoVector.push_back ( theHisto_pu->getTH1F());
582  }
583  return histoVector;
584 }
585 #endif
double lowerBound() const
int i
Definition: DBlmapReader.cc:9
MonitorElement * theHisto_g
void plot(TPad *theCanvas=0)
MonitorElement * theHisto_c
void SetMinimum(const double &min)
TH1F * histo_all() const
TStyle * setTDRStyle()
Definition: Tools.cc:287
MonitorElement * theHisto_u
int maxDimension() const
TH1F * histo_c() const
void fill(const int &flavour, const T &variable) const
MonitorElement * theHisto_all
std::string baseNameDescription() const
TH1F * histo_dus() const
std::vector< TH1F * > getHistoVector() const
TH1F * histo_b() const
TH1F * histo_g() const
void SetMaximum(const double &max)
void epsPlot(const std::string &name)
virtual MonitorElement * book1D(const std::string &name, const std::string &title, const int &nchX, const double &lowX, const double &highX)
const T & max(const T &a, const T &b)
std::string baseNameTitle() const
MonitorElement * theHisto_pu
void settitle(const char *title)
TH1F * histo_d() const
TH1F * getTH1F(std::string name, std::string process, std::string rootfolder, DQMStore *dbe_, bool verb, bool clone)
int * arrayDimension() const
MonitorElement * theHisto_d
MonitorElement * theHisto_dusg
std::string theBaseNameDescription
TH1F * getTH1F(void) const
MonitorElement * theHisto_b
TH1F * histo_s() const
int indexToPlot() const
TH1F * histo_ni() const
void divide(const FlavourHistograms< T > &bHD) const
std::string plotFirst() const
bool plotNormalized() const
bool plotLog() const
std::string theBaseNameTitle
#define update(a, b)
void fillVariable(const int &flavour, const T &var, const T &w) const
TH1F * histo_u() const
tuple cout
Definition: gather_cfg.py:121
virtual MonitorElement * access(const std::string &name)
T w() const
double upperBound() const
MonitorElement * theHisto_s
int col
Definition: cuy.py:1008
bool statistics() const
long double T
int flavour(const Candidate &part)
Definition: pdgIdUtils.h:31
TH1F * histo_dusg() const
MonitorElement * theHisto_dus
TH1F * histo_pu() const
MonitorElement * theHisto_ni