Entries in histogram don't match with contents

Dear root experts,

I’m dealing with a histogram which I fill with weight 1. but if I look at the number of entries it doesn’t match with the contents I see in the histogram. How is this possible? I attach an image of the histogram.

Many thanks in advance, Pilar Casado45


_ROOT Version: 6.04/16
_Platform:centOS7
_Compiler:linuxx8664gcc


Can you post the histogram here ?

Does your histogram have entries in the under- / overflow bins?
I’m quite sure these are also counted to the entries and they are not being displayed.

No … see the stats …

If it is a TH1F, use TH1D instead.

It works with TH1D. Many thanks, Pilar

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