Draw and fit a TGraph2DErrors
void graph2derrorsfit()
{
TF2 *f2 =
new TF2(
"f2",
"1000*(([0]*sin(x)/x)*([1]*sin(y)/y))+200",-6,6,-6,6);
for (
Int_t i=0; i<nd; i++) {
z = f2->
Eval(x,y)*(1+rnd);
}
fit2->
SetTitle(
"Minuit fit result on the Graph2DErrors points");
}
- Author
- Olivier Couet
Definition in file graph2derrorsfit.C.