Added functionality to convert back and forth between raw events and events per binwidth, both for single histograms and for stacks