23 #include "../../BAT/BCModel.h"
55 {
return fErrorBand; };
63 TH2D * GetErrorBandXY_yellow(
double level=.68,
int nsmooth=0)
const;
71 TGraph * GetErrorBandGraph(
double level1,
double level2)
const;
73 TGraph * GetFitFunctionGraph(
const std::vector<double> ¶meters);
75 TGraph * GetFitFunctionGraph()
76 {
return GetFitFunctionGraph(GetBestFitParameters()); }
78 TGraph * GetFitFunctionGraph(
const std::vector<double> ¶meters,
double xmin,
double xmax,
int n=1000);
80 void FixDataAxis(
unsigned int index,
bool fixed);
82 bool GetFixedDataAxis(
unsigned int index)
const;
93 { fFlagFillErrorBand=flag; }
104 { fFlagFillErrorBand=
false; }
110 { fFitFunctionIndexX = index; }
116 { fFitFunctionIndexY = index; }
135 virtual double FitFunction(
const std::vector<double> &,
const std::vector<double> &)
149 virtual int Fit() = 0;
153 virtual void DrawFit(
const char * options,
bool flaglegend =
false) = 0;
182 bool fFlagFillErrorBand;
186 int fFitFunctionIndexX;
187 int fFitFunctionIndexY;
191 bool fErrorBandContinuous;
192 std::vector<double> fErrorBandX;
196 unsigned fErrorBandNbinsX;
200 unsigned fErrorBandNbinsY;
TH2D * GetErrorBandXY() const
virtual double FitFunction(const std::vector< double > &, const std::vector< double > &)
virtual void DrawFit(const char *options, bool flaglegend=false)=0
void MarginalizePreprocess()
void UnsetFillErrorBand()
The base class for all user-defined models.
void SetFitFunctionIndices(int indexx, int indexy)
int ReadErrorBandFromFile(const char *file)
void SetErrorBandContinuous(bool flag)
void MCMCIterationInterface()
void SetFitFunctionIndexY(int index)
void SetErrorBandHisto(TH2D *h)
void MarginalizePostprocess()
void SetFitFunctionIndexX(int index)
void SetFillErrorBand(bool flag=true)
A base class for all fitting classes.