ReflectedRegionsBackgroundMaker¶
-
class
gammapy.spectrum.
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:
object
Reflected regions background maker.
- Parameters
- angle_increment
Angle
, optional Rotation angle applied when a region falls in an excluded region.
- min_distance
Angle
, optional Minimal distance between two consecutive reflected regions
- min_distance_input
Angle
, optional Minimal distance from input region
- max_region_numberint, optional
Maximum number of regions to use
- exclusion_mask
WcsNDMap
, optional Exclusion mask
- binsz
Angle
Bin size of the reference map used for region finding.
- angle_increment
Methods Summary
make_counts_off
(self, dataset, observation)Make off counts.
run
(self, dataset, observation)Run reflected regions background maker
Methods Documentation
-
make_counts_off
(self, dataset, observation)[source]¶ Make off counts.
- Parameters
- dataset
SpectrumDataset
Spectrum dataset.
- observation
DatastoreObservation
Data store observation.
- dataset
- Returns
- counts_off
CountsSpectrum
Off counts.
- counts_off
-
run
(self, dataset, observation)[source]¶ Run reflected regions background maker
- Parameters
- dataset
SpectrumDataset
Spectrum dataset.
- observation
DatastoreObservation
Data store observation.
- dataset
- Returns
- dataset_on_off
SpectrumDatasetOnOff
On off dataset.
- dataset_on_off