ReflectedRegionsBackgroundMaker#
- class gammapy.makers.ReflectedRegionsBackgroundMaker(region_finder=None, exclusion_mask=None, **kwargs)[source]#
Bases:
Maker
Reflected regions background maker.
- Attributes:
- region_finder: RegionsFinder
If not given, a
ReflectedRegionsFinder
will be created and any of the**kwargs
will be forwarded to theReflectedRegionsFinder
.- exclusion_mask
WcsNDMap
, optional Exclusion mask. The map must contain at max one non-spatial dimension, and this dimension must be one bin.
Attributes Summary
Methods Summary
make_counts_off
(dataset, observation)Make off counts.
run
(dataset, observation)Run reflected regions background maker.
Attributes Documentation
- tag = 'ReflectedRegionsBackgroundMaker'#
Methods Documentation
- make_counts_off(dataset, observation)[source]#
Make off counts.
NOTE for 1D analysis: as for
make_counts
, if the geometry of the dataset is aCircleSkyRegion
then only a single instance of theReflectedRegionsFinder
will be called. If, on the other hand, the geometry of the dataset is aPointSkyRegion
, then we have to call theReflectedRegionsFinder
several time, each time with a different size of the on region that we will read from theRAD_MAX_2D
table.- Parameters:
- dataset
SpectrumDataset
Spectrum dataset.
- observation
Observation
Observation container.
- dataset
- Returns:
- counts_off
RegionNDMap
Counts vs estimated energy extracted from the OFF regions.
- counts_off
- run(dataset, observation)[source]#
Run reflected regions background maker.
- Parameters:
- dataset
SpectrumDataset
Spectrum dataset.
- observation
Observation
Data store observation.
- dataset
- Returns:
- dataset_on_off
SpectrumDatasetOnOff
On-Off dataset.
- dataset_on_off