Mass spectrum measurement using a one-dimensional focal plane detector