52 Error(
"TF1Helper",
"Function has no parameters");
69 Error(
"TF1Helper::IntegralError",
"ROOT has enabled implicit MT. There is no existing lobal fitter, as shown in the documentation a pointer to the covariance matrix"
70 "from the TFitResult must be passed to TF1::IntegralError");
76 if (fitter ==
nullptr) {
77 Error(
"TF1Helper::IntegralError",
"No existing fitter can be used for computing the integral error");
82 Error(
"TF1Helper::IntegralError",
"Last used fitter is not compatible with the current TF1");
87 Warning(
"TF1Helper::INtegralError",
"Last used fitter does no provide parameter errors and a covariance matrix");
92 for (
int i = 0; i <
npar; ++i) {
94 Error(
"TF1Helper::IntegralError",
"Last used Fitter has different parameter values");
114 for (
int i=0; i <
npar; ++i) {
137 error =
relerr*std::abs(integral);
153 Warning(
"TF1Helper::IntegralError",
"numerical error from integration is too large. Integral error = %g +/- %g - eps = %g",
result,
numError,epsilon);
162 return std::sqrt(
err2);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
static unsigned int DefaultNCalls()
static double DefaultRelTolerance()
const_iterator begin() const
function class representing the derivative with respect a parameter of a given TF1
Backward compatible implementation of TVirtualFitter.
const ROOT::Fit::FitResult & GetFitResult() const
Get reference to Fit Result object (NOTE: it will be invalid when class is deleted)
Int_t GetNumberTotalParameters() const override
Number of total parameters.
Double_t GetParameter(Int_t ipar) const override
Parameter value.
virtual Int_t GetNpar() const
virtual Double_t * GetParameters() const
virtual void SetParameters(const Double_t *params)
virtual Double_t GetParameter(Int_t ipar) const
Abstract Base Class for Fitting.
static TVirtualFitter * GetFitter()
static: return the current Fitter
double IntegralError(TF1 *func, Int_t ndim, const double *a, const double *b, const double *params, const double *covmat, double epsilon)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Bool_t IsImplicitMTEnabled()
Returns true if the implicit multi-threading in ROOT is enabled.
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.