CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
FlavourHistograms2D< T, G > Class Template Reference

#include <FlavourHistorgrams2D.h>

Public Member Functions

std::string baseNameDescription () const
 
std::string baseNameTitle () const
 
void divide (const FlavourHistograms2D< T, G > &bHD) const
 
void fill (const int &flavour, const T &variableX, const G &variableY) const
 
void fill (const int &flavour, const T *variableX, const G *variableY) const
 
 FlavourHistograms2D (TString baseNameTitle_, TString baseNameDescription_, int nBinsX_, double lowerBoundX_, double upperBoundX_, int nBinsY_, double lowerBoundY_, double upperBoundY_, bool statistics_, bool update, std::string folder, bool mc, bool createProfile)
 
std::vector< TH2F * > getHistoVector () const
 
std::vector< TProfile * > getProfileVector () const
 
TH2F * histo_all () const
 
TH2F * histo_b () const
 
TH2F * histo_c () const
 
TH2F * histo_d () const
 
TH2F * histo_dus () const
 
TH2F * histo_dusg () const
 
TH2F * histo_g () const
 
TH2F * histo_ni () const
 
TH2F * histo_s () const
 
TH2F * histo_u () const
 
double lowerBoundX () const
 
double lowerBoundY () const
 
int nBinsX () const
 
int nBinsY () const
 
TProfile * profile_all () const
 
TProfile * profile_b () const
 
TProfile * profile_c () const
 
TProfile * profile_d () const
 
TProfile * profile_dus () const
 
TProfile * profile_dusg () const
 
TProfile * profile_g () const
 
TProfile * profile_ni () const
 
TProfile * profile_s () const
 
TProfile * profile_u () const
 
void SetMaximum (const double &max)
 
void SetMinimum (const double &min)
 
void settitle (const char *titleX, const char *titleY)
 
bool statistics () const
 
double upperBoundX () const
 
double upperBoundY () const
 
virtual ~FlavourHistograms2D ()
 

Protected Member Functions

void fillVariable (const int &flavour, const T &varX, const G &varY) const
 

Protected Attributes

int * theArrayDimension
 
std::string theBaseNameDescription
 
std::string theBaseNameTitle
 
MonitorElementtheHisto_all
 
MonitorElementtheHisto_b
 
MonitorElementtheHisto_c
 
MonitorElementtheHisto_d
 
MonitorElementtheHisto_dus
 
MonitorElementtheHisto_dusg
 
MonitorElementtheHisto_g
 
MonitorElementtheHisto_ni
 
MonitorElementtheHisto_s
 
MonitorElementtheHisto_u
 
int theIndexToPlot
 
double theLowerBoundX
 
double theLowerBoundY
 
double theMax
 
int theMaxDimension
 
double theMin
 
int theNBinsX
 
int theNBinsY
 
MonitorElementtheProfile_all
 
MonitorElementtheProfile_b
 
MonitorElementtheProfile_c
 
MonitorElementtheProfile_d
 
MonitorElementtheProfile_dus
 
MonitorElementtheProfile_dusg
 
MonitorElementtheProfile_g
 
MonitorElementtheProfile_ni
 
MonitorElementtheProfile_s
 
MonitorElementtheProfile_u
 
bool theStatistics
 
double theUpperBoundX
 
double theUpperBoundY
 

Private Member Functions

 FlavourHistograms2D ()
 

Private Attributes

bool createProfile_
 
bool mcPlots_
 

Detailed Description

template<class T, class G>
class FlavourHistograms2D< T, G >

Definition at line 30 of file FlavourHistorgrams2D.h.

Constructor & Destructor Documentation

template<class T , class G >
FlavourHistograms2D< T, G >::FlavourHistograms2D ( TString  baseNameTitle_,
TString  baseNameDescription_,
int  nBinsX_,
double  lowerBoundX_,
double  upperBoundX_,
int  nBinsY_,
double  lowerBoundY_,
double  upperBoundY_,
bool  statistics_,
bool  update,
std::string  folder,
bool  mc,
bool  createProfile 
)

Definition at line 169 of file FlavourHistorgrams2D.h.

References HistoProviderDQM::access(), HistoProviderDQM::book2D(), HistoProviderDQM::bookProfile(), FlavourHistograms2D< T, G >::createProfile_, MonitorElement::getTH2F(), MonitorElement::getTProfile(), FlavourHistograms2D< T, G >::mcPlots_, FlavourHistograms2D< T, G >::theArrayDimension, FlavourHistograms2D< T, G >::theBaseNameDescription, FlavourHistograms2D< T, G >::theBaseNameTitle, FlavourHistograms2D< T, G >::theHisto_all, FlavourHistograms2D< T, G >::theHisto_b, FlavourHistograms2D< T, G >::theHisto_c, FlavourHistograms2D< T, G >::theHisto_d, FlavourHistograms2D< T, G >::theHisto_dus, FlavourHistograms2D< T, G >::theHisto_dusg, FlavourHistograms2D< T, G >::theHisto_g, FlavourHistograms2D< T, G >::theHisto_ni, FlavourHistograms2D< T, G >::theHisto_s, FlavourHistograms2D< T, G >::theHisto_u, FlavourHistograms2D< T, G >::theLowerBoundX, FlavourHistograms2D< T, G >::theLowerBoundY, FlavourHistograms2D< T, G >::theNBinsX, FlavourHistograms2D< T, G >::theNBinsY, FlavourHistograms2D< T, G >::theProfile_all, FlavourHistograms2D< T, G >::theProfile_b, FlavourHistograms2D< T, G >::theProfile_c, FlavourHistograms2D< T, G >::theProfile_d, FlavourHistograms2D< T, G >::theProfile_dus, FlavourHistograms2D< T, G >::theProfile_dusg, FlavourHistograms2D< T, G >::theProfile_g, FlavourHistograms2D< T, G >::theProfile_ni, FlavourHistograms2D< T, G >::theProfile_s, FlavourHistograms2D< T, G >::theProfile_u, FlavourHistograms2D< T, G >::theStatistics, FlavourHistograms2D< T, G >::theUpperBoundX, and FlavourHistograms2D< T, G >::theUpperBoundY.

173  :
174  // BaseFlavourHistograms2D () ,
175  // theVariable ( variable_ ) ,
176  theMaxDimension(-1), theIndexToPlot(-1), theBaseNameTitle ( baseNameTitle_ ) , theBaseNameDescription ( baseNameDescription_ ) ,
177  theNBinsX ( nBinsX_ ) , theNBinsY (nBinsY_),
178  theLowerBoundX ( lowerBoundX_ ) , theUpperBoundX ( upperBoundX_ ) ,
179  theLowerBoundY ( lowerBoundY_ ) , theUpperBoundY ( upperBoundY_ ) ,
180  theStatistics ( statistics_ ) , theMin(-1.), theMax(-1.), mcPlots_(mc), createProfile_(createProfile)
181 {
182  // defaults for array dimensions
183  theArrayDimension = 0 ;
184 
185  if (!update) {
186  // book histos
187  HistoProviderDQM prov("Btag",folder);
189  if (mcPlots_) {
199  }else{
200  theHisto_d = 0;
201  theHisto_u = 0;
202  theHisto_s = 0;
203  theHisto_c = 0;
204  theHisto_b = 0;
205  theHisto_g = 0;
206  theHisto_ni = 0;
207  theHisto_dus = 0;
208  theHisto_dusg = 0;
209  }
210 
211  if (createProfile_) {
213  if (mcPlots_) {
221  theProfile_dus = (prov.bookProfile ( theBaseNameTitle + "_Profile_DUS" , theBaseNameDescription + " dus-jets" , theNBinsX , theLowerBoundX , theUpperBoundX , theNBinsY, theLowerBoundY, theUpperBoundY)) ;
222  theProfile_dusg = (prov.bookProfile ( theBaseNameTitle + "_Profile_DUSG" , theBaseNameDescription + " dusg-jets" , theNBinsX , theLowerBoundX , theUpperBoundX , theNBinsY, theLowerBoundY, theUpperBoundY)) ;
223  } else{
224  theProfile_d = 0;
225  theProfile_u = 0;
226  theProfile_s = 0;
227  theProfile_c = 0;
228  theProfile_b = 0;
229  theProfile_g = 0;
230  theProfile_ni = 0;
231  theProfile_dus = 0;
232  theProfile_dusg = 0;
233  }
234  } else {
235  theProfile_all = 0;
236  theProfile_d = 0;
237  theProfile_u = 0;
238  theProfile_s = 0;
239  theProfile_c = 0;
240  theProfile_b = 0;
241  theProfile_g = 0;
242  theProfile_ni = 0;
243  theProfile_dus = 0;
244  theProfile_dusg = 0;
245  }
246  // statistics if requested
247  if ( theStatistics ) {
248  theHisto_all ->getTH2F()->Sumw2() ;
249  if(createProfile)
250  theProfile_all ->getTProfile()->Sumw2() ;
251  if (mcPlots_) {
252  theHisto_d ->getTH2F()->Sumw2() ;
253  theHisto_u ->getTH2F()->Sumw2() ;
254  theHisto_s ->getTH2F()->Sumw2() ;
255  theHisto_c ->getTH2F()->Sumw2() ;
256  theHisto_b ->getTH2F()->Sumw2() ;
257  theHisto_g ->getTH2F()->Sumw2() ;
258  theHisto_ni ->getTH2F()->Sumw2() ;
259  theHisto_dus ->getTH2F()->Sumw2() ;
260  theHisto_dusg->getTH2F()->Sumw2() ;
261 
262  if(createProfile) {
263  theProfile_d ->getTProfile()->Sumw2() ;
264  theProfile_u ->getTProfile()->Sumw2() ;
265  theProfile_s ->getTProfile()->Sumw2() ;
266  theProfile_c ->getTProfile()->Sumw2() ;
267  theProfile_b ->getTProfile()->Sumw2() ;
268  theProfile_g ->getTProfile()->Sumw2() ;
269  theProfile_ni ->getTProfile()->Sumw2() ;
270  theProfile_dus ->getTProfile()->Sumw2() ;
271  theProfile_dusg->getTProfile()->Sumw2() ;
272  }
273  }
274  }
275  } else {
276  HistoProviderDQM prov("Btag",folder);
277  theHisto_all = prov.access(theBaseNameTitle + "ALL" ) ;
278  if (mcPlots_) {
279 
280  theHisto_d = prov.access(theBaseNameTitle + "D" ) ;
281  theHisto_u = prov.access(theBaseNameTitle + "U" ) ;
282  theHisto_s = prov.access(theBaseNameTitle + "S" ) ;
283  theHisto_c = prov.access(theBaseNameTitle + "C" ) ;
284  theHisto_b =prov.access(theBaseNameTitle + "B" ) ;
285  theHisto_g =prov.access(theBaseNameTitle + "G" ) ;
286  theHisto_ni =prov.access(theBaseNameTitle + "NI" ) ;
287  theHisto_dus =prov.access(theBaseNameTitle + "DUS" ) ;
288  theHisto_dusg =prov.access(theBaseNameTitle + "DUSG") ;
289  }
290 
291  if(createProfile_) {
292  theProfile_all = prov.access(theBaseNameTitle + "_Profile_ALL");
293  if(mcPlots_) {
294  theProfile_d = prov.access(theBaseNameTitle + "_Profile_D" ) ;
295  theProfile_u = prov.access(theBaseNameTitle + "_Profile_U" ) ;
296  theProfile_s = prov.access(theBaseNameTitle + "_Profile_S" ) ;
297  theProfile_c = prov.access(theBaseNameTitle + "_Profile_C" ) ;
298  theProfile_b =prov.access(theBaseNameTitle + "_Profile_B" ) ;
299  theProfile_g =prov.access(theBaseNameTitle + "_Profile_G" ) ;
300  theProfile_ni =prov.access(theBaseNameTitle + "_Profile_NI" ) ;
301  theProfile_dus =prov.access(theBaseNameTitle + "_Profile_DUS" ) ;
302  theProfile_dusg =prov.access(theBaseNameTitle + "_Profile_DUSG") ;
303  }
304  }
305  }
306 }
std::string theBaseNameDescription
MonitorElement * theProfile_s
MonitorElement * theHisto_g
MonitorElement * theProfile_dusg
MonitorElement * theHisto_dusg
MonitorElement * theHisto_u
MonitorElement * theHisto_c
MonitorElement * theProfile_all
MonitorElement * theProfile_ni
MonitorElement * theHisto_dus
MonitorElement * theProfile_u
MonitorElement * theHisto_s
MonitorElement * theProfile_b
MonitorElement * theProfile_c
MonitorElement * theProfile_d
MonitorElement * theProfile_dus
MonitorElement * theHisto_all
#define update(a, b)
TProfile * getTProfile(void) const
TH2F * getTH2F(void) const
MonitorElement * theProfile_g
MonitorElement * theHisto_b
MonitorElement * theHisto_ni
MonitorElement * theHisto_d
template<class T , class G >
FlavourHistograms2D< T, G >::~FlavourHistograms2D ( )
virtual

Definition at line 310 of file FlavourHistorgrams2D.h.

310 {}
template<class T, class G>
FlavourHistograms2D< T, G >::FlavourHistograms2D ( )
inlineprivate

Definition at line 159 of file FlavourHistorgrams2D.h.

159 {}

Member Function Documentation

template<class T, class G>
std::string FlavourHistograms2D< T, G >::baseNameDescription ( ) const
inline

Definition at line 66 of file FlavourHistorgrams2D.h.

66 { return theBaseNameDescription ; }
std::string theBaseNameDescription
template<class T, class G>
std::string FlavourHistograms2D< T, G >::baseNameTitle ( ) const
inline

Definition at line 65 of file FlavourHistorgrams2D.h.

65 { return theBaseNameTitle ; }
template<class T, class G>
void FlavourHistograms2D< T, G >::divide ( const FlavourHistograms2D< T, G > &  bHD) const

Definition at line 415 of file FlavourHistorgrams2D.h.

References getTH2F(), FlavourHistograms2D< T, G >::histo_all(), FlavourHistograms2D< T, G >::histo_b(), FlavourHistograms2D< T, G >::histo_c(), FlavourHistograms2D< T, G >::histo_d(), FlavourHistograms2D< T, G >::histo_dus(), FlavourHistograms2D< T, G >::histo_dusg(), FlavourHistograms2D< T, G >::histo_g(), FlavourHistograms2D< T, G >::histo_ni(), FlavourHistograms2D< T, G >::histo_s(), and FlavourHistograms2D< T, G >::histo_u().

Referenced by python.rootplot.utilities.Hist::__div__().

415  {
416  // divide histos using binomial errors
417  //
418  // ATTENTION: It's the responsability of the user to make sure that the HistoDescriptions
419  // involved in this operation have been constructed with the statistics option switched on!!
420  //
421  theHisto_all ->getTH2F()-> Divide ( theHisto_all->getTH2F() , bHD.histo_all () , 1.0 , 1.0 , "b" ) ;
422  if (mcPlots_) {
423  theHisto_d ->getTH2F()-> Divide ( theHisto_d ->getTH2F() , bHD.histo_d () , 1.0 , 1.0 , "b" ) ;
424  theHisto_u ->getTH2F()-> Divide ( theHisto_u ->getTH2F() , bHD.histo_u () , 1.0 , 1.0 , "b" ) ;
425  theHisto_s ->getTH2F()-> Divide ( theHisto_s ->getTH2F() , bHD.histo_s () , 1.0 , 1.0 , "b" ) ;
426  theHisto_c ->getTH2F()-> Divide ( theHisto_c ->getTH2F() , bHD.histo_c () , 1.0 , 1.0 , "b" ) ;
427  theHisto_b ->getTH2F()-> Divide ( theHisto_b ->getTH2F() , bHD.histo_b () , 1.0 , 1.0 , "b" ) ;
428  theHisto_g ->getTH2F()-> Divide ( theHisto_g ->getTH2F() , bHD.histo_g () , 1.0 , 1.0 , "b" ) ;
429  theHisto_ni ->getTH2F()-> Divide ( theHisto_ni->getTH2F() , bHD.histo_ni () , 1.0 , 1.0 , "b" ) ;
430  theHisto_dus ->getTH2F()-> Divide ( theHisto_dus->getTH2F() , bHD.histo_dus () , 1.0 , 1.0 , "b" ) ;
431  theHisto_dusg ->getTH2F()-> Divide ( theHisto_dusg->getTH2F() , bHD.histo_dusg() , 1.0 , 1.0 , "b" ) ;
432  }
433 }
MonitorElement * theHisto_g
TH2F * histo_all() const
MonitorElement * theHisto_dusg
MonitorElement * theHisto_u
MonitorElement * theHisto_c
MonitorElement * theHisto_dus
TH2F * histo_dusg() const
MonitorElement * theHisto_s
TH2F * histo_dus() const
TH2F * histo_ni() const
MonitorElement * theHisto_all
TH2F * getTH2F(std::string name, std::string process, std::string rootfolder, DQMStore *dbe_, bool verb, bool clone)
TH2F * getTH2F(void) const
MonitorElement * theHisto_b
MonitorElement * theHisto_ni
MonitorElement * theHisto_d
template<class T, class G>
void FlavourHistograms2D< T, G >::fill ( const int &  flavour,
const T variableX,
const G &  variableY 
) const

Definition at line 324 of file FlavourHistorgrams2D.h.

Referenced by TrackIPTagPlotter::analyzeTag(), and TagCorrelationPlotter::analyzeTags().

325 {
326  // For single variables and arrays (for arrays only a single index can be filled)
327  fillVariable ( flavour , variableX , variableY ) ;
328 }
void fillVariable(const int &flavour, const T &varX, const G &varY) const
int flavour(const Candidate &part)
Definition: pdgIdUtils.h:31
template<class T, class G>
void FlavourHistograms2D< T, G >::fill ( const int &  flavour,
const T variableX,
const G *  variableY 
) const

Definition at line 331 of file FlavourHistorgrams2D.h.

References i.

332 {
333  if ( theArrayDimension == 0 ) {
334  // single variable
335  fillVariable ( flavour , *variableX, *variableY ) ;
336  } else {
337  // array
338  int iMax = *theArrayDimension ;
340  //
341  for ( int i = 0 ; i != iMax ; ++i ) {
342  // check if only one index to be plotted (<0: switched off -> plot all)
343  if ( ( theIndexToPlot < 0 ) || ( i == theIndexToPlot ) ) {
344  fillVariable ( flavour , *(variableX+i) , *(variableY+i) ) ;
345  }
346  }
347 
348  // if single index to be filled but not enough entries: fill 0.0 (convention!)
349  if ( theIndexToPlot >= iMax ) {
350  // cout << "==>> The index to be filled is too big -> fill 0.0 : " << theBaseNameTitle << " : " << theIndexToPlot << " >= " << iMax << endl ;
351  const T& theZeroT = static_cast<T> ( 0.0) ;
352  const G& theZeroG = static_cast<T> ( 0.0 );
353  fillVariable ( flavour , theZeroT , theZeroG ) ;
354  }
355  }
356 }
void fillVariable(const int &flavour, const T &varX, const G &varY) const
int i
Definition: DBlmapReader.cc:9
long double T
int flavour(const Candidate &part)
Definition: pdgIdUtils.h:31
template<class T, class G>
void FlavourHistograms2D< T, G >::fillVariable ( const int &  flavour,
const T varX,
const G &  varY 
) const
protected

Definition at line 437 of file FlavourHistorgrams2D.h.

437  {
438  // all
439  theHisto_all ->Fill ( varX, varY ) ;
440  if(createProfile_)
441  theProfile_all->Fill( varX, varY );
442  // flavour specific
443  if (!mcPlots_) return;
444 
445  switch( flavour ) {
446  case 1:
447  theHisto_d->Fill( varX, varY );
448  theHisto_dus->Fill( varX, varY );
449  theHisto_dusg->Fill( varX, varY );
450  if(createProfile_) {
451  theProfile_d->Fill(varX, varY);
452  theProfile_dus->Fill(varX, varY);
453  theProfile_dusg->Fill(varX, varY);
454  }
455  return;
456  case 2:
457  theHisto_u->Fill( varX, varY );
458  theHisto_dus->Fill( varX, varY );
459  theHisto_dusg->Fill( varX, varY );
460  if(createProfile_) {
461  theProfile_u->Fill(varX, varY);
462  theProfile_dus->Fill(varX, varY);
463  theProfile_dusg->Fill(varX, varY);
464  }
465  return;
466  case 3:
467  theHisto_s->Fill( varX, varY );
468  theHisto_dus->Fill( varX, varY );
469  theHisto_dusg->Fill( varX, varY );
470  if(createProfile_) {
471  theProfile_s->Fill(varX, varY);
472  theProfile_dus->Fill(varX, varY);
473  theProfile_dusg->Fill(varX, varY);
474  }
475  return;
476  case 4:
477  theHisto_c->Fill( varX, varY );
478  if(createProfile_) theProfile_c->Fill(varX, varY);
479  return;
480  case 5:
481  theHisto_b->Fill( varX, varY );
482  if(createProfile_) theProfile_b->Fill(varX, varY);
483  return;
484  case 21:
485  theHisto_g->Fill( varX, varY );
486  theHisto_dusg->Fill( varX, varY );
487  if(createProfile_) {
488  theProfile_g->Fill(varX, varY);
489  theProfile_dusg->Fill(varX, varY);
490  }
491  return;
492  default:
493  theHisto_ni->Fill( varX, varY );
494  if(createProfile_) theProfile_ni->Fill(varX, varY);
495  return;
496  }
497 }
MonitorElement * theProfile_s
MonitorElement * theHisto_g
MonitorElement * theProfile_dusg
MonitorElement * theHisto_dusg
MonitorElement * theHisto_u
void Fill(long long x)
MonitorElement * theHisto_c
MonitorElement * theProfile_all
MonitorElement * theProfile_ni
MonitorElement * theHisto_dus
MonitorElement * theProfile_u
MonitorElement * theHisto_s
MonitorElement * theProfile_b
MonitorElement * theProfile_c
MonitorElement * theProfile_d
MonitorElement * theProfile_dus
MonitorElement * theHisto_all
MonitorElement * theProfile_g
MonitorElement * theHisto_b
int flavour(const Candidate &part)
Definition: pdgIdUtils.h:31
MonitorElement * theHisto_ni
MonitorElement * theHisto_d
template<class T , class G >
std::vector< TH2F * > FlavourHistograms2D< T, G >::getHistoVector ( ) const

Definition at line 500 of file FlavourHistorgrams2D.h.

References getTH2F().

501 {
502  std::vector<TH2F*> histoVector;
503  histoVector.push_back ( theHisto_all->getTH2F() );
504  if (mcPlots_) {
505  histoVector.push_back ( theHisto_d->getTH2F() );
506  histoVector.push_back ( theHisto_u->getTH2F() );
507  histoVector.push_back ( theHisto_s->getTH2F() );
508  histoVector.push_back ( theHisto_c->getTH2F() );
509  histoVector.push_back ( theHisto_b->getTH2F() );
510  histoVector.push_back ( theHisto_g ->getTH2F() );
511  histoVector.push_back ( theHisto_ni->getTH2F() );
512  histoVector.push_back ( theHisto_dus->getTH2F() );
513  histoVector.push_back ( theHisto_dusg->getTH2F());
514  }
515  return histoVector;
516 }
MonitorElement * theHisto_g
MonitorElement * theHisto_dusg
MonitorElement * theHisto_u
MonitorElement * theHisto_c
MonitorElement * theHisto_dus
MonitorElement * theHisto_s
MonitorElement * theHisto_all
TH2F * getTH2F(std::string name, std::string process, std::string rootfolder, DQMStore *dbe_, bool verb, bool clone)
TH2F * getTH2F(void) const
MonitorElement * theHisto_b
MonitorElement * theHisto_ni
MonitorElement * theHisto_d
template<class T , class G >
std::vector< TProfile * > FlavourHistograms2D< T, G >::getProfileVector ( ) const

Definition at line 519 of file FlavourHistorgrams2D.h.

References getTProfile().

520 {
521  std::vector<TProfile*> profileVector;
522  if(createProfile_) {
523  profileVector.push_back ( theProfile_all->getTProfile() );
524  if (mcPlots_) {
525  profileVector.push_back ( theProfile_d->getTProfile() );
526  profileVector.push_back ( theProfile_u->getTProfile() );
527  profileVector.push_back ( theProfile_s->getTProfile() );
528  profileVector.push_back ( theProfile_c->getTProfile() );
529  profileVector.push_back ( theProfile_b->getTProfile() );
530  profileVector.push_back ( theProfile_g ->getTProfile() );
531  profileVector.push_back ( theProfile_ni->getTProfile() );
532  profileVector.push_back ( theProfile_dus->getTProfile() );
533  profileVector.push_back ( theProfile_dusg->getTProfile());
534  }
535  }
536  return profileVector;
537 }
MonitorElement * theProfile_s
TProfile * getTProfile(std::string name, std::string process, std::string rootfolder, DQMStore *dbe_, bool verb, bool clone)
MonitorElement * theProfile_dusg
MonitorElement * theProfile_all
MonitorElement * theProfile_ni
MonitorElement * theProfile_u
MonitorElement * theProfile_b
MonitorElement * theProfile_c
MonitorElement * theProfile_d
MonitorElement * theProfile_dus
TProfile * getTProfile(void) const
MonitorElement * theProfile_g
template<class T, class G>
TH2F* FlavourHistograms2D< T, G >::histo_all ( ) const
inline

Definition at line 76 of file FlavourHistorgrams2D.h.

Referenced by FlavourHistograms2D< T, G >::divide().

76 { return theHisto_all->getTH2F() ; }
MonitorElement * theHisto_all
TH2F * getTH2F(void) const
template<class T, class G>
TH2F* FlavourHistograms2D< T, G >::histo_b ( ) const
inline

Definition at line 81 of file FlavourHistorgrams2D.h.

Referenced by FlavourHistograms2D< T, G >::divide().

81 { return theHisto_b->getTH2F() ; }
TH2F * getTH2F(void) const
MonitorElement * theHisto_b
template<class T, class G>
TH2F* FlavourHistograms2D< T, G >::histo_c ( ) const
inline

Definition at line 80 of file FlavourHistorgrams2D.h.

Referenced by FlavourHistograms2D< T, G >::divide().

80 { return theHisto_c->getTH2F() ; }
MonitorElement * theHisto_c
TH2F * getTH2F(void) const
template<class T, class G>
TH2F* FlavourHistograms2D< T, G >::histo_d ( ) const
inline

Definition at line 77 of file FlavourHistorgrams2D.h.

Referenced by FlavourHistograms2D< T, G >::divide().

77 { return theHisto_d ->getTH2F() ; }
TH2F * getTH2F(void) const
MonitorElement * theHisto_d
template<class T, class G>
TH2F* FlavourHistograms2D< T, G >::histo_dus ( ) const
inline

Definition at line 84 of file FlavourHistorgrams2D.h.

Referenced by FlavourHistograms2D< T, G >::divide().

84 { return theHisto_dus->getTH2F() ; }
MonitorElement * theHisto_dus
TH2F * getTH2F(void) const
template<class T, class G>
TH2F* FlavourHistograms2D< T, G >::histo_dusg ( ) const
inline

Definition at line 85 of file FlavourHistorgrams2D.h.

Referenced by FlavourHistograms2D< T, G >::divide().

85 { return theHisto_dusg->getTH2F() ; }
MonitorElement * theHisto_dusg
TH2F * getTH2F(void) const
template<class T, class G>
TH2F* FlavourHistograms2D< T, G >::histo_g ( ) const
inline

Definition at line 82 of file FlavourHistorgrams2D.h.

Referenced by FlavourHistograms2D< T, G >::divide().

82 { return theHisto_g->getTH2F() ; }
MonitorElement * theHisto_g
TH2F * getTH2F(void) const
template<class T, class G>
TH2F* FlavourHistograms2D< T, G >::histo_ni ( ) const
inline

Definition at line 83 of file FlavourHistorgrams2D.h.

Referenced by FlavourHistograms2D< T, G >::divide().

83 { return theHisto_ni->getTH2F() ; }
TH2F * getTH2F(void) const
MonitorElement * theHisto_ni
template<class T, class G>
TH2F* FlavourHistograms2D< T, G >::histo_s ( ) const
inline

Definition at line 79 of file FlavourHistorgrams2D.h.

Referenced by FlavourHistograms2D< T, G >::divide().

79 { return theHisto_s->getTH2F() ; }
MonitorElement * theHisto_s
TH2F * getTH2F(void) const
template<class T, class G>
TH2F* FlavourHistograms2D< T, G >::histo_u ( ) const
inline

Definition at line 78 of file FlavourHistorgrams2D.h.

Referenced by FlavourHistograms2D< T, G >::divide().

78 { return theHisto_u->getTH2F() ; }
MonitorElement * theHisto_u
TH2F * getTH2F(void) const
template<class T, class G>
double FlavourHistograms2D< T, G >::lowerBoundX ( ) const
inline

Definition at line 69 of file FlavourHistorgrams2D.h.

69 { return theLowerBoundX ; }
template<class T, class G>
double FlavourHistograms2D< T, G >::lowerBoundY ( ) const
inline

Definition at line 71 of file FlavourHistorgrams2D.h.

71 { return theLowerBoundY ; }
template<class T, class G>
int FlavourHistograms2D< T, G >::nBinsX ( ) const
inline

Definition at line 67 of file FlavourHistorgrams2D.h.

67 { return theNBinsX ; }
template<class T, class G>
int FlavourHistograms2D< T, G >::nBinsY ( ) const
inline

Definition at line 68 of file FlavourHistorgrams2D.h.

68 { return theNBinsY ; }
template<class T, class G>
TProfile* FlavourHistograms2D< T, G >::profile_all ( ) const
inline

Definition at line 87 of file FlavourHistorgrams2D.h.

87 { return theProfile_all->getTProfile() ; }
MonitorElement * theProfile_all
TProfile * getTProfile(void) const
template<class T, class G>
TProfile* FlavourHistograms2D< T, G >::profile_b ( ) const
inline

Definition at line 92 of file FlavourHistorgrams2D.h.

92 { return theProfile_b->getTProfile() ; }
MonitorElement * theProfile_b
TProfile * getTProfile(void) const
template<class T, class G>
TProfile* FlavourHistograms2D< T, G >::profile_c ( ) const
inline

Definition at line 91 of file FlavourHistorgrams2D.h.

91 { return theProfile_c->getTProfile() ; }
MonitorElement * theProfile_c
TProfile * getTProfile(void) const
template<class T, class G>
TProfile* FlavourHistograms2D< T, G >::profile_d ( ) const
inline

Definition at line 88 of file FlavourHistorgrams2D.h.

88 { return theProfile_d ->getTProfile() ; }
MonitorElement * theProfile_d
TProfile * getTProfile(void) const
template<class T, class G>
TProfile* FlavourHistograms2D< T, G >::profile_dus ( ) const
inline

Definition at line 95 of file FlavourHistorgrams2D.h.

95 { return theProfile_dus->getTProfile() ; }
MonitorElement * theProfile_dus
TProfile * getTProfile(void) const
template<class T, class G>
TProfile* FlavourHistograms2D< T, G >::profile_dusg ( ) const
inline

Definition at line 96 of file FlavourHistorgrams2D.h.

96 { return theProfile_dusg->getTProfile() ; }
MonitorElement * theProfile_dusg
TProfile * getTProfile(void) const
template<class T, class G>
TProfile* FlavourHistograms2D< T, G >::profile_g ( ) const
inline

Definition at line 93 of file FlavourHistorgrams2D.h.

93 { return theProfile_g->getTProfile() ; }
TProfile * getTProfile(void) const
MonitorElement * theProfile_g
template<class T, class G>
TProfile* FlavourHistograms2D< T, G >::profile_ni ( ) const
inline

Definition at line 94 of file FlavourHistorgrams2D.h.

94 { return theProfile_ni->getTProfile() ; }
MonitorElement * theProfile_ni
TProfile * getTProfile(void) const
template<class T, class G>
TProfile* FlavourHistograms2D< T, G >::profile_s ( ) const
inline

Definition at line 90 of file FlavourHistorgrams2D.h.

90 { return theProfile_s->getTProfile() ; }
MonitorElement * theProfile_s
TProfile * getTProfile(void) const
template<class T, class G>
TProfile* FlavourHistograms2D< T, G >::profile_u ( ) const
inline

Definition at line 89 of file FlavourHistorgrams2D.h.

89 { return theProfile_u->getTProfile() ; }
MonitorElement * theProfile_u
TProfile * getTProfile(void) const
template<class T, class G>
void FlavourHistograms2D< T, G >::SetMaximum ( const double &  max)
inline

Definition at line 60 of file FlavourHistorgrams2D.h.

60 { theMax = max;}
const T & max(const T &a, const T &b)
template<class T, class G>
void FlavourHistograms2D< T, G >::SetMinimum ( const double &  min)
inline

Definition at line 61 of file FlavourHistorgrams2D.h.

61 { theMin = min;}
#define min(a, b)
Definition: mlp_lapack.h:161
template<class T , class G >
void FlavourHistograms2D< T, G >::settitle ( const char *  titleX,
const char *  titleY 
)

Definition at line 360 of file FlavourHistorgrams2D.h.

Referenced by TagCorrelationPlotter::TagCorrelationPlotter().

360  {
361  if(theHisto_all) theHisto_all ->setAxisTitle(titleX) ;
362  if(theHisto_all) theHisto_all ->setAxisTitle(titleY, 2) ;
363  if (mcPlots_) {
364 
365  if(theHisto_d) theHisto_d ->setAxisTitle(titleX) ;
366  if(theHisto_u) theHisto_u ->setAxisTitle(titleX) ;
367  if(theHisto_s) theHisto_s ->setAxisTitle(titleX) ;
368  if(theHisto_c) theHisto_c ->setAxisTitle(titleX) ;
369  if(theHisto_b) theHisto_b ->setAxisTitle(titleX) ;
370  if(theHisto_g) theHisto_g ->setAxisTitle(titleX) ;
371  if(theHisto_ni) theHisto_ni ->setAxisTitle(titleX) ;
372  if(theHisto_dus) theHisto_dus ->setAxisTitle(titleX) ;
374  if(theHisto_d) theHisto_d ->setAxisTitle(titleY, 2) ;
375  if(theHisto_u) theHisto_u ->setAxisTitle(titleY, 2) ;
376  if(theHisto_s) theHisto_s ->setAxisTitle(titleY, 2) ;
377  if(theHisto_c) theHisto_c ->setAxisTitle(titleY, 2) ;
378  if(theHisto_b) theHisto_b ->setAxisTitle(titleY, 2) ;
379  if(theHisto_g) theHisto_g ->setAxisTitle(titleY, 2) ;
380  if(theHisto_ni) theHisto_ni ->setAxisTitle(titleY, 2) ;
381  if(theHisto_dus) theHisto_dus ->setAxisTitle(titleY, 2) ;
382  if(theHisto_dusg)theHisto_dusg->setAxisTitle(titleY, 2) ;
383  }
384 
385  if(createProfile_) {
387  if(theProfile_all) theProfile_all ->setAxisTitle(titleY, 2) ;
388  if (mcPlots_ == true) {
389 
390  if(theProfile_d) theProfile_d ->setAxisTitle(titleX) ;
391  if(theProfile_u) theProfile_u ->setAxisTitle(titleX) ;
392  if(theProfile_s) theProfile_s ->setAxisTitle(titleX) ;
393  if(theProfile_c) theProfile_c ->setAxisTitle(titleX) ;
394  if(theProfile_b) theProfile_b ->setAxisTitle(titleX) ;
395  if(theProfile_g) theProfile_g ->setAxisTitle(titleX) ;
399  if(theProfile_d) theProfile_d ->setAxisTitle(titleY, 2) ;
400  if(theProfile_u) theProfile_u ->setAxisTitle(titleY, 2) ;
401  if(theProfile_s) theProfile_s ->setAxisTitle(titleY, 2) ;
402  if(theProfile_c) theProfile_c ->setAxisTitle(titleY, 2) ;
403  if(theProfile_b) theProfile_b ->setAxisTitle(titleY, 2) ;
404  if(theProfile_g) theProfile_g ->setAxisTitle(titleY, 2) ;
405  if(theProfile_ni) theProfile_ni ->setAxisTitle(titleY, 2) ;
406  if(theProfile_dus) theProfile_dus ->setAxisTitle(titleY, 2) ;
408  }
409  }
410 }
MonitorElement * theProfile_s
MonitorElement * theHisto_g
MonitorElement * theProfile_dusg
MonitorElement * theHisto_dusg
MonitorElement * theHisto_u
MonitorElement * theHisto_c
MonitorElement * theProfile_all
MonitorElement * theProfile_ni
MonitorElement * theHisto_dus
MonitorElement * theProfile_u
MonitorElement * theHisto_s
MonitorElement * theProfile_b
MonitorElement * theProfile_c
MonitorElement * theProfile_d
MonitorElement * theProfile_dus
MonitorElement * theHisto_all
MonitorElement * theProfile_g
MonitorElement * theHisto_b
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * theHisto_ni
MonitorElement * theHisto_d
template<class T, class G>
bool FlavourHistograms2D< T, G >::statistics ( ) const
inline

Definition at line 73 of file FlavourHistorgrams2D.h.

73 { return theStatistics ; }
template<class T, class G>
double FlavourHistograms2D< T, G >::upperBoundX ( ) const
inline

Definition at line 70 of file FlavourHistorgrams2D.h.

70 { return theUpperBoundX ; }
template<class T, class G>
double FlavourHistograms2D< T, G >::upperBoundY ( ) const
inline

Definition at line 72 of file FlavourHistorgrams2D.h.

72 { return theUpperBoundY ; }

Member Data Documentation

template<class T, class G>
bool FlavourHistograms2D< T, G >::createProfile_
private
template<class T, class G>
bool FlavourHistograms2D< T, G >::mcPlots_
private
template<class T, class G>
int* FlavourHistograms2D< T, G >::theArrayDimension
protected
template<class T, class G>
std::string FlavourHistograms2D< T, G >::theBaseNameDescription
protected
template<class T, class G>
std::string FlavourHistograms2D< T, G >::theBaseNameTitle
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theHisto_all
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theHisto_b
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theHisto_c
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theHisto_d
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theHisto_dus
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theHisto_dusg
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theHisto_g
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theHisto_ni
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theHisto_s
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theHisto_u
protected
template<class T, class G>
int FlavourHistograms2D< T, G >::theIndexToPlot
protected

Definition at line 117 of file FlavourHistorgrams2D.h.

template<class T, class G>
double FlavourHistograms2D< T, G >::theLowerBoundX
protected
template<class T, class G>
double FlavourHistograms2D< T, G >::theLowerBoundY
protected
template<class T, class G>
double FlavourHistograms2D< T, G >::theMax
protected
template<class T, class G>
int FlavourHistograms2D< T, G >::theMaxDimension
protected

Definition at line 116 of file FlavourHistorgrams2D.h.

template<class T, class G>
double FlavourHistograms2D< T, G >::theMin
protected
template<class T, class G>
int FlavourHistograms2D< T, G >::theNBinsX
protected
template<class T, class G>
int FlavourHistograms2D< T, G >::theNBinsY
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theProfile_all
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theProfile_b
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theProfile_c
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theProfile_d
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theProfile_dus
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theProfile_dusg
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theProfile_g
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theProfile_ni
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theProfile_s
protected
template<class T, class G>
MonitorElement* FlavourHistograms2D< T, G >::theProfile_u
protected
template<class T, class G>
bool FlavourHistograms2D< T, G >::theStatistics
protected
template<class T, class G>
double FlavourHistograms2D< T, G >::theUpperBoundX
protected
template<class T, class G>
double FlavourHistograms2D< T, G >::theUpperBoundY
protected