As the primary photon beam passes through the plate, secondary electrons are generated. The beam exiting the spoiler is a combination of the spoiler-attenuated photons and the spoiler-generated electrons. The electron component alters the depth dose in the buildup region in a way that depends on the photon beam energy, the field size, and the distance of the spoiler from the treatment surface.