AddBinContent and statistics display

Hi, rooters!

I am using AddBinContent(nbin) to add counts into my histogram manually, but it seems that AddBinContent does not effect the number of entries in the statistics display. Is this a correct behavior?

Adding a little test script here:
test_add.py (424 Bytes)

Thanks!

Try with:
Test.SetBinContent(l, Test.GetBinContent(l) + 1.)
or use Test.AddBinContent(l) and in the end call:
Test.ResetStats()

Thanks! Test.ResetStats() is exactly what I needed.

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