Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
HFitInterface.cxx File Reference
#include "HFitInterface.h"
#include "Fit/BinData.h"
#include "Fit/SparseData.h"
#include "Fit/FitResult.h"
#include "Math/IParamFunction.h"
#include <vector>
#include <cassert>
#include <cmath>
#include "TH1.h"
#include "THnBase.h"
#include "TF1.h"
#include "TGraph2D.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TMultiGraph.h"
#include "TList.h"
#include "TError.h"
Include dependency graph for HFitInterface.cxx:

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::Fit::HFitInterface
 

Functions

bool ROOT::Fit::HFitInterface::AdjustError (const DataOptions &option, double &error, double value=1)
 
void ROOT::Fit::DoFillData (BinData &dv, const TGraph *gr, BinData::ErrorType type, TF1 *func)
 
void ROOT::Fit::HFitInterface::ExamineRange (const TAxis *axis, std::pair< double, double > range, int &hxfirst, int &hxlast)
 
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.
 
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
 
BinData::ErrorType ROOT::Fit::GetDataType (const TGraph *gr, DataOptions &fitOpt)
 
BinData::ErrorType ROOT::Fit::GetDataType (const TGraph2D *gr, const DataOptions &fitOpt)
 
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
 
bool ROOT::Fit::HFitInterface::IsPointOutOfRange (const TF1 *func, const double *x)