The SWIFT BAT Software Guide Version 6.3 30 ... - HEASARC - Nasa
The SWIFT BAT Software Guide Version 6.3 30 ... - HEASARC - Nasa
The SWIFT BAT Software Guide Version 6.3 30 ... - HEASARC - Nasa
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
5.5. MASK WEIGHTING (RAY TRACING) 35<br />
5.4.9 What to do if no detector enable/disable map is present<br />
Detector enable/disable maps are periodically produced by the <strong>BAT</strong> flight software to indicate<br />
which detectors have been disabled in flight. When noisy detectors appear and are detected by<br />
the flight software, they are automatically disabled to prevent them from interfering with the <strong>BAT</strong><br />
triggering process.<br />
It is important to understand that the detector enable/disable map production is not synchronized<br />
with the observing plan. <strong>The</strong> map may have been produced during a previous observation.<br />
Normally the SDC retrieves the proper map for GRB data and includes it with the data set.<br />
If there are processing errors, or for non-GRB observations, the detector enable/disable maps may<br />
be missing. If that is the case, then the map must be found manually from the trend data.<br />
Search in the <strong>BAT</strong> trend data by month. See /swift/data/trend/YYYY MM/bat/bdetflag on<br />
the <strong>HEASARC</strong> FTP site.<br />
You want the next earliest detector enable/disable map produced before the event data in<br />
question. <strong>The</strong> files are listed by time (expressed as mission elapsed time, or MET), so one needs<br />
to scan the list until the right time is found.<br />
First, determine the time of the data you are interested in. Usually you can look at the TSTART<br />
keyword,<br />
ftlist sw00145675000bevshsp_uf.evt.gz K | grep TSTART<br />
which produces the following<br />
TSTART = 142921443. / Start time<br />
A quick scan of the trend directory in /swift/data/trend/2005 07/bat/bdetflag shows that<br />
the next earliest detector enable/disable map is swt0142921337bdecb.fits.gz. In this case the<br />
time listed in the file name is about 106 seconds before the start of the event data.<br />
It is not vitally important to get exactly the right detector map. Having a few detectors<br />
incorrectly labeled as enabled or disabled will not substantially alter the analysis.<br />
5.5 Mask Weighting (Ray Tracing)<br />
Mask weighting (also known as ray-tracing) is the fundamental operation required to produce<br />
background-subtracted light curves and spectrum from the <strong>BAT</strong>. This section shows you how to<br />
check the event file for how it was ray-traced; how to make a new set of mask weights; how to make<br />
an auxiliary ray tracing file. It is important to stress that the mask weighting approach works for<br />
one source at a time. If you are interested in several sources in the same observation, then you<br />
should make one copy of the event file for each source, and perform the mask weighting calculation<br />
for each separately.<br />
5.5.1 Introduction<br />
Mask weighting is required for all <strong>BAT</strong> light curve and spectral analysis. This is the first operation<br />
needed before background-subtracted light curves or spectra can be analyzed.