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
FlavourHistograms< T > Class Template Reference

#include <FlavourHistorgrams.h>

Inheritance diagram for FlavourHistograms< T >:
TrackIPHistograms< T >

Public Member Functions

int * arrayDimension () const
 
std::string baseNameDescription () const
 
std::string baseNameTitle () const
 
void divide (const FlavourHistograms< T > &bHD)
 
void epsPlot (const std::string &name)
 
void fill (const int &flavour, const T &variable) const
 
void fill (const int &flavour, const T &variable, const T &w) const
 
void fill (const int &flavour, const T *variable) const
 
 FlavourHistograms (const std::string &baseNameTitle_, const std::string &baseNameDescription_, const int &nBins_, const double &lowerBound_, const double &upperBound_, const std::string &plotFirst_, const std::string &folder, const unsigned int &mc, DQMStore::IGetter &iget)
 
 FlavourHistograms (const std::string &baseNameTitle_, const std::string &baseNameDescription_, const int &nBins_, const double &lowerBound_, const double &upperBound_, const bool &statistics_, const bool &plotLog_, const bool &plotNormalized_, const std::string &plotFirst_, const std::string &folder, const unsigned int &mc, DQMStore::IBooker &ibook)
 
std::vector< TH1F * > getHistoVector () const
 
TH1F * histo_all () const
 
TH1F * histo_b () const
 
TH1F * histo_c () const
 
TH1F * histo_d () const
 
TH1F * histo_dus () const
 
TH1F * histo_dusg () const
 
TH1F * histo_g () const
 
TH1F * histo_ni () const
 
TH1F * histo_pu () const
 
TH1F * histo_s () const
 
TH1F * histo_u () const
 
int indexToPlot () const
 
double lowerBound () const
 
int maxDimension () const
 
int nBins () const
 
void plot (TPad *theCanvas=0)
 
std::string plotFirst () const
 
bool plotLog () const
 
bool plotNormalized () const
 
void setEfficiencyFlag ()
 
void SetMaximum (const double &max)
 
void SetMinimum (const double &min)
 
void settitle (const char *title)
 
bool statistics () const
 
double upperBound () const
 
virtual ~FlavourHistograms ()
 

Protected Member Functions

double ClopperPearsonUnc (TH1F *num, TH1F *den, int bin)
 
void ComputeEfficiency (TH1F *num, TH1F *den, int bin)
 
void fillVariable (const int &flavour, const T &var, const T &w) const
 

Protected Attributes

int * theArrayDimension
 
std::string theBaseNameDescription
 
std::string theBaseNameTitle
 
TCanvas * theCanvas
 
MonitorElementtheHisto_all
 
MonitorElementtheHisto_b
 
MonitorElementtheHisto_c
 
MonitorElementtheHisto_d
 
MonitorElementtheHisto_dus
 
MonitorElementtheHisto_dusg
 
MonitorElementtheHisto_g
 
MonitorElementtheHisto_ni
 
MonitorElementtheHisto_pu
 
MonitorElementtheHisto_s
 
MonitorElementtheHisto_u
 
int theIndexToPlot
 
double theLowerBound
 
double theMax
 
int theMaxDimension
 
double theMin
 
int theNBins
 
std::string thePlotFirst
 
bool thePlotLog
 
bool thePlotNormalized
 
bool theStatistics
 
double theUpperBound
 

Private Member Functions

 FlavourHistograms ()
 

Private Attributes

unsigned int mcPlots_
 

Detailed Description

template<class T>
class FlavourHistograms< T >

Definition at line 29 of file FlavourHistorgrams.h.

Constructor & Destructor Documentation

template<class T >
FlavourHistograms< T >::FlavourHistograms ( const std::string &  baseNameTitle_,
const std::string &  baseNameDescription_,
const int &  nBins_,
const double &  lowerBound_,
const double &  upperBound_,
const std::string &  plotFirst_,
const std::string &  folder,
const unsigned int &  mc,
DQMStore::IGetter iget 
)

Definition at line 151 of file FlavourHistorgrams.h.

template<class T >
FlavourHistograms< T >::FlavourHistograms ( const std::string &  baseNameTitle_,
const std::string &  baseNameDescription_,
const int &  nBins_,
const double &  lowerBound_,
const double &  upperBound_,
const bool &  statistics_,
const bool &  plotLog_,
const bool &  plotNormalized_,
const std::string &  plotFirst_,
const std::string &  folder,
const unsigned int &  mc,
DQMStore::IBooker ibook 
)

Definition at line 214 of file FlavourHistorgrams.h.

template<class T >
FlavourHistograms< T >::~FlavourHistograms ( )
virtual

Definition at line 299 of file FlavourHistorgrams.h.

template<class T>
FlavourHistograms< T >::FlavourHistograms ( )
inlineprivate

Definition at line 144 of file FlavourHistorgrams.h.

Member Function Documentation

template<class T>
int* FlavourHistograms< T >::arrayDimension ( ) const
inline

Definition at line 77 of file FlavourHistorgrams.h.

template<class T>
std::string FlavourHistograms< T >::baseNameDescription ( ) const
inline

Definition at line 69 of file FlavourHistorgrams.h.

template<class T>
std::string FlavourHistograms< T >::baseNameTitle ( ) const
inline

Definition at line 68 of file FlavourHistorgrams.h.

template<class T >
double FlavourHistograms< T >::ClopperPearsonUnc ( TH1F *  num,
TH1F *  den,
int  bin 
)
protected

Definition at line 512 of file FlavourHistorgrams.h.

template<class T >
void FlavourHistograms< T >::ComputeEfficiency ( TH1F *  num,
TH1F *  den,
int  bin 
)
protected

Definition at line 524 of file FlavourHistorgrams.h.

template<class T>
void FlavourHistograms< T >::divide ( const FlavourHistograms< T > &  bHD)

Definition at line 536 of file FlavourHistorgrams.h.

template<class T >
void FlavourHistograms< T >::epsPlot ( const std::string &  name)

Definition at line 503 of file FlavourHistorgrams.h.

template<class T>
void FlavourHistograms< T >::fill ( const int &  flavour,
const T variable 
) const

Definition at line 306 of file FlavourHistorgrams.h.

template<class T>
void FlavourHistograms< T >::fill ( const int &  flavour,
const T variable,
const T w 
) const

Definition at line 313 of file FlavourHistorgrams.h.

template<class T>
void FlavourHistograms< T >::fill ( const int &  flavour,
const T variable 
) const

Definition at line 320 of file FlavourHistorgrams.h.

template<class T>
void FlavourHistograms< T >::fillVariable ( const int &  flavour,
const T var,
const T w 
) const
protected

Definition at line 577 of file FlavourHistorgrams.h.

template<class T >
std::vector< TH1F * > FlavourHistograms< T >::getHistoVector ( ) const

Definition at line 633 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_all ( ) const
inline

Definition at line 82 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_b ( ) const
inline

Definition at line 87 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_c ( ) const
inline

Definition at line 86 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_d ( ) const
inline

Definition at line 83 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_dus ( ) const
inline

Definition at line 90 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_dusg ( ) const
inline

Definition at line 91 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_g ( ) const
inline

Definition at line 88 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_ni ( ) const
inline

Definition at line 89 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_pu ( ) const
inline

Definition at line 92 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_s ( ) const
inline

Definition at line 85 of file FlavourHistorgrams.h.

template<class T>
TH1F* FlavourHistograms< T >::histo_u ( ) const
inline

Definition at line 84 of file FlavourHistorgrams.h.

template<class T>
int FlavourHistograms< T >::indexToPlot ( ) const
inline

Definition at line 79 of file FlavourHistorgrams.h.

template<class T>
double FlavourHistograms< T >::lowerBound ( ) const
inline

Definition at line 71 of file FlavourHistorgrams.h.

template<class T>
int FlavourHistograms< T >::maxDimension ( ) const
inline

Definition at line 78 of file FlavourHistorgrams.h.

template<class T>
int FlavourHistograms< T >::nBins ( ) const
inline

Definition at line 70 of file FlavourHistorgrams.h.

template<class T >
void FlavourHistograms< T >::plot ( TPad *  theCanvas = 0)

Definition at line 367 of file FlavourHistorgrams.h.

template<class T>
std::string FlavourHistograms< T >::plotFirst ( ) const
inline

Definition at line 76 of file FlavourHistorgrams.h.

template<class T>
bool FlavourHistograms< T >::plotLog ( ) const
inline

Definition at line 74 of file FlavourHistorgrams.h.

template<class T>
bool FlavourHistograms< T >::plotNormalized ( ) const
inline

Definition at line 75 of file FlavourHistorgrams.h.

template<class T >
void FlavourHistograms< T >::setEfficiencyFlag ( )

Definition at line 557 of file FlavourHistorgrams.h.

template<class T>
void FlavourHistograms< T >::SetMaximum ( const double &  max)
inline

Definition at line 63 of file FlavourHistorgrams.h.

template<class T>
void FlavourHistograms< T >::SetMinimum ( const double &  min)
inline

Definition at line 64 of file FlavourHistorgrams.h.

template<class T >
void FlavourHistograms< T >::settitle ( const char *  title)

Definition at line 347 of file FlavourHistorgrams.h.

template<class T>
bool FlavourHistograms< T >::statistics ( ) const
inline

Definition at line 73 of file FlavourHistorgrams.h.

template<class T>
double FlavourHistograms< T >::upperBound ( ) const
inline

Definition at line 72 of file FlavourHistorgrams.h.

Member Data Documentation

template<class T>
unsigned int FlavourHistograms< T >::mcPlots_
private

Definition at line 146 of file FlavourHistorgrams.h.

template<class T>
int* FlavourHistograms< T >::theArrayDimension
protected

Definition at line 110 of file FlavourHistorgrams.h.

template<class T>
std::string FlavourHistograms< T >::theBaseNameDescription
protected

Definition at line 115 of file FlavourHistorgrams.h.

template<class T>
std::string FlavourHistograms< T >::theBaseNameTitle
protected

Definition at line 114 of file FlavourHistorgrams.h.

template<class T>
TCanvas* FlavourHistograms< T >::theCanvas
protected

Definition at line 142 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_all
protected

Definition at line 126 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_b
protected

Definition at line 131 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_c
protected

Definition at line 130 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_d
protected

Definition at line 127 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_dus
protected

Definition at line 134 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_dusg
protected

Definition at line 135 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_g
protected

Definition at line 132 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_ni
protected

Definition at line 133 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_pu
protected

Definition at line 136 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_s
protected

Definition at line 129 of file FlavourHistorgrams.h.

template<class T>
MonitorElement* FlavourHistograms< T >::theHisto_u
protected

Definition at line 128 of file FlavourHistorgrams.h.

template<class T>
int FlavourHistograms< T >::theIndexToPlot
protected

Definition at line 112 of file FlavourHistorgrams.h.

template<class T>
double FlavourHistograms< T >::theLowerBound
protected

Definition at line 117 of file FlavourHistorgrams.h.

template<class T>
double FlavourHistograms< T >::theMax
protected

Definition at line 123 of file FlavourHistorgrams.h.

template<class T>
int FlavourHistograms< T >::theMaxDimension
protected

Definition at line 111 of file FlavourHistorgrams.h.

template<class T>
double FlavourHistograms< T >::theMin
protected

Definition at line 123 of file FlavourHistorgrams.h.

template<class T>
int FlavourHistograms< T >::theNBins
protected

Definition at line 116 of file FlavourHistorgrams.h.

template<class T>
std::string FlavourHistograms< T >::thePlotFirst
protected

Definition at line 122 of file FlavourHistorgrams.h.

template<class T>
bool FlavourHistograms< T >::thePlotLog
protected

Definition at line 120 of file FlavourHistorgrams.h.

template<class T>
bool FlavourHistograms< T >::thePlotNormalized
protected

Definition at line 121 of file FlavourHistorgrams.h.

template<class T>
bool FlavourHistograms< T >::theStatistics
protected

Definition at line 119 of file FlavourHistorgrams.h.

template<class T>
double FlavourHistograms< T >::theUpperBound
protected

Definition at line 118 of file FlavourHistorgrams.h.