Effect of the beam frequency on the target temperature