PhaseBackgroundMaker#
- class gammapy.makers.PhaseBackgroundMaker(on_phase, off_phase, phase_column_name='PHASE')[source]#
Bases:
gammapy.makers.core.Maker
Background estimation with on and off phases.
TODO: For a usage example see future notebook.
- Parameters
- on_phase
tuple
or list of tuples on-phase defined by the two edges of each interval (edges are excluded).
- off_phase
tuple
or list of tuples off-phase defined by the two edges of each interval (edges are excluded).
- phase_column_name
str
The name of the column in the event file from which the phase informations are extracted. Default is ‘PHASE’.
- on_phase
Attributes Summary
Methods Summary
make_counts
(dataset, observation)Make on 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 on counts.
- Parameters
- dataset
SpectrumDataset
Input dataset.
- observation
DatastoreObservation
Data store observation.
- dataset
- Returns
- counts
RegionNDMap
On counts.
- counts