Add possibility to change TH1F into TH1D