9 #ifndef LRHelpFunctions_h
10 #define LRHelpFunctions_h
32 #include "TPaveText.h"
41 LRHelpFunctions(
const std::vector<int>&,
int,
const std::vector<double>&,
const std::vector<double>&,
const std::vector<const char*>&);
44 void recreateFitFct(
const std::vector<int>& obsNr,
const std::vector<const char*>& functions);
52 double obsVal2,
double weight);
61 double calcLRval(
const std::vector<double>&);
62 double calcPtdrLRval(
const std::vector<double>&
vals,
bool useCorrelation =
false);
65 void setXlabels(
const std::vector<std::string> & xLabels);
66 void setYlabels(
const std::vector<std::string> & yLabels);
67 void singlePlot(
const TString&
fname,
int obsNbr,
const TString& extension= TString(
"eps"));
68 void purityPlot(
const TString& fname,
const TString& extension= TString(
"eps"));
void storeControlPlots(const TString &)
double calcLRval(const std::vector< double > &)
std::vector< TH1F * > hObsSoverSplusB
void setXlabels(const std::vector< std::string > &xLabels)
void recreateFitFct(const std::vector< int > &obsNr, const std::vector< const char * > &functions)
std::vector< TH1F * > hObsS
double calcPtdrLRval(const std::vector< double > &vals, bool useCorrelation=false)
void makeAndFitPurityHists()
std::vector< TH1F * > hObsB
void setYlabels(const std::vector< std::string > &yLabels)
Help functionalities to implement and evaluate LR ratio method.
std::vector< TH2F * > hObsCorr
void fillToBackgroundHists(const std::vector< double > &, double weight=1.0)
void fillToSignalCorrelation(int obsNbr1, double obsVal1, int obsNbr2, double obsVal2, double weight)
void makeAndFitSoverSplusBHists()
void storeToROOTfile(const TString &)
std::vector< int > obsNumbers
void fillLRSignalHist(double, double weight=1.0)
void singlePlot(const TString &fname, int obsNbr, const TString &extension=TString("eps"))
void readObsHistsAndFits(const TString &, const std::vector< int > &, bool)
void fillToSignalHists(const std::vector< double > &, double weight=1.0)
void setObsFitParameters(int obs, const std::vector< double > &)
std::vector< TF1 * > fObsSoverSplusB
void initLRHistsAndFits(int, double, double, const char *)
void fillLRBackgroundHist(double, double weight=1.0)
void normalizeSandBhists()
void purityPlot(const TString &fname, const TString &extension=TString("eps"))