fitting a parabola to a multigraph of 3 partly overlapping graphs with different errors
Processing /mnt/build/workspace/root-makedoc-v614/rootspi/rdoc/src/v6-14-00-patches/tutorials/fit/fitMultiGraph.C...
FCN=95.1374 FROM MIGRAD STATUS=CONVERGED 54 CALLS 55 TOTAL
EDM=4.06527e-20 STRATEGY= 1 ERROR MATRIX ACCURATE
EXT PARAMETER STEP FIRST
NO. NAME VALUE ERROR SIZE DERIVATIVE
1 p0 3.21134e+00 4.28055e-01 8.68677e-04 4.08980e-11
2 p1 1.87952e+00 2.48404e-01 2.95405e-04 -8.41861e-10
3 p2 1.00914e+00 3.49228e-02 6.26446e-05 -1.30438e-08
void fitMultiGraph()
{
yvalues1[i] = 3 + 2*xvalues1[i] + xvalues1[i]*xvalues1[i] + r.
Gaus();
yvalues2[i] = 3 + 2*xvalues2[i] + xvalues2[i]*xvalues2[i] + r.
Gaus()*10;
evalues1[i] = 1;
evalues2[i] = 10;
evalues3[i] = 20;
yvalues3[i] = 3 + 2*xvalues3[i] + xvalues3[i]*xvalues3[i] + r.
Gaus()*20;
}
"TMultiGraph of 3 TGraphErrors");
"Fitting a MultiGraph of 3 TGraphErrors");
}
void fitminuit()
{
evalues1[i] = 0.00001;
evalues2[i] = 0.00001;
evalues3[i] = 0.00001;
}
{xtotal[i]=xvalues1[i]; ytotal[i]=yvalues1[i]; etotal[i]=0.00001;}
{xtotal[i] = xvalues2[i-
n]; ytotal[i]=yvalues2[i-
n]; etotal[i]=0.00001;}
{xtotal[i] = xvalues3[i-2*
n]; ytotal[i]=yvalues3[i-2*
n]; etotal[i]=0.00001;}
}
- Author
- Anna Kreshuk
Definition in file fitMultiGraph.C.