In a laser shock peening process, the shape of the spot generated by the
laser beam is changed on the fly. This is achieved, for example, by a
masking device which is movable into and out of the path of the laser
beam. Laser shock peening spots can consequently be shaped so as to avoid
the spots overlapping an edge of the workpiece, or any other feature
which may be damaged by the laser energy.