Re: Using TH1.Fit()

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Aug 16 1999 - 12:48:00 MEST


Marco van Leeuwen wrote:
> 
> Hi all,
> 
> At the moment I am trying to automatically fit a number of histograms. In
> many cases TH1.Fit() works satisfactorily. However, in a few cases, (but
> too many to my liking), the fitting stops at a certain "maximum number of
> function evaluations", somewhere around 500 times (probably dependent on
> the number of parameters). Is there any way to have the program detect this
> type of failure? The TH1.Fit() function has no return type, maybe an error
> code would do? Another possiblity is to add an option to specify the max
> number of func. evals.
> 
> OR, should I revert to using the TMinuit class and provide this kind of
> functionality myself?
> 
> regards,
> 
> Marco van Leeuwen.

You can change the maximum number of iterations via

  gMinuit->SetMaxIterations(mymax);

default for mymax is 500.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET