Hello ROOT Experts,
This forum is great help. I have an odd issue coercing the Integral Error out of root for a fit…
This works:
for i in xrange(3):
for j in xrange(3):
print "sub", i,j, fitEEOne['results'].GetCovarianceMatrix().GetSub(5,7,5,7)[i][j]
print fitEEOne['fit'].Integral(60,120), fitEEOne['fit'].IntegralError(60,120)
print fitEEOne['fit'].Integral(60,120), fitEEOne['fit'].IntegralError(60,120,fitEEOne['fit'].GetParameters(),fitEEOne['results'].GetCovarianceMatrix().GetMatrixArray())
print integralEE_BG.Integral(60,120), integralEE_BG.IntegralError(60,120,integralEE_BG.GetParameters(),fitEEOne['results'].GetCovarianceMatrix().GetSub(5,7,5,7).GetMatrixArray())
and outputs…
sub 0 0 3.18299368645e-313
sub 0 1 -13.9635556879
sub 0 2 0.0773908824872
sub 1 0 -13.9635556879
sub 1 1 0.336395082676
sub 1 2 -0.00187012092587
sub 2 0 0.0773908824872
sub 2 1 -0.00187012092587
sub 2 2 1.04227241802e-05
Error in <TF1Helper::IntegralError>: Last used Fitter has different parameter values
5500.28551164 0.0 <--- This 0.0 and the line above is understood
5500.28551164 149.783022093
570.424583945 76.3280309576
However if I remove the line…
The output becomes…
sub 0 0 3.18299368645e-313
sub 0 1 -13.9635556879
sub 0 2 0.0773908824872
sub 1 0 -13.9635556879
sub 1 1 0.336395082676
sub 1 2 -0.00187012092587
sub 2 0 0.0773908824872
sub 2 1 -0.00187012092587
sub 2 2 1.04227241802e-05
5500.28551164 nan <--- Notice that NAN
570.424583945 76.3280309576
Finally if I remove…
[code] for i in xrange(3):
for j in xrange(3):
print “sub”, i,j, fitEEOne[‘results’].GetCovarianceMatrix().GetSub(5,7,5,7)[i][j]
print fitEEOne[‘fit’].Integral(60,120), fitEEOne[‘fit’].IntegralError(60,120,fitEEOne[‘fit’].GetParameters(),fitEEOne[‘results’].GetCovarianceMatrix().GetMatrixArray())
[/code]
The output becomes…
570.424583945 9.55588409826e-144 <--- Gibberish number
Thoughts?
Thanks,
Michael