Tools for X-ray analysis