made getTH1D faster