mass spectrometer, an analytic instrument for identifying a substance by sorting a stream of charged particles (ions) according to their mass. The sorting is usually accomplished by deflecting a stream of charged particles into a semicircular path as it enters a magnetic field and ultimately strikes a photographic plate or a photomultiplier tube sensor.