Getting the mean of a bin

HI,
is there anyway of finding the mean (not the bincenter) of any given bin ?
-thanks debdatta.

Hi debdatta,
from previous post:[quote]I also want the upper and lower limit to change for each histogram[/quote]TAxis *xa = hh2->GetXaxis(); xa->SetRange(xa->FindBin(-0.6), xa->FindBin(0.6)); hh2->Draw();[quote]is there anyway of getting the mean of “each bin” instead of the mean of an axis ?[/quote]mean of “each bin” = BinCenter ?! or what do you need ?
for more information please see documentation and root.cern.ch/root/htmldoc/TH1.html

Jan