TH1 all contents within?

I’m having a little bit of a brainfart. Suppose I have filled a TH1F with bunch of numbers, I want to count the number of all events logged into the TH1F, is there a built in function for it?

I have always used
for int i=0~

but I was wondering if there was already a built-in function for it? Of course the above method only works, if I’m already know the number of bins.


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