Exploring The Impact Of Detection Physics In X-Ray Ccd Imagers And Spectrometers