Definition of the action spectrum are the efficiency with which electromagnetic radiation produces a photochemical reaction plotted as a function of the wavelength of the radiation .