32 Double_t value=( (par[0]*par[0])/(x*x)-1)/ ( par[1]+par[2]*y-par[3]*y*y);
45 for (i=0;i<
nbins; i++) {
46 delta = (
z[i]-
func(x[i],y[i],par))/errorz[i];
88 gMinuit->
mnexcm(
"SET ERR", arglist ,1,ierflg);
91 static Double_t vstart[4] = {3, 1 , 0.1 , 0.01};
92 static Double_t step[4] = {0.1 , 0.1 , 0.01 , 0.001};
93 gMinuit->
mnparm(0,
"a1", vstart[0], step[0], 0,0,ierflg);
94 gMinuit->
mnparm(1,
"a2", vstart[1], step[1], 0,0,ierflg);
95 gMinuit->
mnparm(2,
"a3", vstart[2], step[2], 0,0,ierflg);
96 gMinuit->
mnparm(3,
"a4", vstart[3], step[3], 0,0,ierflg);
101 gMinuit->
mnexcm(
"MIGRAD", arglist ,2,ierflg);
105 Int_t nvpar,nparx,icstat;
106 gMinuit->
mnstat(amin,edm,errdef,nvpar,nparx,icstat);
virtual void mnstat(Double_t &fmin, Double_t &fedm, Double_t &errdef, Int_t &npari, Int_t &nparx, Int_t &istat)
Returns concerning the current status of the minimization.
Implementation in C++ of the Minuit package written by Fred James.
R__EXTERN TMinuit * gMinuit
virtual void mnparm(Int_t k, TString cnamj, Double_t uk, Double_t wk, Double_t a, Double_t b, Int_t &ierflg)
Implements one parameter definition.
double func(double *x, double *p)
virtual void SetFCN(void *fcn) R__DEPRECATED(6
To set the address of the minimization function.
virtual void mnexcm(const char *comand, Double_t *plist, Int_t llist, Int_t &ierflg)
Interprets a command and takes appropriate action.
you should not use this method at all Int_t Int_t z