27float z[5],
x[5],
y[5],errorz[5];
30double func(
float x,
float y,
double *par)
32 double value=( (par[0]*par[0])/(
x*
x)-1)/ ( par[1]+par[2]*
y-par[3]*
y*
y);
37void fcn(
int &npar,
double *gin,
double &
f,
double *par,
int iflag)
45 for (i=0;i<nbins; i++) {
46 delta = (z[i]-func(
x[i],
y[i],par))/errorz[i];
91 static double vstart[4] = {3, 1 , 0.1 , 0.01};
92 static double step[4] = {0.1 , 0.1 , 0.01 , 0.001};
104 double amin,edm,errdef;
105 int nvpar,nparx,icstat;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
R__EXTERN TMinuit * gMinuit
virtual void SetFCN(void(*fcn)(Int_t &, Double_t *, Double_t &f, Double_t *, Int_t))
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.
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.
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.