Zaslat záznam emailem: The piecewise-linear dynamic attenuator reduces the impact of count rate loss with photon-counting detectors