PhaseBackgroundMaker¶
-
class
gammapy.makers.PhaseBackgroundMaker(on_phase, off_phase)[source]¶ Bases:
gammapy.makers.MakerBackground estimation with on and off phases.
TODO: For a usage example see future notebook.
TODO: The phase interval has to be between 0 and 1. Cases like [-0.1, 0.1], for example, are still not supported.
- Parameters
Attributes Summary
Methods Summary
make_counts(dataset, observation)Make off counts.
make_counts_off(dataset, observation)Make off counts.
run(dataset, observation)Run all steps.
Attributes Documentation
-
tag= 'PhaseBackgroundMaker'¶
Methods Documentation
-
make_counts(dataset, observation)[source]¶ Make off counts.
- Parameters
- dataset
SpectrumDataset Input dataset.
- observation
DatastoreObservation Data store observation.
- dataset
- Returns
- counts_off
RegionNDMap Off counts.
- counts_off