32 TNamed(
"TFitResult",
"TFitResult"),
62 Warning(
"GetCovarianceMatrix",
"covariance matrix is not available");
66 ROOT::Fit::FitResult::GetCovarianceMatrix<TMatrixDSym>(mat);
80 Warning(
"GetCorrelationMatrix",
"correlation matrix is not available");
84 ROOT::Fit::FitResult::GetCorrelationMatrix<TMatrixDSym>(mat);
98 unsigned int npoints =
gr->
GetN();
104 if ((
int)npoints < gr->GetN())
124 unsigned int npoints =
gr->
GetN();
130 if ((
int)npoints < gr->GetN())
139std::string cling::printValue(
const TFitResult* val)
141 std::stringstream outs;
142 val->ROOT::Fit::FitResult::Print(outs,
false );
TMatrixTSym< Double_t > TMatrixDSym
class containg the result of the fit and all the related information (fitted parameter values,...
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 optionaly 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...
unsigned int NPar() const
total number of parameters (abbreviation)
int CovMatrixStatus() const
covariance matrix status code using Minuit convention : =0 not calculated, =1 approximated,...
Class to Wrap a ROOT Function class (like TF1) in a IParamMultiFunction interface of multi-dimensions...
void SetAndCopyFunction(const TF1 *f=0)
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.
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 Print(Option_t *option="") const
Print result of the fit, by default chi2, parameter values and errors.
A Graph is a graphics object made of two arrays X and Y with npoints each.
virtual void Set(Int_t n)
Set number of points in the graph Existing coordinates are preserved New coordinates above fNpoints a...
The TNamed class is the base class for all named ROOT classes.
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
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)