XMM-Newton Science Analysis System
rmfgen (rmfgen-2.2.1) [xmmsas_20160201_1833-15.0.0]
Meta Index / Home Page / Algorithm
MATRIX table creation
- Go through corrected matrix to find
out the following statistics:
- The largest number of channel groups in a row
- The largest number of channel elements in a row above threshold
- Create empty output table header and structure.
- Create a linked list (GROUP_LIST)
to store groups of contiguous elements
- Foreach row in corrected matrix:
- Create a linked list corresponding to a single group (GROUP).
- Foreach element in row
- If element is above threshold, add element to GROUP.
- Else push GROUP onto GROUP_LIST,
and create a new instance of
the GROUP structure for the next group of contiguous elements.
- End element loop
- Write out GROUP_LIST to output table.
- Create a new instance of GROUP_LIST for the next row.
- end row loop
XMM-Newton SOC/SSC -- 2016-02-01