At a synchrotron facility, electrons are usually accelerated by a synchrotron, and then injected into a storage ring, in which they circulate, producing synchrotron radiation, but without gaining further energy. The radiation is projected at a tangent to the electron storage ring and captured by beamlines. These beamlines may originate at bending magnets, which mark the corners of the storage ring; or insertion devices, which are located in the straight sections of the storage ring. The spectrum and energy of X-rays differ between the two types. The beamline includes X-ray optical devices which control the bandwidth, photon flux, beam dimensions, focus, and collimation of the rays. The optical devices include slits, attenuators, crystal monochromators, and mirrors. The mirrors may be bent into curves or toroidal shapes to focus the beam. A high photon flux in a small area is the most common requirement of a beamline. The design of the beamline will vary with the application. At the end of the beamline is the experimental end station, where samples are placed in the line of the radiation, and detectors are positioned to measure the resulting diffraction, scattering or secondary radiation.