34{
35 TMinuit* minuit = new TMinuit(1);
37
42
45
47
48 Double_t arglist[10];
49 Int_t ierflg = 0;
50
51 arglist[0] = -1;
52 gMinuit->mnexcm("SET PRINT",arglist,1,ierflg);
53 arglist[0] = 0;
54 gMinuit->mnexcm("SET NOW", arglist,0,ierflg);
55
56 arglist[0] = 1;
57 minuit->mnexcm("SET ERR", arglist, 1, ierflg);
59
60 arglist[0] = 500;
61 arglist[1] = 1.;
62 minuit->mnexcm("MIGRAD", arglist, 2, ierflg);
63
64 Double_t edm, errdef;
65 Int_t nvpar, nparx, icstat;
66 minuit->mnstat(
chi2, edm, errdef, nvpar, nparx, icstat);
67
68 double err, low, high;
69 int iuint;
71 minuit->mnpout(0, name, deltaT, err, low, high, iuint);
72 delete minuit;
73 return m_c2c.bestRescale(
data, reference, k,
chi2, deltaT, sed);
74}
char data[hepevt_bytes_allocation_ATLAS]
static void adjusted_reference(Int_t &nPar, Double_t *grad, Double_t &f, Double_t *par, Int_t iflag)
double chi2(TH1 *h0, TH1 *h1)
static const unsigned int samplingInterval