Using the overlap of pulses to determine the pulse height spectrum