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
arfEffectiveAreaTable

1D effective area

rmfEnergyDispersion

energy dispersion table

bkgCountsSpectrum

the background array

livetimeQuantity

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

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 than gamma_min and bkg_sys percent larger than the number of background events in the ON region.

Attributes Summary

results_table

Results table (Table).

Methods Summary

run(self)

Run the computation.

Attributes Documentation

results_table

Results table (Table).

Methods Documentation

run(self)[source]

Run the computation.