BCFitter.cxx
107 double xRangeLow = GetDataSet()->GetLowerBound(fFitFunctionIndexX) - fErrorBandExtensionLowEdgeX - dx / 2;
108 double xRangeHigh = GetDataSet()->GetUpperBound(fFitFunctionIndexX) + fErrorBandExtensionUpEdgeX + dx / 2;
110 double yRangeLow = GetDataSet()->GetLowerBound(fFitFunctionIndexY) - fErrorBandExtensionLowEdgeY - dy / 2;
111 double yRangeHigh = GetDataSet()->GetUpperBound(fFitFunctionIndexY) + fErrorBandExtensionUpEdgeY + dy / 2;
196 double BCFitter::Integral(const std::vector<double>& params, const double xmin, const double xmax)
280 TH2* hist_tempxy = (TH2*) fErrorBandXY.Clone(TString::Format("%s_sub_%f.2", fErrorBandXY.GetName(), level));
289 std::vector<std::pair<double, double> > bound = hist_temp.GetSmallestIntervalBounds(std::vector<double>(1, level), overcoverage);
320 TGraph* BCFitter::GetFitFunctionGraph(const std::vector<double>& parameters, double xmin, double xmax, int n)
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
virtual bool AddParameter(const std::string &name, double min, double max, const std::string &latexname="", const std::string &unitstring="")
Definition: BCEngineMCMC.h:1246
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
Wrapper to allow access by name into list of BCParameter.
Definition: BCParameterSet.h:30
bool GetFixedDataAxis(unsigned int index) const
Definition: BCFitter.cxx:346
std::vector< double > GetDataComponents(unsigned index) const
Viewing the data set as a table with one row per point, this method returns a specified column...
Definition: BCDataSet.cxx:37
void PrintShortFitSummary()
Prints a short summary of the fit results on the screen.
Definition: BCModel.cxx:178
double GetLowerBound(unsigned index) const
Return user-set lower bound on data, if set, otherwise actual lower bound.
Definition: BCDataSet.cxx:64
double GetRangeWidth(unsigned index) const
Return upper-bound minus lower-bound for data axis, using user-set bounds, if provided, other actual bounds.
Definition: BCDataSet.h:149
void Smooth(int n=-1)
Applying ROOT smoothing to histogram, and renormalize.
Definition: BCHistogramBase.cxx:291
double fErrorBandExtensionLowEdgeX
extends the lower edge of x range by the given value
Definition: BCFitter.h:301
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
double fErrorBandExtensionLowEdgeY
extends the upper edge of y range by the given value
Definition: BCFitter.h:308
const std::vector< double > & Getx(unsigned c) const
Definition: BCEngineMCMC.h:370
virtual double GraphCorrection(unsigned) const
Take care of bin width when creating a graph from the fit function.
Definition: BCFitter.h:320
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
virtual void MCMCUserInitialize()
Create enough TF1 copies for thread safety.
Definition: BCFitter.cxx:74
double GetUpperBound(unsigned index) const
Return user-set upper bound on data, if set, otherwise actual upper bound.
Definition: BCDataSet.cxx:76
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
bool fFlagIntegration
Flag for using the ROOT TH1::Integral method (true), or linear interpolation (false) ...
Definition: BCFitter.h:297