Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
HFitInterface.h File Reference
#include "TFitResultPtr.h"
Include dependency graph for HFitInterface.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 
namespace  ROOT::Fit
 Namespace for the fitting classes.
 
namespace  ROOT::Math
 

Enumerations

enum class  ROOT::Fit::EChisquareType { ROOT::Fit::kNeyman = 0 , ROOT::Fit::kPLikeRatio , ROOT::Fit::kPearson }
 
enum class  ROOT::Fit::EFitObjectType { ROOT::Fit::kHistogram , ROOT::Fit::kGraph }
 

Functions

double ROOT::Fit::Chisquare (const TGraph &h1, TF1 &f1, bool useRange)
 compute the chi2 value for a graph given a function (see TGraph::Chisquare)
 
double ROOT::Fit::Chisquare (const TH1 &h1, TF1 &f1, bool useRange, EChisquareType type)
 compute the chi2 value for an histogram given a function (see TH1::Chisquare for the documentation)
 
void ROOT::Fit::FillData (BinData &dv, const TGraph *gr, TF1 *func=nullptr)
 fill the data vector from a TGraph.
 
void ROOT::Fit::FillData (BinData &dv, const TGraph2D *gr, TF1 *func=nullptr)
 fill the data vector from a TGraph2D.
 
void ROOT::Fit::FillData (BinData &dv, const TH1 *hist, TF1 *func=nullptr)
 fill the data vector from a TH1.
 
void ROOT::Fit::FillData (BinData &dv, const THnBase *hist, TF1 *func=nullptr)
 fill the data vector from a THnBase.
 
void ROOT::Fit::FillData (BinData &dv, const TMultiGraph *gr, TF1 *func=nullptr)
 fill the data vector from a TMultiGraph.
 
void ROOT::Fit::FillData (SparseData &dv, const TH1 *hist, TF1 *func=nullptr)
 fill the data vector from a TH1 with sparse data.
 
void ROOT::Fit::FillData (SparseData &dv, const THnBase *hist, TF1 *func=nullptr)
 fill the data vector from a THnBase.
 
TFitResultPtr ROOT::Fit::FitObject (TGraph *gr, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
 fitting function for a TGraph (called from TGraph::Fit)
 
TFitResultPtr ROOT::Fit::FitObject (TGraph2D *gr, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
 fitting function for a TGraph2D (called from TGraph2D::Fit)
 
TFitResultPtr ROOT::Fit::FitObject (TH1 *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
 fitting function for a TH1 (called from TH1::Fit)
 
TFitResultPtr ROOT::Fit::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)
 
TFitResultPtr ROOT::Fit::FitObject (TMultiGraph *mg, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
 fitting function for a MultiGraph (called from TMultiGraph::Fit)
 
void ROOT::Fit::FitOptionsMake (EFitObjectType type, const char *option, Foption_t &fitOption)
 Decode list of options into fitOption.
 
bool ROOT::Fit::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
 
void ROOT::Fit::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 top 10* initial rms values Set the initial parameter values in the TF1
 
void ROOT::Fit::InitExpo (const ROOT::Fit::BinData &data, TF1 *f1)
 compute initial parameter for an exponential function given the fit data Set the constant and slope assuming a simple exponential going through xmin and xmax of the data set
 
void ROOT::Fit::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 10* initial rms values Set the initial parameter values in the TF1
 
TFitResultPtr ROOT::Fit::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.