Therefore, thicknesses of individual target objects are measured beforehand, then as described in the first embodiment, optimum X-ray energy is determined using such a graph as in FIG. 11, and lattice planes to be used for simultaneous diffraction are further determined in accordance with FIG. 12.