Tagged x-ray-material-analyzer