A method and system of counting and tagging radiation energy received by a
radiation detector is presented. The method and system are designed to
dynamically control the sampling window or shaping time characteristics
of a photon counting detector to accommodate variations of flux
experienced by the detector so as to preserve optimum detector
performance and prevent saturation during high flux conditions.