ReflectedRegionsBackgroundMaker#
- class gammapy.makers.ReflectedRegionsBackgroundMaker(region_finder=None, exclusion_mask=None, **kwargs)[source]#
Bases:
gammapy.makers.core.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
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