![]() |
![]() |
Functions | |
int | checkCreateDirectory (const std::string &) |
int | findBinClosestYValue (const TH1F *, const float &yVal, const float &yLow, const float &yHigh) |
std::vector< int > | findBinClosestYValueAtFixedZ (const TH2F *, const float &yVal, const float &yLow, const float &yHigh, const TH2F *, const std::vector< double > &zVal) |
void | fixOverlay () |
std::string | flavour (const int &flav) |
bool | flavourIsB (const int &flav) |
bool | flavourIsC (const int &flav) |
bool | flavourIsD (const int &flav) |
bool | flavourIsDUS (const int &flav) |
bool | flavourIsDUSG (const int &flav) |
bool | flavourIsG (const int &flav) |
bool | flavourIsNI (const int &flav) |
bool | flavourIsS (const int &flav) |
bool | flavourIsU (const int &flav) |
TObjArray | getHistArray (TFile *histoFile, const std::string &baseName) |
double | HistoBinWidth (const TH1F *theHisto, const int &iBin) |
void | HistoToNormalizedArrays (const TH1F *theHisto, TArrayF &theNormalizedArray, TArrayF &theLeftOfBinArray, TArrayF &theBinWidthArray) |
double | IntegrateArray (const TArrayF &theArray, const TArrayF &theBinWidth) |
double | IntegrateHistogram (const TH1F *theHisto) |
std::string | itos (const int &i) |
void | PrintCanvasHistos (TCanvas *canvas, const std::string &psFile, const std::string &epsFile, const std::string &gifFile) |
void | PrintHistos (const std::string &psFile, const std::string &epsFile, const std::string &gifFile) |
TStyle * | setTDRStyle () |
void | tdrGrid (const bool &gridOn) |
int RecoBTag::checkCreateDirectory | ( | const std::string & | directory | ) |
Definition at line 205 of file Tools.cc.
References gather_cfg::cout, and beamerCreator::create().
int RecoBTag::findBinClosestYValue | ( | const TH1F * | histo, |
const float & | yVal, | ||
const float & | yLow, | ||
const float & | yHigh | ||
) |
Definition at line 233 of file Tools.cc.
References gather_cfg::cout, cuy::iBinClosest, cuy::iBinClosestInit, cuy::maxInHisto, cuy::minInHisto, cuy::yBin, cuy::yClosest, and cuy::yClosestInit.
Referenced by EffPurFromHistos::compute().
vector< int > RecoBTag::findBinClosestYValueAtFixedZ | ( | const TH2F * | histoY, |
const float & | yVal, | ||
const float & | yLow, | ||
const float & | yHigh, | ||
const TH2F * | histoZ, | ||
const std::vector< double > & | zVal | ||
) |
Definition at line 286 of file Tools.cc.
References mps_fire::i, cuy::iBinClosest, cuy::iBinClosestInit, cuy::maxInHisto, cuy::minInHisto, cuy::yBin, cuy::yClosest, cuy::yClosestInit, and conversionPostprocessing_cfi::zBin.
Referenced by EffPurFromHistos2D::compute().
void RecoBTag::fixOverlay | ( | ) |
std::string RecoBTag::flavour | ( | const int & | flav | ) |
bool RecoBTag::flavourIsB | ( | const int & | flav | ) |
bool RecoBTag::flavourIsC | ( | const int & | flav | ) |
bool RecoBTag::flavourIsD | ( | const int & | flav | ) |
Definition at line 190 of file Tools.cc.
Referenced by flavourIsDUS(), and flavourIsNI().
bool RecoBTag::flavourIsDUS | ( | const int & | flav | ) |
Definition at line 197 of file Tools.cc.
References flavourIsD(), flavourIsS(), and flavourIsU().
Referenced by flavourIsDUSG().
bool RecoBTag::flavourIsDUSG | ( | const int & | flav | ) |
bool RecoBTag::flavourIsG | ( | const int & | flav | ) |
Definition at line 195 of file Tools.cc.
Referenced by flavourIsDUSG(), and flavourIsNI().
bool RecoBTag::flavourIsNI | ( | const int & | flav | ) |
Definition at line 200 of file Tools.cc.
References flavourIsB(), flavourIsC(), flavourIsD(), flavourIsG(), flavourIsS(), and flavourIsU().
bool RecoBTag::flavourIsS | ( | const int & | flav | ) |
Definition at line 192 of file Tools.cc.
Referenced by flavourIsDUS(), and flavourIsNI().
bool RecoBTag::flavourIsU | ( | const int & | flav | ) |
Definition at line 191 of file Tools.cc.
Referenced by flavourIsDUS(), and flavourIsNI().
TObjArray RecoBTag::getHistArray | ( | TFile * | histoFile, |
const std::string & | baseName | ||
) |
Definition at line 147 of file Tools.cc.
References plotFactory::histos, and AlCaHLTBitMon_QueryRunRegistry::string.
double RecoBTag::HistoBinWidth | ( | const TH1F * | theHisto, |
const int & | iBin | ||
) |
Definition at line 19 of file Tools.cc.
Referenced by HistoToNormalizedArrays(), and IntegrateHistogram().
void RecoBTag::HistoToNormalizedArrays | ( | const TH1F * | theHisto, |
TArrayF & | theNormalizedArray, | ||
TArrayF & | theLeftOfBinArray, | ||
TArrayF & | theBinWidthArray | ||
) |
Definition at line 57 of file Tools.cc.
References gather_cfg::cout, HistoBinWidth(), and IntegrateHistogram().
double RecoBTag::IntegrateArray | ( | const TArrayF & | theArray, |
const TArrayF & | theBinWidth | ||
) |
double RecoBTag::IntegrateHistogram | ( | const TH1F * | theHisto | ) |
Definition at line 34 of file Tools.cc.
References HistoBinWidth().
Referenced by HistoToNormalizedArrays().
string RecoBTag::itos | ( | const int & | i | ) |
void RecoBTag::PrintCanvasHistos | ( | TCanvas * | canvas, |
const std::string & | psFile, | ||
const std::string & | epsFile, | ||
const std::string & | gifFile | ||
) |
Definition at line 109 of file Tools.cc.
References gather_cfg::cout, and AlCaHLTBitMon_QueryRunRegistry::string.
void RecoBTag::PrintHistos | ( | const std::string & | psFile, |
const std::string & | epsFile, | ||
const std::string & | gifFile | ||
) |
TStyle * RecoBTag::setTDRStyle | ( | ) |
Function to setup a TDR-like style
Definition at line 346 of file Tools.cc.
References compare_using_db::dirname, and plotscripts::tdrStyle.
Referenced by BTagPerformanceAnalyzerOnData::bookHistograms(), BTagPerformanceAnalyzerMC::bookHistograms(), BDHadronTrackMonitoringAnalyzer::bookHistograms(), BTagPerformanceHarvester::dqmEndJob(), BDHadronTrackMonitoringHarvester::dqmEndJob(), LRHelpFunctions::LRHelpFunctions(), EffPurFromHistos2D::plot(), EffPurFromHistos::plot(), FlavourHistograms< T >::plot(), FlavourHistograms2D< T, G >::plot(), SoftLeptonTagPlotter::psPlot(), IPTagPlotter< Container, Base >::psPlot(), TrackCountingTagPlotter::psPlot(), TrackProbabilityTagPlotter::psPlot(), JetTagPlotter::psPlot(), and tdrGrid().
void RecoBTag::tdrGrid | ( | const bool & | gridOn | ) |
Definition at line 493 of file Tools.cc.
References plotscripts::setTDRStyle(), and plotscripts::tdrStyle.