Hi ,
The fitting method uses the function evaluated at the center of the bin for fitting. Instead I want to use the mean value of the entries in the bin. I think maybe what I’m looking for is the option " I " of TH1::Fit Method , however I don’t understand well this option. Any help ?
Thanks !
_ROOT Version:5.34/36
Platform, compiler gcc version 4.9.3 (GCC)
The mean and sigma are much better when the ‘I’ option is used, that is better seen in the second row of plots. So the ‘I’ option is using the integral of function in bin (I suppose the area of the function in that bin), however the problem I have is different (I think so).
I have bins of data , one of those bins is huge. When I fit the data to a specific user defined function I want to take in account that most of the events in that huge bin are in the lower half of the bin. That’s why I thought on using the mean of values in the bin (mean of x axis values) instead of the bin center. This is my fitted function and the data bins.