utilities to convert between raw events and events-per-bin-width