XMM-Newton Science Analysis System

epicbscalgen (ccftools-1.36) [xmmsas_20211130_0941-20.0.0]

### Algorithm

The basic idea is to minimize the difference between the true source coordinates and the ones computed by the eboxdetect as a function of the three angles. More explicitly, the following steps are carried out:
1. Set , i.e. assume perfect alignment between the star tracker/spacecraft and instrument boresight frame in Fig. 1.

2. run the task attcalc on the event list producing a new event list with sky coordinates corresponding to the tuple .

3. accumulate a sky image from event list with task evselect

4. run eboxdetect on which gives a list of source positions in absolute sky coordinates ,

5. identify the reference sources in the new source list and compute

(1)

6. if is small enough the sought set of angles is found:
(2)
else
• compute new angles for the next iteration
• set boresight angles to via the CAL
• goto 3
endif
Thus, the procedure is a minimization of the sum of squares of the absolute deviations of the reference source positions from the true values in the 3-dimensional parameter space of the boresight misalignment angles. The actual minimization scheme employed is the Nelder-Mead Simplex method[3] which uses only function evaluations. It has been found that the Simplex scheme is much better suited than conventional conjugate gradient methods which often fail to efficiently find the direction to the global minimum. The dependency of on the third angle , i.e., the calibration around the optical axis, has been found to be fairly weak. For the sake of efficiency, the search for the global minimum has therefore been split into two stages:
1. Minimization of with a fairly relaxed stopping criterion.
2. Starting from the local minimum found in step 1, full minimization of with a more stringent stopping criterion.

XMM-Newton SOC -- 2021-11-30