A compact UHV deposition system for in situ study of ultrathin films via hard x-ray scattering and spectroscopy.