16 #ifndef ROOT_HFitInterface 17 #define ROOT_HFitInterface
Namespace for new ROOT classes and functions.
A TMultiGraph is a collection of TGraph (or derived) objects.
double Chisquare(const TGraph &h1, TF1 &f1, bool useRange)
compute the chi2 value for a graph given a function (see TGraph::Chisquare)
Class describing the unbinned data sets (just x coordinates values) of any dimensions.
static constexpr double mg
bool GetConfidenceIntervals(const TH1 *h1, const ROOT::Fit::FitResult &r, TGraphErrors *gr, double cl=0.95)
compute confidence intervals at level cl for a fitted histogram h1 in a TGraphErrors gr ...
TFitResultPtr UnBinFit(ROOT::Fit::UnBinData *data, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption)
fit an unbin data set (from tree or from histogram buffer) using a TF1 pointer and fit options...
void FillData(BinData &dv, const TMultiGraph *gr, TF1 *func=0)
fill the data vector from a TMultiGraph.
TFitResultPtr FitObject(THnBase *s1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
fitting function for a THn / THnSparse (called from THnBase::Fit)
void InitGaus(const ROOT::Fit::BinData &data, TF1 *f1)
compute initial parameter for gaussian function given the fit data Set the sigma limits for zero top ...
Provides an indirection to the TFitResult class and with a semantics identical to a TFitResult pointe...
Class describing the binned data sets : vectors of x coordinates, y values and optionally error on y ...
A 2-Dim function with parameters.
void InitExpo(const ROOT::Fit::BinData &data, TF1 *f1)
compute initial parameter for an exponential function given the fit data Set the constant and slope a...
class containg the result of the fit and all the related information (fitted parameter values...
class describing the range in the coordinates it supports multiple range in a coordinate.
void Init2DGaus(const ROOT::Fit::BinData &data, TF1 *f1)
compute initial parameter for 2D gaussian function given the fit data Set the sigma limits for zero t...
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
Namespace for new Math classes and functions.
void FitOptionsMake(EFitObjectType type, const char *option, Foption_t &fitOption)
Decode list of options into fitOption.
A Graph is a graphics object made of two arrays X and Y with npoints each.
A TGraphErrors is a TGraph with error bars.
Multidimensional histogram base.
Graphics object made of three arrays X, Y and Z with the same number of points each.