Fermi Gamma-ray Space Telescope

Precomputation of Livetime and Exposure

The computation of the likelihood usually occurs many times. Fitting involves varying model parameters until the best values are found (the methodology is described elsewhere). Fits are done with various model parameters fixed or with different sources present or absent. However, certain quantities like livetime and exposure need to be calculated only once. By precomputing these quantities, we can speed up the repeated computation of the likelihood.

Livetime Cube

The LAT instrument response functions are a function of the inclination angle, the angle between the direction to a source and the LAT normal. The number of counts that a source should produce should therefore depend on the amount of time that the source spent at a given inclination angle during an observation. This livetime quantity, the time that the LAT observed a given position on the sky at a given inclination angle, depends only on the history of the LAT's orientation during the observation and not on the source model. The array of these livetimes at all points on the sky is called the 'livetime cube' or 'exposure hypercube,' and is generated by the gtltcube tool. As a practical matter, the livetime cubes are provided on a healpix grid on the sky and in inclination angle bins (see LAT Livetime and Exposure section).

Excluding Atmospheric Background Events

In the Data Preparation section, the LAT team recommends a maximum zenith angle cut of 100 degrees as a method of excluding atmospheric gamma rays from the Earth that can be a significant source of background. Prior to performing a likelihood analysis, you must correct the livetime for the exclusion of these events. There are two options for how to account for this selection in the livetime calculations, with slightly different effects:

  1. Region of Interest (ROI) based zenith selection in gtmktime
    (Used by LAT team for analysis of ARR and TOO observations)

    This method excludes intervals where any part of the excluded zenith region (usually >100 deg) overlaps with any part of the ROI. This was the original recommended selection. It offers good performance for pointed mode observations, because it allows use of the data when the Earth is in the FoV, provided that it is not close to the ROI. The disadvantage is that it produces a hole in exposure near the orbit poles (because the Earth limb is always close to these regions, even when out of the LAT FoV). It has the advantage of being very easy to apply. This choice is valid for most analyses, unless you wish to consider the whole sky or the orbit poles. It is the recommended choice for pointed mode (TOO or ARR data).

    • gtselect zmax = 100
    • gtmktime
      • filter = (DATA_QUAL==1 && LAT_CONFIG==1)
      • ROI-based zenith cut? = yes
  2. Rocking angle cut + zmax option in gtltcube (Used by LAT team for 1FGL, 2nd Catalog and diffuse analysis)

    During the livetime cube creation, for each spot on the sky, time periods when that location fails the zmax selection are excluded. This allows you to correct for the exposure effect of the zmax cut that was applied in gtselect, but still be able to use the rest of the ROI (even when events have been removed from some part of the ROI due to the zmax cut). This is the option taken for the catalog analysis. It avoids the problem of the exposure hole at the orbit poles. Any potential systematic effect due to using gtltcube to correct the exposure is minimized by excluding periods when the earth limb is within the FOV (by using a rocking angle cut in gtmktime). The rocking angle cut eliminates lots of the exposure during pointed mode observations (so this is not appropriate for GRB/ARR or TOO analysis). This is the recommended approach for catalog and other types of all-sky analyses (e.g. diffuse).

    • gtselect zmax = 100
    • gtmktime
      • filter = (DATA_QUAL==1 && LAT_CONFIG==1&& ABS(ROCK_ANGLE)<52)
      • ROI-based zenith cut? = no
    • gtltcube zmax = 100 (Note: this is a hidden parameter)
  3. Combining 1 and 2 with a logical OR

    At one point the catalog analysis used a selection that was Option1.OR.Option2. This tends to mitigate the disadvantages of either method. This option is valid and correct but not recommended for any specific analysis. For a full mission time series analysis, this option may provide the best coverage by including the maximal amount of both survey and pointed mode observations.

    • gtselect zmax = 100
    • gtmktime
      • filter = (DATA_QUAL==1 && LAT_CONFIG==1 && (ABS(ROCK_ANGLE)<52 || angsep(RoIRa, RoIDec, RA_ZENITH, DEC_ZENITH)+ROI_radius<100))
      • ROI-based zenith cut? = no
    • gtltcube zmax = 100 (Note: this is a hidden parameter)
  4. Combining 1 and 2 with a logical AND

    This is a conservative and most commonly used choice. It combines the disadvantages of both methods, but for most point source analyses the negative effects are negligible. This option is valid and correct and may help protect against subtle systematics associated with having the Earth in your FoV. Note that the ROI based selection in gtmktime is a super-set of the zmax selection in gtltcube. So the gtltcube zmax option is not necessary in this case (but won't do any harm either).

    • gtselect zmax = 100
    • gtmktime
      • filter = (DATA_QUAL==1 && LAT_CONFIG==1 && ABS(ROCK_ANGLE)<52)
      • ROI-based zenith cut? = yes

Exposure Maps

The likelihood consists of two factors: the first is dependent on the detected counts and differs between binned and unbinned likelihood calculations; and the second is equal to the exponential of the negative of the predicted total number of counts Npred for the source model. The exposure map is the total exposure—area multiplied by time—for a given position on the sky producing counts in the Region of Interest. Since the response function is a function of the photon energy, the exposure map is also a function of this energy. Thus the counts produced by a source at a given position on the sky is the integral of the source flux and the exposure map (a function of energy) at that position. The exposure map is used for extended sources such as the diffuse Galactic and Extragalactic backgrounds and not for individual sources.

The exposure map should be computed over a Source Region that is larger than the Region of Interest by ~50%. This is necessary to insure that all source photons are included due to the size of the LAT instrument PSF at low energies.


» Forward to Likelihood Model Fitting
» Back to Model Selection
» Back to the beginning of the likelihood section
» Back to the beginning of the Cicerone