12 #include "TObjArray.h"
23 double HistoBinWidth (
const TH1F * theHisto ,
const int& iBin ) ;
27 void HistoToNormalizedArrays (
const TH1F * theHisto , TArrayF & theNormalizedArray , TArrayF & theLeftOfBinArray , TArrayF & theBinWidthArray ) ;
29 double IntegrateArray (
const TArrayF & theArray ,
const TArrayF & theBinWidth ) ;
31 void PrintHistos (
const std::string& psFile ,
const std::string& epsFile ,
const std::string& gifFile ) ;
33 void PrintCanvasHistos ( TCanvas *
canvas ,
const std::string& psFile ,
const std::string& epsFile ,
const std::string& gifFile ) ;
37 std::string
flavour (
const int& flav ) ;
51 int findBinClosestYValue (
const TH1F * ,
const float& yVal ,
const float& yLow ,
const float& yHigh ) ;
55 void tdrGrid(
const bool& gridOn);
59 std::string
itos(
const int&
i);
void PrintCanvasHistos(TCanvas *canvas, const std::string &psFile, const std::string &epsFile, const std::string &gifFile)
bool flavourIsG(const int &flav)
bool flavourIsNI(const int &flav)
double IntegrateHistogram(const TH1F *theHisto)
bool flavourIsD(const int &flav)
int findBinClosestYValue(const TH1F *, const float &yVal, const float &yLow, const float &yHigh)
bool flavourIsC(const int &flav)
bool flavourIsU(const int &flav)
int checkCreateDirectory(const std::string &)
TObjArray getHistArray(TFile *histoFile, const std::string &baseName)
void tdrGrid(const bool &gridOn)
double IntegrateArray(const TArrayF &theArray, const TArrayF &theBinWidth)
double HistoBinWidth(const TH1F *theHisto, const int &iBin)
std::string flavour(const int &flav)
bool flavourIsB(const int &flav)
bool flavourIsDUSG(const int &flav)
void HistoToNormalizedArrays(const TH1F *theHisto, TArrayF &theNormalizedArray, TArrayF &theLeftOfBinArray, TArrayF &theBinWidthArray)
bool flavourIsS(const int &flav)
bool flavourIsDUS(const int &flav)
std::string itos(const int &i)
void PrintHistos(const std::string &psFile, const std::string &epsFile, const std::string &gifFile)