For each event, 'nuflagevt' selects the CALDB 'E1', 'E2' and 'E3' values corresponding to its position on the detector and energy ('RAWX', 'RAWY' and 'PI' columns on the input event file) and flags it according to the following criteria:
where 'SURRPI' is read from the input event file and stores the sum of the energies of the untriggered surrounding pixels, i.e. the pixels in the 3x3 array which are below the software threshold.SURRPI <= E1 (if E2,E3 > 0)
E2 < SURRPI <= E1 (if E2,E3 < 0)
SURRPI <= E3 (if E2,E3 < 0)
Next, the task flags events according to the values of the 'PRIOR', 'RESET', 'PREPHAS[5]', and 'PI' columns of the input event file. The following criteria are used to flag the events:
(BASELINE < BASELINE1 and PI < PI_BASELINE) or (BASELINE > BASELINE2)
(PRIOR2 < PRIOR < PRIOR3 and PI < PI_PRIOR) or
(RESET2 < RESET < RESET3 and PI1_RESET < PI < PI2_RESET)
PRIOR < PRIOR1
RESET < RESET1
PI < 0 or PI > 4095where the threshold values BASELINE1, PI_BASELINE, BASELINE2, PRIOR1, PRIOR2, PRIOR3, PI_PRIOR, RESET1, RESET2, RESET3, PI1_RESET, PI2_RESET are read from the input CALDB file 'evtcutfile'.
To flag events, the 'nuflagevt' module updates the 'STATUS' column of the event file (see 'nuflagbad' help file). The format of this column is a 16-bit binary number specifying the quality of the flagging.
The value of the 'STATUS' column used by 'nuflagevt' is the following:
Events STATUS flagsb0000000010000000 Event fails depth cut b0000000100000000 Event fails baseline cut b0000001000000000 Event fails prior/reset cut b0000010000000000 Event fails prior cut b0000100000000000 Event fails reset cut b0001000000000000 Event with PI out of range
This information can be used to filter the event files allowing to reduce the instrumental background.
> nuflagevt infile=nu40060001001A_uf.evt outfile=nu40060001001A_out.evt