The purpose of this tool is to give a mask file, where those pixels that are likely to be affected with pile-up are marked, based on the user-specified threshold, applied to the normalised count-per-frame-per-pixel map, after calculating the averaged grade-branching ratio.
To calculate the normalised count-per-frame-per-pixel map, this task, if possible, only takes into account the single-pixel events. In the calculation it weighs each event, depending on the energy, normalising to that in Al K line at 1.487 keV, where 77.5% and 67.8% of all events at this energy should be observed as a single pixel in MOSs and pn, respectively, if no pile-up occurs. For example, an event at the energy, where the single-pixel branching ratio is 38.8% (= 77.5/2), is weighted as twice as much as those at 1.487 keV.