The electronic structure of cuprates from high energy spectroscopy