1 #ifndef __BCMODELGRAPHFITTER__H
2 #define __BCMODELGRAPHFITTER__H
62 BCGraphFitter(
const char * name, TGraphErrors * graph, TF1 * func);
81 {
return fFitFunction; };
86 {
return fErrorBand; };
91 {
return fGraphFitFunction; };
118 double LogLikelihood(
const std::vector<double> & parameters);
125 double FitFunction(
const std::vector<double> & x,
const std::vector<double> & parameters);
137 int Fit(TGraphErrors * graph, TF1 * func);
141 void DrawFit(
const char * options =
"",
bool flaglegend =
false);
143 virtual double CDF(
const std::vector<double>& parameters,
int index,
bool lower=
false);
151 TGraphErrors * fGraph;
163 TGraph * fGraphFitFunction;
TGraph * GetGraphFitFunction()
int SetFitFunction(TF1 *func)
double FitFunction(const std::vector< double > &x, const std::vector< double > ¶meters)
void DrawFit(const char *options="", bool flaglegend=false)
A class for fitting graphs with functions.
double LogLikelihood(const std::vector< double > ¶meters)
TGraphErrors * GetGraph()
virtual double CDF(const std::vector< double > ¶meters, int index, bool lower=false)
A base class for all fitting classes.
int SetGraph(TGraphErrors *graph)