Statistics box entries

Dear
I have created a histogram

TH1F  *hgamma = new TH1F("Measured Gamma","Measured Gamma",4000,0.5,4000.5);

and filled this histogram using hgamma->AddBinContent method.
statistics box return zero values (Entries, Mean and RMS ==0)??

By using hgamma->SetBinContent method , it returns wrong values??

Any explanation Please!!!

cheers

Hi Noor1,
can you try calling hgamma->GetMean() before drawing the histogram and the stat box?
This call should trigger the evaluation of the statistics.

Cheers,
Enrico

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.