Classical IACT On/Off analysis¶
The traditional technique that is widely used by the IACT community for spectral analysis consists in selecting the source events from an On region and estimating the background events from one or several signal-free Off regions. The events are put into On and Off spectra, and the effective response is computed for the On region that allows to turn the event spectrum into flux points.
The cscript csphagen generates all files that are necessary for an
On/Off spectral analysis and saves them in the
OGIP
format that is normally used in X-ray astronomy and that is compliant with the
XSPEC
spectral fitting package. This format is composed of Pulse Height Analyzer
spectral files (PHA
), an Auxiliary Response File (ARF
) and a Redistribution
Matrix File (RMF
).
PHA
files are generated for the On and the Off region by binning the events
in both regions as function of reconstructed energy and storing the corresponding
vectors
The ARF
is computed using
where
Note
The source model is normalised to unity,
where the integral over
Note
The convolution with the PSF is skipped and the model RAD_MAX
keyword in the IRF files. The user must take care of specifying an On region
compatible with this directional cut. In that case
which is the mean effective area over the On region.
The RMF
is computed using
where
csphagen also computes the background scaling factors
The background scaling factors BACKSCAL
column of the On PHA file and are computed using
where
The background response vectors BACKRESP
column of each Off PHA file and are computed using
where