A method for X-ray analysis of a sample includes directing a beam of
X-rays to impinge on an area of a periodic feature on a surface of the
sample and receiving the X-rays scattered from the surface in a
reflection mode so as to detect a spectrum of diffraction in the
scattered X-rays as a function of azimuth. The spectrum of diffraction is
analyzed in order to determine a dimension of the feature.