Energy control of the laser beam