adding functionality to deal with infinite points in the generated histograms by truncating the function before the infinite point. To be tested. Should allow us to fit some btag 7TeV shapes.