Fit to an ellipse

Hi Paola,

TGraph is a “single valued function”, i.e. for a X-value you can have only 1 Y-value.
An ellipse in x-y space is not single valued.
I made an example which fits an ellipse to a TH2D:

Some (hopefully useful) ROOT macros

which you may use as a guide how to use Minuit directly.

Cheers
Otto