Number of filled bins in Histogram

Hi,
I have a very simple question however I fund nothing in the documentation nor via google:

Is there a possibility to get the number of filled bins in a TH2 histogram?

Thanks for your help,
Tobi

Hi,

I don’t know of any built-in functions. Just loop over the bins and keep track…

Cheers,
Charles