Gravar-mail: Spectral response model for a multibin photon-counting spectral computed tomography detector and its applications