PhaseBackgroundEstimator¶
-
class
gammapy.background.
PhaseBackgroundEstimator
(on_region, on_phase, off_phase, obs_list)[source]¶ Bases:
object
Background estimation with on and off phases.
This class is responsible for creating a
BackgroundEstimate
by counting events in the on-phase-zone and off-phase-zone in an ON-region, given an observation, an on_region, an on-phase-zone, an off-phase-zone.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: on_region :
CircleSkyRegion
Target region in the sky
obs_list :
ObservationList
Observations to process
on_phase :
tuple
or list of tupleson-phase defined by the two edges of each interval (edges are excluded)
off_phase :
tuple
or list of tuplesoff-phase defined by the two edges of each interval (edges are excluded)
Methods Summary
filter_events
(events, tuple_phase_zone)Select events depending on their phases. process
(obs)Estimate background for one observation. run
()Run all steps. Methods Documentation