Plot showing a tungsten (W) x-ray tube output spectrum taken with a CdTe detector after processing to remove escape events. The gray trace shows the original spectrum. The green trace illustrates the escape events in the original spectrum. These are subtracted from this original spectrum, then the correct energies are computed (by adding in the energy which escaped). The blue trace shows the corrected escape events, which are then summed with the gray trace. The dark black trace shows the final result of the processing with the events in their correct channels.