-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I was doing an analysis of the all-sky Fermi data, and when selecting events with gtselect, I specified evclass=1024 for ULTRACLEANVETO and evtype=32 for PSF3. A few steps later, I created an exposure cube with this command:
gtexpcube2 \
infile=livetime.fits \
outfile=exposure_ULTRACLEANVETO_PSF3.fits \
cmap=counts_ULTRACLEANVETO_PSF3.fits \
irfs=P8R3_ULTRACLEANVETO_V3 \
bincalc=CENTERHowever, I noticed that the flux (counts/exposure) was lower than I expected. To investigate, I re-ran the analysis without selecting PSF3 events (I used evtype=3 to select all evtypes). I found that gtexpcube2 produced the same exact results as before.
This is unexpected because the manual for gtexpcube2 says that it will use the evtype specified in the "input file", which I assume means the binned counts map file:
evtype [integer]
The evtype to be used in generating the background data. The
default is INDEF which will use the default in the input
file. This can be overridden by entering the desired event
type e.g. 3 for FRONT + BACK events.
However, the following command which manually specifies the evtype produces different output.
gtexpcube2 \
infile=livetime.fits \
outfile=exposure_ULTRACLEANVETO_PSF3_evtype32.fits \
cmap=counts_ULTRACLEANVETO_PSF3.fits \
irfs=P8R3_ULTRACLEANVETO_V3 \
bincalc=CENTER \
evtype=32As expected, the resulting exposure is around a factor of 4 times smaller than when all evtypes are selected.
It looks like either the documentation is incorrect about the behavior when evtype=INDEF in gtexpcube2, or this is a bug.