ReflectedRegionsBackgroundMaker

class gammapy.makers.ReflectedRegionsBackgroundMaker(angle_increment='0.1 rad', min_distance='0 rad', min_distance_input='0.1 rad', max_region_number=10000, exclusion_mask=None, binsz='0.01 deg')[source]

Bases: gammapy.makers.Maker

Reflected regions background maker.

Parameters
angle_incrementAngle, optional

Rotation angle applied when a region falls in an excluded region.

min_distanceAngle, optional

Minimal distance between two consecutive reflected regions

min_distance_inputAngle, optional

Minimal distance from input region

max_region_numberint, optional

Maximum number of regions to use

exclusion_maskWcsNDMap, optional

Exclusion mask

binszAngle

Bin size of the reference map used for region finding.

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.

Parameters
datasetSpectrumDataset

Spectrum dataset.

observationDatastoreObservation

Data store observation.

Returns
counts_offRegionNDMap

Off counts.

run(dataset, observation)[source]

Run reflected regions background maker

Parameters
datasetSpectrumDataset

Spectrum dataset.

observationDatastoreObservation

Data store observation.

Returns
dataset_on_offSpectrumDatasetOnOff

On off dataset.