In this tube there are two microwave cavity resonators, the "catcher" and the "buncher". When used as an amplifier, the weak microwave signal to be amplified is applied to the buncher cavity through a coaxial cable or waveguide, and the amplified signal is extracted from the catcher cavity. At one end of the tube is the hot cathode which produces electrons when heated by a filament. The electrons are attracted to and pass through an anode cylinder at a high positive potential; the cathode and anode act as an electron gun to produce a high velocity stream of electrons. An external electromagnet winding creates a longitudinal magnetic field along the beam axis which prevents the beam from spreading. The beam first passes through the "buncher" cavity resonator, through grids attached to each side. The buncher grids have an oscillating AC potential across them, produced by standing wave oscillations within the cavity, excited by the input signal at the cavity's resonant frequency applied by a coaxial cable or waveguide. The direction of the field between the grids changes twice per cycle of the input signal. Electrons entering when the entrance grid is negative and the exit grid is positive encounter an electric field in the same direction as their motion, and are accelerated by the field. Electrons entering a half-cycle later, when the polarity is opposite, encounter an electric field which opposes their motion, and are decelerated. Beyond the buncher grids is a space called the "drift space". This space is long enough so that the accelerated electrons catch up with electrons that were accelerated at an earlier time, forming "bunches" longitudinally along the beam axis. Its length is chosen to allow maximum bunching at the resonant frequency, and may be several feet long. The electrons then pass through a second cavity, called the "catcher", through a similar pair of grids on each side of the cavity. The function of the "catcher grids" is to absorb energy from the electron beam. The bunches of electrons passing through excite standing waves in the cavity, which has the same resonant frequency as the buncher cavity. Each bunch of electrons passes between the grids at a point in the cycle when the exit grid is negative with respect to the entrance grid, so the electric field in the cavity between the grids opposes the electrons motion. The electrons thus do work on the electric field, and are decelerated, their kinetic energy is converted to electric potential energy, increasing the amplitude of the oscillating electric field in the cavity.