SpectrumDatasetMaker¶
-
class
gammapy.makers.
SpectrumDatasetMaker
(containment_correction=False, selection=None)[source]¶ Bases:
object
Make spectrum for a single IACT observation.
The irfs and background are computed at a single fixed offset, which is recommend only for point-sources.
- Parameters
- containment_correctionbool
Apply containment correction for point sources and circular on regions.
- selectionlist
List of str, selecting which maps to make. Available: ‘counts’, ‘aeff’, ‘background’, ‘edisp’ By default, all spectra are made.
Attributes Summary
Methods Summary
make_aeff
(self, region, energy_axis_true, …)Make effective area.
make_background
(geom, observation)Make background.
make_counts
(geom, observation)Make counts map.
make_edisp
(position, energy_axis, …)Make energy dispersion.
run
(self, dataset, observation)Make spectrum dataset.
Attributes Documentation
-
available_selection
= ['counts', 'background', 'aeff', 'edisp']¶
Methods Documentation
-
make_aeff
(self, region, energy_axis_true, observation)[source]¶ Make effective area.
- Parameters
- Returns
- aeff
EffectiveAreaTable
Effective area table.
- aeff
-
static
make_background
(geom, observation)[source]¶ Make background.
- Parameters
- geom
RegionGeom
Reference map geom.
- observation: `~gammapy.data.Observation`
Observation to compute effective area for.
- geom
- Returns
- background
RegionNDMap
Background spectrum
- background
-
static
make_counts
(geom, observation)[source]¶ Make counts map.
- Parameters
- geom
RegionGeom
Reference map geom.
- observation
Observation
Observation container.
- geom
- Returns
- counts
RegionNDMap
Counts map.
- counts
-
static
make_edisp
(position, energy_axis, energy_axis_true, observation)[source]¶ Make energy dispersion.
- Parameters
- Returns
- edisp
EDispKernel
Energy dispersion
- edisp