Mass spectrometry
Background
1.14 - 1.17 Atomic structure
If a nucleus was the size of a raisin, the rest of the atom would be the size of a sports stadium
https://www.mychem.co.uk/index.php/igcse-chemistry/principles-of-chemistry/atomic-structure
how it works
>
A mass spectrometer "sorts" particles according to their mass. A mass spectrum gives the relative abundance of particles of different masses. With an element - the relative abundance of the isotopes is given .This data is then used to calculate the relative atomic mass of the element.
When an organic molecule is analysed in a mass spectrometer the vaporisation and bombardment by high energy electrons process also fragments the molecule.
Ions are detected . Uncharged fragments will not be accelerated by the magnetic field and therefore get drawn out of the spectrometer by the vacuum pump.