SensitivityEstimator#
- class gammapy.estimators.SensitivityEstimator(spectrum=None, n_sigma=5.0, gamma_min=10, bkg_syst_fraction=0.05)[source]#
Bases:
gammapy.estimators.core.Estimator
Estimate differential sensitivity.
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
n_sigma
, and being larger thangamma_min
andbkg_sys
percent larger than the number of background events in the ON region.- Parameters
- spectrum
SpectralModel
Spectral model assumption
- n_sigmafloat, optional
Minimum significance. Default is 5.
- gamma_minfloat, optional
Minimum number of gamma-rays. Default is 10.
- bkg_syst_fractionfloat, optional
Fraction of background counts above which the number of gamma-rays is. Default is 0.05
- spectrum
Examples
For a usage example see cta_sensitivity.html
Attributes Summary
Config parameters
Methods Summary
copy
()Copy estimator
estimate_min_e2dnde
(excess, dataset)Estimate dnde from given min.
estimate_min_excess
(dataset)Estimate minimum excess to reach the given significance.
run
(dataset)Run the sensitivity estimation
Attributes Documentation
- config_parameters#
Config parameters
- selection_optional#
- tag = 'SensitivityEstimator'#
Methods Documentation
- copy()#
Copy estimator
- estimate_min_e2dnde(excess, dataset)[source]#
Estimate dnde from given min. excess
- Parameters
- excess
RegionNDMap
Minimal excess
- dataset
SpectrumDataset
Spectrum dataset
- excess
- Returns
- e2dnde
Quantity
Minimal differential flux.
- e2dnde