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 the ReflectedRegionsFinder.

exclusion_maskWcsNDMap, optional

Exclusion mask.

Attributes Summary

tag

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 a CircleSkyRegion then only a single instance of the ReflectedRegionsFinder will be called. If, on the other hand, the geometry of the dataset is a PointSkyRegion, then we have to call the ReflectedRegionsFinder several time, each time with a different size of the on region that we will read from the RAD_MAX_2D table.

Parameters
datasetSpectrumDataset

Spectrum dataset.

observationObservation

Observation container.

Returns
counts_offRegionNDMap

Counts vs estimated energy extracted from the OFF regions.

run(dataset, observation)[source]#

Run reflected regions background maker.

Parameters
datasetSpectrumDataset

Spectrum dataset.

observationDatastoreObservation

Data store observation.

Returns
dataset_on_offSpectrumDatasetOnOff

On-Off dataset.