Text this: Multi-energy calibration of a PILATUS3 CdTe detector for hard x-ray measurements of magnetically confined fusion plasmas.