How to calculate the standard deviation over a list of histograms existing in one root file?

Thanks a lot for you help. In both cases, I obtained the same value for the standard deviation.