Heavy ion identification system for a magnetic spectrometer