gtrspgen Help File
gtrspgen produces a Response Matrix (RSP) file required to analyze a binned spectrum in an OGIP-standard (i.e., XSPEC compatible) format. The response matrix is computed from the detailed response functions provided by the LAT instrument team. The elements of the matrix are directly related to the probability of an incident photon with a true energy of E being detected by the LAT with an apparent energy E'. The source position, the observation time, and energy grid are extracted from a PHA1 (spectrum) file, while the pointing/livetime history file provides the instrument orientation during the observation. The gtrspgen tool has two main options:
Two input files are required:
In binned spectral analysis, the apparent energies are binned. For the LAT data, the data have to be binned into energy channels (a PHAI file) using, the gtbin tool. But the first step in the analysis is to select all the counts from a region of 10 to 15 degrees around the burst position from the time range that includes the burst. These counts can be selected using the gtselect tool. Parameters are passed followinb the FTOOLs model: by answering from a prompt; as a list in a command line; or by editing the parameter file. To be prompted for gtrspgen parameter values, enter (at the command line): gtrspgen Note: Not all parameters are prompted: some of the parameter are "hidden". If you want to change one of the "hidden" parameter you should specify its value in the command line. For example if you do want to open the GUI option enter (at the command line): gtrspgen gui=yes An example of how to run the gtrspgen tool is given below:
In this case, the GRB option was chosen. The spectrum file was generated previously with gtbin with the name: GRB.pha. The same task can also be run from the command line as follows:
|