This page describes the Spectral and Spatial Models available for use in gtlike.
Two types of sources can be defined, PointSource and DiffuseSource. Each type of source model is comprised of a spectral and a spatial model component, where each component is made up of several parameters.
Each model parameter has a range of valid values that can be specified, and is described by a set of attributes. The actual value of a given parameter that is used in the calculation is the value attribute multiplied by the scale attribute. The value attribute is what the optimizers see. Using the scale attribute is necessary to ensure that the parameters describing the objective function, -log(likelihood) for this application, all have values lying roughly within an order-of-magnitude of each other. The free attribute determines whether the parameter will be allowed to be fixed or free in the fitting process.
NOTE: Free flag attributes are currently disabled for spatial model parameters since fitting for these parameters has not been implemented (primarily due to the enormous overhead associated with computing the energy-dependent response functions for each source component).
Several spectral functions are available for use with gtlike. For point source spectral models, the units are . For diffuse sources, the units are .
The available point source spectral models are:
Example: XML Model Definition
This function has the form:
where the parameters in the XML definition have the following mappings:
Example: XML Model Definition
This function has the form:
where
Example: XML Model Definition
This function uses the integrated flux as a free parameter rather than the Prefactor:
where
NOTE: The UpperLimit and LowerLimit parameters are always treated as fixed and, as should be apparent from this definition, the flux given by the Integral parameter is over the range (LowerLimit, UpperLimit). Use of this model allows the errors on the integrated flux to be evaluated directly by likelihood, obviating the need to propagate the errors if one is using the PowerLaw form.
Example: XML Model Definition
Similar to PowerLaw2, the integral flux is the free parameter rather than the Prefactor:
where
and
Example: XML Model Definition
where
Example: XML Model Definition
This model is typically used for modeling Blazar spectra.
\[\frac{dN}{dE} = N_0 \left( \frac{E}{E_b} \right)^{-(\alpha + \beta\ln(E/E_b))} \]
where
Note: \(E_b\) is a scale parameter that should be set near the lower energy range of the spectrum being fit and is usually fixed. See Massaro et al., A&A (2004) 413, 489.
Example: XML Model Definition
An exponentially cut-off power-law used for modeling blazar spectra subject to absorption by the extragalactic background light (EBL).
\[\frac{dN}{dE} = N_0 \times \left\{ \begin{array}{ll} \left(\frac{E}{E_0}\right)^\gamma & \mbox{$E < E_b$}\\ \left(\frac{E}{E_0}\right)^\gamma \exp\left[ - ( (E - E_b)/p_1 + p_2\ln(E/E_b) + p_3\ln^2(E/E_b) ) \right] & \mbox{otherwise} \end{array} \right. \]
where
Example: XML Model Definition
An exponentially cut-off broken power-law.
where
Example: XML Model Definition
For modeling pulsars. Note that the PLSuperExpCutoff spectral shape in the 4FGL corresponds to PLSuperExpCutoff2 in the Fermitools (see next entry).
\[{dN \over dE} = N_0 \left( {E \over E_0}\right)^{\gamma_1} exp\left( - \left({E \over E_c}\right)^{b} \right)\]where
Example: XML Model Definition
For modeling pulsars.
\[{dN \over dE} = N_0 \left( {E \over E_0}\right)^{\gamma_1} exp\left( -aE^{b} \right)\]
where
Example: XML Model Definition
For modeling pulsars.
\[{dN \over dE} = N_0 \left( {E \over E_0}\right)^{\gamma_0 + bc} exp\left( c \left( 1 - \left({E \over E_0}\right)^b \right) \right)\]
where
Note:
These features are shared by the LogParabola functional.
Example: XML Model Definition
For modeling pulsars.
\[\frac{dN}{dE} = \begin{cases} N_0 \left( \frac{E}{E_0} \right)^{\gamma_0-\frac{d}{2}\ln\frac{E}{E_0} - \frac{db}{6} \ln^2\frac{E}{E_0} - \frac{db^2}{24} \ln^3\frac{E}{E_0}} , & \text{if}\ |b \ln\frac{E}{E_0}|<1e^{-2} \\ N_0 \left( \frac{E}{E_0} \right)^{\gamma_0+d/b} exp \left( \frac{d}{b^2} (1-( \frac{E}{E_0} )^b ) \right) & \text{otherwise} \end{cases}\]
where
Note:
The \(b=0\) case corresponds to a LogParabola with \(\alpha=\gamma_0\) and \(\beta = d/2\).
Example: XML Model Definition
A constant-valued function, independent of energy.
where
Example: XML Model Definition
A Gaussian function that can be used to model an emission line.
where
Example: XML Model Definition
This function is used to model GRB spectra.
where
This function is used to fit for putative dark matter signals (as described in Jeltema & Profumo 2008)
Example: XML Model Definition
The functional form for the flux is:
<σv> N0 (Br F(M,C0) + (1 - Br F(M,C1)))
where the values of F(M,C) are tabulated in the file $FERMI_DIR/data/Likelihood/gammamc_dif.dat
The XML parameters are:
The decay channels take integer codes, the map is:
Example: XML Model Definition
A function defined using an input ASCII file with columns of energy and differential flux values. The energy units are assumed to be MeV and the flux values are assumed to for a point source and for a diffuse source. The sole parameter is a multiplicative normalization.
where
NOTE: Free flag attributes are currently disabled for spatial model parameters since fitting for these parameters has not been implemented (primarily due to the enormous overhead associated with computing the energy-dependent response functions for each source component).
Four spatial models are available:
Last updated by: Nestor Mirabal - 02/14/2018