1 #ifndef __BCEFFICIENCYFITTER__H
2 #define __BCEFFICIENCYFITTER__H
35 class TGraphAsymmErrors;
57 virtual void operator()(
const std::vector<double>& expectation,
const std::vector<unsigned>& toyData) = 0;
137 int GetUncertainties(
int n,
int k,
double p,
double &xexp,
double &xmin,
double &xmax);
179 virtual double LogLikelihood(
const std::vector<double> & parameters);
186 double FitFunction(
const std::vector<double> & x,
const std::vector<double> & parameters);
199 int Fit(TH1D * hist1, TH1D * hist2, TF1 * func);
203 void DrawFit(
const char * options =
"",
bool flaglegend =
false);
220 double & pvalueCorrected,
unsigned nIterations = 100000);
231 double & pvalueCorrected,
unsigned nIterations = 100000);