31 TNamed(
"TFitResult",
"TFitResult"),
61 Warning(
"GetCovarianceMatrix",
"covariance matrix is not available");
79 Warning(
"GetCorrelationMatrix",
"correlation matrix is not available");
97 unsigned int npoints =
gr->GetN();
103 if ((
int)npoints < gr->GetN())
123 unsigned int npoints =
gr->GetN();
129 if ((
int)npoints < gr->GetN())
138std::string cling::printValue(
const TFitResult* val)
140 std::stringstream outs;
141 val->ROOT::Fit::FitResult::Print(outs,
false );
const char Option_t
Option string (const char).
TMatrixTSym< Double_t > TMatrixDSym
class containing the result of the fit and all the related information (fitted parameter values,...
FitResult()=default
Default constructor for an empty (non valid) fit result.
bool Scan(unsigned int ipar, unsigned int &npoints, double *pntsx, double *pntsy, double xmin=0, double xmax=0)
scan likelihood value of parameter and fill the given graph.
void Print(std::ostream &os, bool covmat=false) const
print the result and optionally covariance matrix and correlations
std::shared_ptr< IModelFunction > ModelFunction()
Return pointer non const pointer to model (fit) function with fitted parameter values.
bool Contour(unsigned int ipar, unsigned int jpar, unsigned int &npoints, double *pntsx, double *pntsy, double confLevel=0.683)
create contour of two parameters around the minimum pass as option confidence level: default is a val...
void GetCorrelationMatrix(Matrix &mat) const
fill a correlation matrix elements using a generic symmetric matrix class implementing operator(i,...
unsigned int NPar() const
total number of parameters (abbreviation)
int CovMatrixStatus() const
covariance matrix status code using Minuit convention : =0 not calculated, =1 approximated,...
void GetCovarianceMatrix(Matrix &mat) const
fill covariance matrix elements using a generic matrix class implementing operator(i,...
void SetAndCopyFunction(const TF1 *f=nullptr)
method to set a new function pointer and copy it inside.
Extends the ROOT::Fit::Result class with a TNamed inheritance providing easy possibility for I/O.
TMatrixDSym GetCorrelationMatrix() const
Return the correlation matrix from fit.
bool Contour(unsigned int ipar, unsigned int jpar, TGraph *gr, double confLevel=0.683)
Create a 2D contour around the minimum for the parameter ipar and jpar if a minimum does not exist or...
TMatrixDSym GetCovarianceMatrix() const
Return the covariance matrix from fit.
void Print(Option_t *option="") const override
Print result of the fit, by default chi2, parameter values and errors.
bool Scan(unsigned int ipar, TGraph *gr, double xmin=0, double xmax=0)
Scan parameter ipar between value of xmin and xmax A graph must be given which will be on return fill...
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void ToUpper()
Change string to upper case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
WrappedMultiTF1Templ< double > WrappedMultiTF1