Mass spectrometry
Ionization: The sample is then hit with electrons by an electron-gun, changing the sample so it only has positively-charged ions. This is so the samples are attracted to the magnetic fields, allowing the mass spectrometer to work.