A Mass Spectrometer (or Mass Spectrograph) is a device to determine the mass of molecules. The general method is to send ionized molecules through a Magnetic Field that pushes them sideways and measures their trajectories, the heavier molecules being affected less and having straighter trajectories. Ratios of the counts of known molecules can be determined through measuring the number reaching two different areas. This practice is called Mass Spectrometry. The word Spectrometer (or Spectrograph) is used because the device's ability to measure molecules by weight is analogous to the measurement of Visible Light by Wavelength.
Mass Spectrometers are included in space probes, to analyze material from Dust or associated with solar system planets, Moons, Comets, or Asteroids, either gathered by a lander, or collected from flying through the body's Atmosphere or plume residue.
Advanced Composition Explorer (ACE)
Enceladus Life Finder (ELF)