The very last histogram in the list returned by the THStack::GetStack method will be the “sum of all”, and then you can simply use TH1::GetBinContent on it.
The very last histogram in the list returned by the THStack::GetStack method will be the “sum of all”, and then you can simply use TH1::GetBinContent on it.