  Electromagnetic waves with phase defects in the form of vortex lines combined
with a constant magnetic field are shown to pin down cyclotron orbits (Landau
orbits in the quantum mechanical setting) of charged particles at the location
of the vortex. This effect manifests itself in classical theory as a trapping
of trajectories and in quantum theory as a Gaussian shape of the localized wave
functions. Analytic solutions of the Lorentz equation in the classical case and
of the Schr\"odinger or Dirac equations in the quantum case are exhibited that
give precise criteria for the localization of the orbits. There is a range of
parameters where the localization is destroyed by the parametric resonance.
Pinning of orbits allows for their controlled positioning -- they can be
transported by the motion of the vortex lines.
