An electron gun includes a cathode, a cavity, and an energy input. The
cavity resonates at a particular frequency, and the cathode generates an
electron beam along its longitudinal axis when driven by resonant
electromagnetic radiation of the particular frequency. The energy input
introduces electromagnetic radiation of the particular frequency into the
cavity along the longitudinal axis of the cathode.