Re: [ROOT] Maximum parameter number of TFitter

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Jun 02 2001 - 13:28:15 MEST


Hi Miha,
I do not want to increase the default from 25 to >50.
There are several matrices created by the fitter/TMinuit. This will make
executables bigger and most people do not need this.
It is easy to force the fitter to have more parameters dynamically.
At the beginning of your session, simply do:
   new TFitter(180);
if you want to have up to 180 parameters.
This does not require any changes in the ROOT classes.

Rene Brun

On Sat, 2 Jun 2001 miha.puc@marvin.fmf.uni-lj.si wrote:

> Hi!
> I often fit TF1 functions with Npar > 50, but ofcourse many are fixed.
> This does't work since maxpar is 25. I avoided this by changing
> 
> static  TVirtualFitter *Fitter(TObject *obj, Int_t maxpar = 100);
> 
> and
> 
> static void      SetFitter(TVirtualFitter *fitter, Int_t maxpar = 100);
> 
> in TVirtualFitter.h.
> Is there any other way and if not, could this be
> changed in the original code, so I don't have to worry about it every time
> I update from CVS?
> 
> Have a good day!
> Miha
>  --
> 



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:26 MEST