result = hist.Fit(“gaus”, “S”)
raw_input()
result.Print()
mean = result.Parameter(1)
error = result.ParError(1)
print(mean)[/code]
…
Traceback (most recent call last):
File "result_error.py", line 17, in <module>
mean = result.Parameter(1)
AttributeError: 'TFitResult' object has no attribute 'Parameter'
thanks for the script. AFAICS in 5.26, the TFitResult class does not have a Parameter() member function (it does in trunk, which is what I initially had setup). Recommend to use Parameters()[1] instead as that is available in 5.26, see TFitResult.h in both cases.