SensitivityEstimator¶
-
class
gammapy.spectrum.
SensitivityEstimator
(arf, rmf, bkg, livetime, index=2.0, alpha=0.2, sigma=5.0, gamma_min=10.0, bkg_sys=0.05)[source]¶ Bases:
object
Estimate differential sensitivity.
Uses a 1D spectral analysis and on / off measurement.
For a usage example see cta_sensitivity.html
- Parameters
- arf
EffectiveAreaTable
1D effective area
- rmf
EnergyDispersion
energy dispersion table
- bkg
CountsSpectrum
the background array
- livetime
Quantity
Livetime (object with the units of time), e.g. 5*u.h
- indexfloat, optional
Index of the spectral shape (Power-law), should be positive (>0)
- alphafloat, optional
On/OFF normalization
- sigmafloat, optional
Minimum significance
- gamma_minfloat, optional
Minimum number of gamma-rays
- bkg_sysfloat, optional
Fraction of Background systematics relative to the number of ON counts
- arf
Notes
This class allows to determine for each reconstructed energy bin the flux associated to the number of gamma-ray events for which the significance is
sigma
, and being larger thangamma_min
andbkg_sys
percent larger than the number of background events in the ON region.Attributes Summary
Results table (
Table
).Methods Summary
run
(self)Run the computation.
Attributes Documentation
Methods Documentation