A charged-particle beam lens includes a plate-like anode, a plate-like cathode, and an insulator disposed between the anode and the cathode. , wherein, after coating, the semiconductor wafer is cooled in the temperature range from 1200\xb0 C. The method further includes estimating a miss distance between the first location and a trajectory of the projectile based on the shockwave length.