The quadruple magnet helps the electron beam maintain its precise shape before it enters the undulator magnet.
Credit: Stanford (and caption credits)