BCFitter.h
65 TH2* GetGraphicalErrorBandXY(double level = .68, int nsmooth = 0, bool overcoverage = true) const;
98 TGraph* GetFitFunctionGraph(const std::vector<double>& parameters, double xmin, double xmax, int n = 1000);
207 virtual double FitFunction(const std::vector<double>& x, const std::vector<double>& parameters);
void PrintShortFitSummary()
Prints a short summary of the fit results on the screen.
Definition: BCFitter.cxx:212
double fErrorBandExtensionUpEdgeX
extends the upper edge of x range by the given value
Definition: BCFitter.h:304
double fErrorBandExtensionUpEdgeY
extends the upper edge of y range by the given value
Definition: BCFitter.h:312
std::vector< double > GetErrorBand(double level) const
Returns a vector of y-values at a certain probability level.
Definition: BCFitter.cxx:223
void FixDataAxis(unsigned int index, bool fixed)
Toggle the data axis defined by index to be fixed.
Definition: BCFitter.cxx:340
TGraph * GetErrorBandGraph(double level1, double level2) const
Definition: BCFitter.cxx:249
TH2 * GetGraphicalErrorBandXY(double level=.68, int nsmooth=0, bool overcoverage=true) const
Definition: BCFitter.cxx:274
bool GetFixedDataAxis(unsigned int index) const
Definition: BCFitter.cxx:346
void UnsetFillErrorBand()
Turn off filling of the error band during the MCMC run.
Definition: BCFitter.h:162
void SetFitFunctionIndices(int indexx, int indexy)
Sets indices of the x and y values in function fits.
Definition: BCFitter.h:187
virtual void DrawFit(const std::string &options, bool flaglegend=false)=0
Draw the fit in the current pad.
double fErrorBandExtensionLowEdgeX
extends the lower edge of x range by the given value
Definition: BCFitter.h:301
void SetErrorBandExtensionLowEdgeY(double extension)
Extends the lower y Edge of th errorband by -extension.
Definition: BCFitter.h:140
bool fErrorBandContinuous
A flag for single point evaluation of the error "band".
Definition: BCFitter.h:269
void SetErrorBandContinuous(bool flag)
Sets the error band flag to continuous function.
Definition: BCFitter.cxx:352
void SetFitFunctionIndexY(int index)
Sets index of the y values in function fits.
Definition: BCFitter.h:178
double fErrorBandExtensionLowEdgeY
extends the upper edge of y range by the given value
Definition: BCFitter.h:308
virtual double GraphCorrection(unsigned) const
Take care of bin width when creating a graph from the fit function.
Definition: BCFitter.h:320
void SetFitFunctionIndexX(int index)
Sets index of the x values in function fits.
Definition: BCFitter.h:170
void SetErrorBandExtensionUpEdgeY(double extension)
Extends the lower y Edge of th errorband by +extension.
Definition: BCFitter.h:147
double Integral(const std::vector< double > ¶meters, double xmin, double xmax)
Compute the integral of the fit function between xmin and xmax.
Definition: BCFitter.cxx:196
void SetErrorBandExtensionUpEdgeX(double extension)
Extends the lower x Edge of th errorband by +extension.
Definition: BCFitter.h:133
virtual void MCMCUserInitialize()
Create enough TF1 copies for thread safety.
Definition: BCFitter.cxx:74
void SetFillErrorBand(bool flag=true)
Turn on or off the filling of the error band during the MCMC run.
Definition: BCFitter.h:154
void SetErrorBandExtensionLowEdgeX(double extension)
Extends the lower x Edge of th errorband by -extension.
Definition: BCFitter.h:126
BCFitter(const TF1 &f, const std::string &name="fitter_model")
Constructor.
Definition: BCFitter.cxx:28
std::vector< double > fErrorBandX
The x positions where the error is calculated.
Definition: BCFitter.h:273
virtual double FitFunction(const std::vector< double > &x, const std::vector< double > ¶meters)
Defines a fit function.
Definition: BCFitter.cxx:188
virtual const std::vector< double > & GetBestFitParameters() const
Definition: BCIntegrate.cxx:274
bool fFlagIntegration
Flag for using the ROOT TH1::Integral method (true), or linear interpolation (false) ...
Definition: BCFitter.h:297