#include <FlavourHistorgrams.h>
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 |
MonitorElement * | theHisto_all |
MonitorElement * | theHisto_b |
MonitorElement * | theHisto_c |
MonitorElement * | theHisto_d |
MonitorElement * | theHisto_dus |
MonitorElement * | theHisto_dusg |
MonitorElement * | theHisto_g |
MonitorElement * | theHisto_ni |
MonitorElement * | theHisto_pu |
MonitorElement * | theHisto_s |
MonitorElement * | theHisto_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_ |
Definition at line 29 of file FlavourHistorgrams.h.
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.
References gather_cfg::cout, DQMStore::IGetter::get(), FlavourHistograms< T >::mcPlots_, FlavourHistograms< T >::theArrayDimension, FlavourHistograms< T >::theBaseNameTitle, FlavourHistograms< T >::theCanvas, FlavourHistograms< T >::theHisto_all, FlavourHistograms< T >::theHisto_b, FlavourHistograms< T >::theHisto_c, FlavourHistograms< T >::theHisto_d, FlavourHistograms< T >::theHisto_dus, FlavourHistograms< T >::theHisto_dusg, FlavourHistograms< T >::theHisto_g, FlavourHistograms< T >::theHisto_ni, FlavourHistograms< T >::theHisto_pu, FlavourHistograms< T >::theHisto_s, FlavourHistograms< T >::theHisto_u, and FlavourHistograms< T >::thePlotFirst.
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.
References HistoProviderDQM::book1D(), gather_cfg::cout, MonitorElement::getTH1F(), FlavourHistograms< T >::mcPlots_, FlavourHistograms< T >::theArrayDimension, FlavourHistograms< T >::theBaseNameDescription, FlavourHistograms< T >::theBaseNameTitle, FlavourHistograms< T >::theCanvas, FlavourHistograms< T >::theHisto_all, FlavourHistograms< T >::theHisto_b, FlavourHistograms< T >::theHisto_c, FlavourHistograms< T >::theHisto_d, FlavourHistograms< T >::theHisto_dus, FlavourHistograms< T >::theHisto_dusg, FlavourHistograms< T >::theHisto_g, FlavourHistograms< T >::theHisto_ni, FlavourHistograms< T >::theHisto_pu, FlavourHistograms< T >::theHisto_s, FlavourHistograms< T >::theHisto_u, FlavourHistograms< T >::theLowerBound, FlavourHistograms< T >::theNBins, FlavourHistograms< T >::thePlotFirst, FlavourHistograms< T >::theStatistics, and FlavourHistograms< T >::theUpperBound.
|
virtual |
|
inlineprivate |
Definition at line 144 of file FlavourHistorgrams.h.
|
inline |
|
inline |
Definition at line 69 of file FlavourHistorgrams.h.
Referenced by EffPurFromHistos::EffPurFromHistos().
|
inline |
Definition at line 68 of file FlavourHistorgrams.h.
Referenced by EffPurFromHistos::EffPurFromHistos().
|
protected |
Definition at line 512 of file FlavourHistorgrams.h.
References createfilelist::int.
Referenced by FlavourHistograms< T >::ComputeEfficiency(), and FlavourHistograms< int >::histo_pu().
|
protected |
Definition at line 524 of file FlavourHistorgrams.h.
References FlavourHistograms< T >::ClopperPearsonUnc().
Referenced by FlavourHistograms< T >::divide(), and FlavourHistograms< int >::histo_pu().
void FlavourHistograms< T >::divide | ( | const FlavourHistograms< T > & | bHD | ) |
Definition at line 536 of file FlavourHistorgrams.h.
References stringResolutionProvider_cfi::bin, FlavourHistograms< T >::ComputeEfficiency(), FlavourHistograms< T >::histo_all(), FlavourHistograms< T >::histo_b(), FlavourHistograms< T >::histo_c(), FlavourHistograms< T >::histo_d(), FlavourHistograms< T >::histo_dus(), FlavourHistograms< T >::histo_dusg(), FlavourHistograms< T >::histo_g(), FlavourHistograms< T >::histo_ni(), FlavourHistograms< T >::histo_pu(), FlavourHistograms< T >::histo_s(), FlavourHistograms< T >::histo_u(), FlavourHistograms< T >::mcPlots_, FlavourHistograms< T >::theHisto_all, FlavourHistograms< T >::theHisto_b, FlavourHistograms< T >::theHisto_c, FlavourHistograms< T >::theHisto_d, FlavourHistograms< T >::theHisto_dus, FlavourHistograms< T >::theHisto_dusg, FlavourHistograms< T >::theHisto_g, FlavourHistograms< T >::theHisto_ni, FlavourHistograms< T >::theHisto_pu, FlavourHistograms< T >::theHisto_s, FlavourHistograms< T >::theHisto_u, and FlavourHistograms< T >::theNBins.
Referenced by python.rootplot.utilities.Hist::__div__().
void FlavourHistograms< T >::epsPlot | ( | const std::string & | name | ) |
Definition at line 503 of file FlavourHistorgrams.h.
References FlavourHistograms< T >::plot(), FlavourHistograms< T >::theBaseNameDescription, and FlavourHistograms< T >::theBaseNameTitle.
Referenced by SoftLeptonTagPlotter::epsPlot(), IPTagPlotter< Container, Base >::epsPlot(), TrackCountingTagPlotter::epsPlot(), TrackProbabilityTagPlotter::epsPlot(), and JetTagPlotter::epsPlot().
void FlavourHistograms< T >::fill | ( | const int & | flavour, |
const T & | variable | ||
) | const |
Definition at line 306 of file FlavourHistorgrams.h.
References FlavourHistograms< T >::fillVariable().
Referenced by SoftLeptonTagPlotter::analyzeTag(), IPTagPlotter< Container, Base >::analyzeTag(), TrackCountingTagPlotter::analyzeTag(), JetTagPlotter::analyzeTag(), and TrackIPHistograms< T >::fill().
void FlavourHistograms< T >::fill | ( | const int & | flavour, |
const T & | variable, | ||
const T & | w | ||
) | const |
Definition at line 313 of file FlavourHistorgrams.h.
References FlavourHistograms< T >::fillVariable().
void FlavourHistograms< T >::fill | ( | const int & | flavour, |
const T * | variable | ||
) | const |
Definition at line 320 of file FlavourHistorgrams.h.
References FlavourHistograms< T >::fillVariable(), mps_fire::i, FlavourHistograms< T >::theArrayDimension, FlavourHistograms< T >::theIndexToPlot, and FlavourHistograms< T >::theMaxDimension.
|
protected |
Definition at line 577 of file FlavourHistorgrams.h.
References MonitorElement::Fill(), FlavourHistograms< T >::mcPlots_, FlavourHistograms< T >::theBaseNameDescription, FlavourHistograms< T >::theHisto_all, FlavourHistograms< T >::theHisto_b, FlavourHistograms< T >::theHisto_c, FlavourHistograms< T >::theHisto_d, FlavourHistograms< T >::theHisto_dus, FlavourHistograms< T >::theHisto_dusg, FlavourHistograms< T >::theHisto_g, FlavourHistograms< T >::theHisto_ni, FlavourHistograms< T >::theHisto_pu, FlavourHistograms< T >::theHisto_s, and FlavourHistograms< T >::theHisto_u.
Referenced by FlavourHistograms< T >::fill(), and FlavourHistograms< int >::histo_pu().
std::vector< TH1F * > FlavourHistograms< T >::getHistoVector | ( | ) | const |
Definition at line 633 of file FlavourHistorgrams.h.
References MonitorElement::getTH1F(), FlavourHistograms< T >::mcPlots_, FlavourHistograms< T >::theHisto_all, FlavourHistograms< T >::theHisto_b, FlavourHistograms< T >::theHisto_c, FlavourHistograms< T >::theHisto_d, FlavourHistograms< T >::theHisto_dus, FlavourHistograms< T >::theHisto_dusg, FlavourHistograms< T >::theHisto_g, FlavourHistograms< T >::theHisto_ni, FlavourHistograms< T >::theHisto_pu, FlavourHistograms< T >::theHisto_s, and FlavourHistograms< T >::theHisto_u.
Referenced by EffPurFromHistos::EffPurFromHistos(), and FlavourHistograms< int >::histo_pu().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 71 of file FlavourHistorgrams.h.
Referenced by EffPurFromHistos::EffPurFromHistos().
|
inline |
|
inline |
Definition at line 70 of file FlavourHistorgrams.h.
Referenced by EffPurFromHistos::EffPurFromHistos().
void FlavourHistograms< T >::plot | ( | TPad * | theCanvas = 0 | ) |
Definition at line 367 of file FlavourHistorgrams.h.
References cuy::col, MonitorElement::getTH1F(), trackerHits::histo, mps_fire::i, RecoTauValidation_cfi::lineStyle, RecoTauValidation_cfi::lineWidth, RecoTauValidation_cfi::markerSize, RecoTauValidation_cfi::markerStyle, hpstanc_transforms::max, RecoBTag::setTDRStyle(), FlavourHistograms< T >::theBaseNameDescription, FlavourHistograms< T >::theHisto_b, FlavourHistograms< T >::theHisto_c, FlavourHistograms< T >::theHisto_dusg, FlavourHistograms< T >::theHisto_ni, FlavourHistograms< T >::theMax, FlavourHistograms< T >::theMin, FlavourHistograms< T >::thePlotFirst, FlavourHistograms< T >::thePlotLog, and FlavourHistograms< T >::thePlotNormalized.
Referenced by FlavourHistograms< T >::epsPlot(), SoftLeptonTagPlotter::psPlot(), IPTagPlotter< Container, Base >::psPlot(), TrackCountingTagPlotter::psPlot(), TrackProbabilityTagPlotter::psPlot(), and JetTagPlotter::psPlot().
|
inline |
Definition at line 76 of file FlavourHistorgrams.h.
|
inline |
Definition at line 74 of file FlavourHistorgrams.h.
|
inline |
Definition at line 75 of file FlavourHistorgrams.h.
void FlavourHistograms< T >::setEfficiencyFlag | ( | ) |
Definition at line 557 of file FlavourHistorgrams.h.
References FlavourHistograms< T >::mcPlots_, MonitorElement::setEfficiencyFlag(), FlavourHistograms< T >::theHisto_all, FlavourHistograms< T >::theHisto_b, FlavourHistograms< T >::theHisto_c, FlavourHistograms< T >::theHisto_d, FlavourHistograms< T >::theHisto_dus, FlavourHistograms< T >::theHisto_dusg, FlavourHistograms< T >::theHisto_g, FlavourHistograms< T >::theHisto_ni, FlavourHistograms< T >::theHisto_pu, FlavourHistograms< T >::theHisto_s, and FlavourHistograms< T >::theHisto_u.
|
inline |
Definition at line 63 of file FlavourHistorgrams.h.
|
inline |
Definition at line 64 of file FlavourHistorgrams.h.
void FlavourHistograms< T >::settitle | ( | const char * | title | ) |
Definition at line 347 of file FlavourHistorgrams.h.
References FlavourHistograms< T >::mcPlots_, MonitorElement::setAxisTitle(), FlavourHistograms< T >::theHisto_all, FlavourHistograms< T >::theHisto_b, FlavourHistograms< T >::theHisto_c, FlavourHistograms< T >::theHisto_d, FlavourHistograms< T >::theHisto_dus, FlavourHistograms< T >::theHisto_dusg, FlavourHistograms< T >::theHisto_g, FlavourHistograms< T >::theHisto_ni, FlavourHistograms< T >::theHisto_pu, FlavourHistograms< T >::theHisto_s, and FlavourHistograms< T >::theHisto_u.
Referenced by JetTagPlotter::JetTagPlotter(), and TrackIPHistograms< T >::settitle().
|
inline |
Definition at line 73 of file FlavourHistorgrams.h.
|
inline |
Definition at line 72 of file FlavourHistorgrams.h.
Referenced by EffPurFromHistos::EffPurFromHistos().
|
private |
Definition at line 146 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 110 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< int >::arrayDimension(), TrackIPHistograms< T >::fill(), FlavourHistograms< T >::fill(), and FlavourHistograms< T >::FlavourHistograms().
|
protected |
Definition at line 115 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< int >::baseNameDescription(), FlavourHistograms< T >::epsPlot(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), and FlavourHistograms< T >::plot().
|
protected |
Definition at line 114 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< int >::baseNameTitle(), FlavourHistograms< T >::epsPlot(), and FlavourHistograms< T >::FlavourHistograms().
|
protected |
Definition at line 142 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::FlavourHistograms(), and FlavourHistograms< T >::~FlavourHistograms().
|
protected |
Definition at line 126 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_all(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 131 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_b(), FlavourHistograms< T >::plot(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 130 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_c(), FlavourHistograms< T >::plot(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 127 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_d(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 134 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_dus(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 135 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_dusg(), FlavourHistograms< T >::plot(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 132 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_g(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 133 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_ni(), FlavourHistograms< T >::plot(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 136 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_pu(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 129 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_s(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 128 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::fillVariable(), FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::getHistoVector(), FlavourHistograms< int >::histo_u(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms< T >::settitle().
|
protected |
Definition at line 112 of file FlavourHistorgrams.h.
Referenced by TrackIPHistograms< T >::fill(), FlavourHistograms< T >::fill(), and FlavourHistograms< int >::indexToPlot().
|
protected |
Definition at line 117 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::FlavourHistograms(), and FlavourHistograms< int >::lowerBound().
|
protected |
Definition at line 123 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::plot(), and FlavourHistograms< int >::SetMaximum().
|
protected |
Definition at line 111 of file FlavourHistorgrams.h.
Referenced by TrackIPHistograms< T >::fill(), FlavourHistograms< T >::fill(), and FlavourHistograms< int >::maxDimension().
|
protected |
Definition at line 123 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::plot(), and FlavourHistograms< int >::SetMinimum().
|
protected |
Definition at line 116 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::divide(), FlavourHistograms< T >::FlavourHistograms(), and FlavourHistograms< int >::nBins().
|
protected |
Definition at line 122 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::FlavourHistograms(), FlavourHistograms< T >::plot(), and FlavourHistograms< int >::plotFirst().
|
protected |
Definition at line 120 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::plot(), and FlavourHistograms< int >::plotLog().
|
protected |
Definition at line 121 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::plot(), and FlavourHistograms< int >::plotNormalized().
|
protected |
Definition at line 119 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::FlavourHistograms(), and FlavourHistograms< int >::statistics().
|
protected |
Definition at line 118 of file FlavourHistorgrams.h.
Referenced by FlavourHistograms< T >::FlavourHistograms(), and FlavourHistograms< int >::upperBound().