What is the function of the magnetic field in a mass spectrometer?
- It detects the mass of the particles.
- It deflects the stream of charged particles.
- It excites electrons to higher energy levels.
- It produces a stream of electrons that bombards the sample.