Hi,
for your example, you could do :
htemp->Fit("gaus")
for the FWHM :
http://en.wikipedia.org/wiki/Full_width_at_half_maximum
from the fit, you will obtain the sigma, if you wish the FHWM from the
gauss, you just take : 2.35482 * sigma
if you wish to compute the FHWM from the histogram, then
you would search for the maximum :
myhisto->GetMaximumBin()
then make a loop on the bins to the left up to have
myhisto->GetBinContent() is below the maximum
make a loop on the bins to the right of the bin of the maximum to have
myhisto->GetBinContent() is below the maximum
then you have the bin left, the bin right, you deduce the central values
of these bins
with something like myhisto->GetBinCenter(TheBinYouWish)
good luck
This archive was generated by hypermail 2.2.0 : Wed Jul 21 2010 - 17:50:01 CEST