Change the # of MINUIT calls in TH1::Fit

Hi.

I’m trying to fit a histogram with my custom function, ie.

my_hist->Fit(my_func,“RILV”);

but I’m getting the following error:

CALL LIMIT EXCEEDED IN MIGRAD.
MIGRAD TERMINATED WITHOUT CONVERGENCE.

Is there any way to change the maximum # of calls to MIGRAD (I think the default is 5000)?

Thanks!

–Christos

Use the static function:
TVirtualFitter::SetMaxIterations(niter);

Rene