THStack: bin content?

Hi,

I noticed that THStack::GetHistogram() returns a histogram which doesn’t appear to contain the data, e.g. the sum of all bin contents of all stacked histograms. Can you point me to any example how to best retrieve those bin-by-bin sums (so the contents of the summed histogram)?

Thanks,
Philipp

Hi,

figured it out myself, the histogram I am looking for appears to be the last one in the TObjArray returned by THStack::GetStack().

So one needs

instead of

Cheers,
Philipp