NE-CAT runs two X-ray beamlines, 24-ID-C and 24-ID-E, at the Advanced Photon Source. Electrons circling the storage ring pass through rows of magnets and give off a narrow beam of X-rays. A silicon crystal picks out one energy, mirrors focus the beam to a few microns, and it lands on a protein crystal. This guide follows the X-rays from the ring to the detector.
Each section has a plain explanation and a figure you can adjust. The equations are folded away under the figures. Open any of them, or all of them with the button at the top, if you want the detail.
The Settings menu at the top of the page stays in view as you scroll. Choose 24-ID-C or 24-ID-E, before or after the APS Upgrade, and every figure, readout and worked number that depends on the ring or the beamline switches to those values. The highlighted column below is the one in use. The choice carries over when you follow a link to one of the other guides.
Sources. Ring values: APS Upgrade Final Design Report, chapter 1, table 1.1. The after-upgrade column is the brightness mode (324 bunches). Undulator periods and energy ranges: NE-CAT Communications, Winter 2022, the NE-CAT facilities page and the APS beamline directory. Monochromator crystals: APS beamline directory. Smallest undulator gaps (10.5 mm before the upgrade, 8.5 mm after): APS Upgrade Preliminary Design Report, chapter 5, table 5.3.
† Assumed, not taken from a published source. The undulator length (2.1 m, the APS-U canted design), and from it the number of periods. The plane in which each mono turns the beam, and that 24-ID-E uses a single reflection. A polarization of 0.98 arriving at the mono. Please correct any of these that differ on the real beamlines.
‡ Calculated in these guides from the other rows. These are not machine or beamline readings. The undulator gap comes from a general fit of field against gap (equation 2.5), not from the measured field of the NE-CAT undulators, so treat it as approximate.
§ As published by NE-CAT. Before the upgrade: NE-CAT Communications, Winter 2022 (1σ sizes). After: the NE-CAT facilities page. The two sources may not define beam size the same way.
The APS storage ring is a 1.1 km circle of magnets that holds a beam of electrons moving at almost the speed of light. The electrons travel in bunches, and each bunch goes around about 270,000 times a second. The guide How APS works follows the electrons from the gun to the ring and explains how the ring holds them.
With the 24-ID-C after the upgrade settings, the ring holds 200 mA of electrons at 6 GeV. Each electron carries 11,742 times its rest energy.
The electrons give off X-rays wherever their path is bent. NE-CAT is at sector 24 of the ring. In the straight part of that sector the electrons pass through two undulators, one after the other. Each undulator makes X-rays while the electrons are inside it, and each feeds one beamline: the first 24-ID-C, the second 24-ID-E.
The APS Upgrade replaced the ring's magnets with a new arrangement. The old ring shut down in April 2023. The energy came down from 7 to 6 GeV and the current doubled from 100 to 200 mA. The biggest change is to the electron beam itself: it went from 280 µm wide to about 15 µm, and its electrons now travel far more nearly parallel. A smaller, straighter electron beam makes a smaller, brighter X-ray beam.
What it saysThe electron falls short of light speed by only 1/2γ².
In numbersFor 24-ID-C after the upgrade the ring energy is 6 GeV, so γ = 6000 / 0.511 = 11,742. Then 1 − β = 1/2γ² = 3.6×10⁻⁹. Over one 3.0 cm period, light gains just 1.09 Å on the electron.
An undulator is two rows of permanent magnets, one above and one below the electron beam, with poles that alternate every half period. Between the rows the magnetic field points up, then down, then up again along the device.
A magnetic field pushes a moving charge sideways. So as an electron flies through, it is pushed left, then right, then left, and traces a gentle wiggle in the horizontal plane. Every time its path bends, it gives off light.
For 24-ID-C after the upgrade, each magnet period is 3.0 cm long. The wiggle is only 0.75 µm to either side.
The two rows can be moved toward or away from each other. The space between them is called the gap, and it sets how strong the field is on the beam. A smaller gap gives a stronger field and a bigger wiggle. In the figure, the gap is the first slider.
What it saysAlong the device the field swings smoothly between up and down, once per period.
What it saysThe cross product of a forward velocity and a vertical field is horizontal. There is no vertical force at all, so the electron never leaves the horizontal plane. This one line is the origin of the beam's polarization.
What it saysIntegrating the force once gives the slope and twice gives the position. The path is a sine wave with the same period as the magnets. Its largest angle is K/γ and its amplitude is Kλu/2πγ.
In numbersFor 24-ID-C after the upgrade: K = 1.85 and λu = 3.0 cm give a largest angle K/γ = 157 µrad and an amplitude of 0.75 µm.
What it saysK is a pure number that measures how hard the magnets steer. It is the largest steering angle in units of 1/γ, the natural width of the radiation cone (step 4 in the guide Why the beam is polarized). When K is about 1 or less, the electron's light always stays inside its own cone and the light from every period adds up in step. That is an undulator. When K is much larger, the cone sweeps side to side like a lighthouse. That is a wiggler.
In numbersK = 1.85 with λu = 3.0 cm needs B₀ = 1.85 / (0.934 × 3.0) = 0.66 T.
What it saysThe field on the axis falls steeply as the rows move apart. It roughly halves each time the gap grows by a fifth of a period. That makes the gap the tuning knob: motors move the rows, B₀ changes, and K follows from equation 2.4. This is a fit for undulators built from neodymium magnets with iron-alloy poles (Elleaume, Chavanne and Faatz, 2000), meant for g/λu between 0.1 and 1. The published fit begins with 3.69. These guides use 3.88, which reproduces the K values the APS quotes for its 3.3, 3.0 and 2.75 cm undulators at their smallest gap to within 2%. It is a general curve, not a measurement of the NE-CAT undulators.
In numbersFor 24-ID-C after the upgrade: K = 1.84 needs B₀ = 0.66 T, a gap of about 11.9 mm.
A wiggle a few centimeters long should give off radio waves a few centimeters long. It gives off X-rays because the electron is traveling almost as fast as the light it emits.
Picture a race. Each time the electron starts a new magnet period it sends out a new wave crest. The light is only very slightly faster than the electron, so by the time the next crest is launched, the first one is only a tiny distance ahead. The crests end up packed close together, and closely packed crests are short-wavelength light.
For 24-ID-C after the upgrade, a 3.0 cm magnet period comes out as light of about 1.09 Å.
The beamline tunes the energy by opening and closing the gap between the magnet rows. A smaller gap means a stronger field and a bigger wiggle. A bigger wiggle slows the electron's forward progress a little, the crests spread out, and the photon energy drops.
What it saysThe electron needs a time λu/βc to cross one period. In that time light covers λu/β. The difference is how far one crest sits ahead of the next, and the spacing of crests is the wavelength. Putting in 1/β − 1 ≈ 1 − β ≈ 1/2γ² from equation 1.1 gives the result.
In numbers3.0 cm / (2 × 11,742²) = 1.09 Å, or 11.4 keV. This is the K = 0 limit. Equation 3.3 adds the corrections.
What it saysIn its own frame the electron sits still while a field with a period of a few microns sweeps over it. It oscillates and radiates infrared light as a plain dipole. Seen from the lab, that dipole is approaching at nearly c, so its light is Doppler-compressed by another factor of 2γ. One γ comes from contraction and 2γ from Doppler.
In numbers3.0 cm / 11,742 = 2.55 µm in the electron's frame, then 2.55 µm / 23,484 = 1.09 Å in the lab.
What it saysThe on-axis wavelength is set by three knobs: ring energy, magnet period and K. The beamline tunes by changing the gap. Closing it raises B₀ and K, which lengthens λ and lowers the photon energy. Light that leaves at an angle is redder than light on the axis.
So far the undulator has made light of one wavelength. In fact it makes a ladder of energies at the same time. The lowest is called the fundamental, or first harmonic. Above it comes light at 3, 5, 7 … times that energy. These are the higher harmonics.
They come from the shape of the wave. When the field is weak the electron sways gently, and the electric field arriving on the axis is a smooth sine wave. A sine wave is a single energy. When the field is strong the electron swings through an angle wider than its own narrow cone of light. Someone on the axis is then lit only in a brief flash each time the electron points straight at them, which happens twice in every magnet period. The wave becomes a row of sharp spikes. A spiky wave is a smooth wave with faster ripples added at exact multiples of its rhythm, and those ripples are the harmonics.
Each flash points the opposite way to the one before, because the electron is swinging back. For that reason only the odd multiples survive on the axis. The even ones cancel there and show up only off to the side.
Closing the gap does two things. It slows the electron's forward progress, so every harmonic slides down in energy together. It also makes the wave spikier, which moves brightness out of the fundamental and into the higher harmonics. Opening the gap does the reverse. A beamline chooses the harmonic that is bright at the energy it wants.
For 24-ID-C after the upgrade, 12.662 keV is taken from harmonic 3 with K = 1.84.
All the harmonics travel down the beamline together. The monochromator of step 6 passes the one that is wanted. Light at a whole multiple of the chosen energy can also satisfy Bragg's law in the same crystal. The mirrors of step 7 reflect only below a cutoff energy, and that removes most of it.
What it saysThe second half of every magnet period is the mirror image of the first. The electron swings back the other way, so it sends the same shape of field down the axis with the opposite sign. Any repeating wave can be built from sine waves at 1, 2, 3 … times its own rhythm. A wave that flips sign every half cycle needs only the odd ones. Away from the axis the two half periods are no longer seen equally, and the even harmonics appear there.
What it saysThese are the thin curves in the figure. For a weak undulator only F₁ matters, and it grows as K². It reaches its largest value near K = 1.2. The third harmonic is brightest near K = 1.9, the fifth near 2.3, and so on: each higher harmonic takes over at a larger K. The same numbers come out if the spiky wave in the figure is split into its sine waves.
In numbersFor 24-ID-C after the upgrade at K = 1.84: F₁ = 0.31, F₃ = 0.43, F₅ = 0.38, F₇ = 0.30.
What it saysThis is equation 3.3 on axis, combined with equation 1.2 in the guide Why the beam is polarized and with the constants multiplied out. The calculator above uses it, starting from the settings chosen at the top of the page. The K it starts with is the one this formula needs for 12.662 keV, not a reading from the beamline.
In numbersFor 24-ID-C after the upgrade: harmonic 3 with K = 1.85 gives 0.950 × 3 × 36 / (3.0 × 2.70) = 12.66 keV. With K = 0 the fundamental would sit at 11.4 keV.
The electron gives off light in all directions, as it sees things. Seen from the lab, the electron's speed sweeps nearly all of that light forward into a narrow cone, like the headlight of a fast train. The faster the electron, the narrower the cone.
An undulator narrows it further. Light from every one of its periods adds up in step only very close to the axis, so the bright center of the beam is much narrower than the cone from a single wiggle.
For 24-ID-C after the upgrade, the cone from one wiggle is about 85 µrad wide and the bright center about 10 µrad.
The electrons in the bunch are not all pointing in exactly the same direction, and that spread blurs the X-ray beam. This is where the upgrade shows most. In the old ring the horizontal spread was as large as the bright center of the beam. In the new ring it is several times smaller.
What it saysA ray that leaves sideways in the electron's frame (θ′ = 90°) comes out at only 1/γ in the lab. Half of everything the electron emits is squeezed into that forward cone.
In numbers1/γ = 85 µrad. That is 2.6 mm of beam radius at 30 m from the source.
What it saysSet β = 0 and the left side reduces to the sin²ψ doughnut of equation 2.2 in the guide Why the beam is polarized. For large γ everything depends on the product γθ, which is why the right-hand plot in the figure stops changing. The first factor is the forward cone. The bracket carries the dipole's hole: it reaches zero at γθ = 1 in the horizontal plane, and it never reaches zero in the vertical plane.
What it saysLight from N periods adds in step only for a narrow band of wavelengths and a narrow range of angles. More periods give a sharper line and a tighter cone, much tighter than 1/γ. These are rough single-electron values. The real beam is widened by the electron beam's own size and angular spread.
In numbersFor 24-ID-C after the upgrade, with about 70 periods, n = 3 and K = 1.85: θcen ≈ 85 µrad × √(2.70 / 210) ≈ 10 µrad, and Δλ/λ ≈ 0.5%.
What it saysEach electron lays down the pattern of equation 5.1 in the guide Why the beam is polarized around its own direction of travel. The beam is the sum of those patterns, so its angular size is the single-electron cone widened by the electrons' own spread. This is where the upgrade shows. The old ring's horizontal spread was as large as the cone itself. The new ring's spread is several times smaller than the cone in both directions, so the real beam is close to the single-electron picture.
In numbersFor 24-ID-C after the upgrade: electron spread 2.8 µrad horizontally and 1.3 µrad vertically, against a cone of about 10 µrad. Combined: about 10 µrad × 10 µrad.
The light from the undulator is bright but not a single energy. The monochromator, or mono, selects one. It is a perfect crystal of silicon. X-rays bounce off the layers of atoms inside it, and the reflections from all the layers add up only when the wavelength and the angle match. Turn the crystal and a different energy gets through.
24-ID-C uses a channel-cut crystal: a single block of silicon with a slot cut in it. The beam bounces off one wall of the slot and then the other, and leaves traveling in its original direction. Because both walls are part of one crystal they are always exactly parallel, which makes the mono very stable. 24-ID-C can be tuned across a wide range of energies. 24-ID-E uses a different cut of silicon and stays at one energy, 12.662 keV, which suits selenium.
For 24-ID-C after the upgrade: Si(111), set to a Bragg angle of 8.98° for 12.662 keV.
What it saysReflections from successive planes add in step only at one angle for each wavelength. Rotating the crystal selects the energy.
In numbersFor 24-ID-C after the upgrade: Si(111), d = 3.1356 Å. At 12.662 keV, sin θB = 12.398 / (2 × 3.1356 × 12.662) = 0.156, so θB = 8.98° and the beam turns through 18.0°.
What it saysBoth faces are cut into one crystal, so they are always exactly parallel. Whatever angle satisfies Bragg's law on the first face satisfies it on the second, and the outgoing beam is always parallel to the incoming one. The price is that the faces cannot move relative to each other. When the crystal turns to a new energy, the beam lands at a different place on the second face, and the outgoing beam shifts in height a little.
In numbersOn Si(111) at 12.662 keV, θB = 8.98°: w = 6.3 gap widths and h = 1.98 gap widths. Between 6 and 20 keV the footprint walks from 2.9 to 10.1 gap widths along the second face, and the height step changes from 1.89 to 1.99 gap widths.
X-rays pass straight through ordinary lenses and mirrors. They do reflect from a very smooth surface if they strike it at a very shallow angle, a fraction of a degree. A gently curved mirror used this way can focus them.
24-ID-C uses a pair of such mirrors, one behind the other. One focuses the beam in height and the other in width. This arrangement is called a Kirkpatrick-Baez pair, or KB mirrors. Together the mirrors form a small image of the X-ray source on the sample.
Published focus for 24-ID-C after the upgrade: 23 × 5 µm (h × v).
Apertures just before the sample can then trim the beam to match the size of the crystal.
What it saysA focusing mirror makes an image of the source at the sample, shrunk by the ratio of the two distances. A mirror far from the source and close to the sample gives a small spot. For the same mirrors, a smaller source gives a smaller spot. Real mirrors add a little blur of their own from tiny errors in their shape.
In numbersThe upgrade shrank the horizontal source size from 280 µm to 14.7 µm, about 19 times, and the vertical size from 10 µm to 3.2 µm.
The protein crystal is a fraction of a millimeter across. It sits in a small loop on the end of a pin, held at about 100 K in a stream of cold nitrogen gas. A goniometer holds the pin and rotates the crystal in the beam. 24-ID-C has an MD3-UP goniometer, which turns the crystal about a vertical axis. 24-ID-E has an MD2.
Most of the beam passes straight through the crystal and is caught by a small beamstop. A small part is diffracted by the ordered molecules in the crystal into thousands of separate rays. A large area detector behind the sample records where they land: an EIGER2 X 16M on 24-ID-C and an EIGER 16M on 24-ID-E. As the crystal rotates, the detector collects the pattern of spots from which the structure is worked out.
A second, much smaller detector sits beside the sample. It measures the energy of each X-ray it receives, and is used to find which elements are in the crystal and to scan across an absorption edge. The beam's polarization decides where that detector should go. The guide Why the beam is polarized explains where the polarization comes from, and the guide X-ray fluorescence at NE-CAT explains how to use it.
What it saysThe first part is Bragg's law again, this time for the sample. Finer detail diffracts to larger angles. A reflection is recorded only if its ray still hits the detector, so moving the detector closer or using a shorter wavelength brings finer detail onto it.
In numbersAt 12.662 keV (0.979 Å) with the detector at 300 mm, the edge at r = 155.6 mm sits at 2θ = 27.4°, which is 2.07 Å.
Last updated November 11, 2026. Release 1.2. What changed.
The NE-CAT beamlines are funded by the National Institute of General Medical Sciences from the National Institutes of Health (P30 GM124165).
© 2026 NE-CAT, Cornell University. Released under the MIT License.