How to call correlation coefficients for a fit [mnmatu(1)]

Hi,

I perform a fit with two gaussians a and looking for a way to get the correlation coefficients.
I found in TMinuit “mnmatu(1)” which should print the variables but I have no idea how to call it… :unamused:

I define my double gaussian:
Double_t MyGauss(Double_t *x,Double_t *par){gauss1(par1,2,3;x)+mygauss2(par1,3,4;x)}

and fit more or less like:
TF1 *MyFit = new TF1(“MyFit”,MyGauss,begin,end)
MyHisto->Fit(“MyFit”,“ERL”)

Where (&how) can I call mnmatu(1) or access the covariance matrix for my gaussians’ parameters?

Cheers,
Thomas

After fitting, do:

double *matrix = TVirtualFitter::GetFitter()->GetCovarianceMatrix()

or

TVirtualFitter::GetFitter()->GetCovarianceMatrixElement(0,0), etc

Rene

It is working!

Thanks,
Thomas