A rotating assembly in the treatment head that places beam shaping elements, such as flattening filters and scattering foils, into the beam path.