Mass spectrometry is an analytical technique used to measure the mass-to-charge ratio of ions.
It is most generally used to find the composition of a physical sample by generating a mass spectrum representing the masses of sample components.
A mass spectrometer is a device that measures the mass-to-charge ratio of ions.
This is achieved by ionizing the sample and separating ions of differing masses and recording their relative abundance by measuring intensities of ion flux.
A typical mass spectrometer comprises three parts: an ion source, a mass analyzer, and a detector system.