I am trying to make a contour plot using TMinuit. After the function minimization.
where gMinuit is my TMinuit object, and par1 and par2 are the parameters for which I draw the contour plot. However, I always get at most 4 points in the contour plot , with the warning:
MINUIT WARNING IN MNContour ============== Cannot find midpoint, try closer. Warning in TMinuit::Contour: Returning a TGraph with 4 points only
What should I do to get a reasonable number of points?
For finding a contour point a minimisation in the N-2 parameters is performed. For some reason
these minimisations fail. One would need tp see the full log, that you should be able to obtain by increasing the Print level, to understand the reason.
It could be a numerical issue with the function to minimise, so a more numerically robust evaluation could fix the problem
Warning in TMinuit::Contour: Cannot find more than 4 points, no TGraph returned
How can I manage to draw the right contour in this case?
Thanks in advance!