implement segmented spectra translate into one mass spectrum class