Get the whole weight of a histgram

Using GetEntries(), we can get the whole entries of a hist. Is there a function with which we can get the whole weight of a hist, the sum of each bin’s content? Or we much add them all ?

May be Integral() is a way.