The four stages of mass spectrometry are – ionization, acceleration, deflection, and detection. The sample is vaporized before being passed into an ionization chamber where it is bombarded by a stream of electrons emitted by an electrically heated metal coil.