Electrons are deflected by a magnetic field.