Resonances in an electron beam focused by a helical quadrupole magnetic field