Fill the leaking container with helium. The gas is used as a tracer to determine whether or not the container is leaking and, if so, where it is leaking from.
Place the helium-filled container inside the vacuum chamber. The leak detection technique works by measuring helium as it is expelled into the vacuum chamber from the container sealed inside.
Ionize a gas sample containing the helium using the mass spectrometer. As the helium leaks into the vacuum, it is pushed through a magnetic field, collecting the helium ions to determine the severity of the leak. Helium ions exit utilizing a different path from all other ions, making collection and measurement of helium ions fairly simple within the spectrometer tube.