A question regarding TMinuit

Chris Jillings (chris@owl.phy.queensu.ca)
Tue, 20 Oct 1998 00:13:09 -0400 (EDT)


Hello,
I am a neophyte to Minuit. I have never used it in fortran or in Root.
My question concerns the example program from
http://root.cern.ch/root/html/examples/Ifit.C.html
I loaded it and it worked nicely.

What confuses me is the global variables
Float_t z[5],x[5],y[5],errorz[5];

In, for example, numerical recipes, the minimizer is passed three
arrays, x,y and sigma which contain the data to be fitted. It seems that
TMinuit requires hard-coded globals for the data. Is this the case or have
I missed the point?

Thank you,

Chris

=================================================================
= =
= Chris Jillings =
= Department of Physics phone/voice mail: (613) 545-6000x4805 =
= Queen's University fax: (613) 545-6813 =
= Kingston, Ontario email: chris@sno.phy.queensu.ca =
= Canada, K7L 3N6 web: http://sno.phy.queensu.ca =
= =
=================================================================