In XRR, a collimated beam of X-rays is directed at the surface of a sample at varying incident angles. The reflected X-rays are detected and analyzed to create a reflectivity profile. This profile can then be fitted to theoretical models to extract information about the thickness, density, roughness, and interface quality of thin films and multilayers.