According to well-known electrodynamic laws, an electron moving in a magnetic field is acted upon by a force which runs perpendicular to the direction of motion of the electron and to the direction of the magnetic field, and whose magnitude is easily determined.
On the basis of Lorentz's theory, if we limit ourselves to a single spectral line, it suffices to assume that each atom (or molecule) contains a single moving electron.