Hi Till,
On Mon, 2006-12-04 at 13:59 +0100, Rene Brun wrote:
> Hi Till,
>
> Instead of making the arrays t and sigma global, define only one global
> pointer to an object
> that includes these 2 arrays.
> We are currently considering extensions to the fitter where a pointer to
> an object could be specified
> instead of the FCN.
In the mean time, do something like in the attached script (a re-write of Ifit.C) where an object is used, and a special forwarding `minimised' function is implemented. Note also, that I use the `TVirtualFitter' interface - one should _never_ use the TMinuit/TFumili/... classes directly .
Run the script like
Root> .x Ifit.C+
Yours,
-- ___ | Christian Holm Christensen |_| | ------------------------------------------------------------- | | Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91 _| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91 _| Denmark Office: (+45) 353 25 404 ____| Email: cholm_at_nbi.dk Web: www.nbi.dk/~cholm | |Received on Mon Dec 04 2006 - 15:53:36 MET
- text/x-c++src attachment: Ifit.C__charset_ISO-8859-15
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:02 MET