13 #include "TObjArray.h" 24 double HistoBinWidth (
const TH1F * theHisto ,
const int& iBin ) ;
28 void HistoToNormalizedArrays (
const TH1F * theHisto , TArrayF & theNormalizedArray , TArrayF & theLeftOfBinArray , TArrayF & theBinWidthArray ) ;
30 double IntegrateArray (
const TArrayF & theArray ,
const TArrayF & theBinWidth ) ;
52 int findBinClosestYValue (
const TH1F * ,
const float& yVal ,
const float& yLow ,
const float& yHigh ) ;
54 std::vector<int>
findBinClosestYValueAtFixedZ (
const TH2F * ,
const float& yVal ,
const float& yLow ,
const float& yHigh,
const TH2F *,
const std::vector<double>& zVal) ;
58 void tdrGrid(
const bool& gridOn);
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)
std::vector< int > findBinClosestYValueAtFixedZ(const TH2F *, const float &yVal, const float &yLow, const float &yHigh, const TH2F *, const std::vector< double > &zVal)
void PrintHistos(const std::string &psFile, const std::string &epsFile, const std::string &gifFile)