Unable to fill Histograms

When I create a root file with some two 2D histograms, sometimes root doesn’t fills the histograms. It takes entries but the pad remains blank. And sometimes it fills only one the another is blank. Sometimes it works perfectly with the same code (without any change). Is there any solution to this ?
Thank you

Hard to say what the problem is without seeing any code. If possible, try to reduce the program to the minimum amount of lines that reproduce the problem and post it here.

Also, in order to check whether the histogram is not filled or it is filled but not displayed properly, you can print the results of ‘GetEntries()’, called on the problematic histlgrams. Does it print zero? Or does it print the correct number of entries?

1 Like

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