PhaseBackgroundEstimator¶
-
class
gammapy.background.PhaseBackgroundEstimator(on_region, on_phase, off_phase, obs_list)[source]¶ Bases:
objectBackground estimation with on and off phases.
This class is responsible for creating a
BackgroundEstimateby 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 :
CircleSkyRegionTarget region in the sky
obs_list :
ObservationListObservations to process
on_phase :
tupleor list of tupleson-phase defined by the two edges of each interval (edges are excluded)
off_phase :
tupleor 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