ThetaSquaredTable#

class gammapy.makers.utils.ThetaSquaredTable[source]#

Bases: object

Make theta squared distribution in the same FoV for a list of Observation objects.

The ON theta2 profile is computed from a given distribution, on_position. By default, the OFF theta2 profile is extracted from a mirror position radially symmetric in the FOV to pos_on.

The ON and OFF regions are assumed to be of the same size, so the normalisation factor between both region alpha = 1.

Parameters:
observationsObservations

List of observations.

theta_squared_axisMapAxis

Axis of edges of the theta2 bin used to compute the distribution.

positionSkyCoord

Position from which the on theta^2 distribution is computed.

position_offSkyCoord

Position from which the OFF theta^2 distribution is computed. Default is reflected position w.r.t. to the pointing position. It is available only if off_regions_number is equal to 1.

energy_edgeslist of Quantity, optional

Edges of the energy bin where the theta squared distribution is evaluated. For now, only one interval is accepted. Default is None.

off_regions_numberint, optional

Number of OFF regions. Default is 1. WARNING: the user should be aware that, if regions overlap, only the reflected OFF region will be considered.

Returns:
tableTable

Table containing the on counts, the off counts, acceptance, off acceptance and alpha for each theta squared bin.

Methods Summary

run()

Run theta square distribution.

Methods Documentation

run()[source]#

Run theta square distribution.

__init__(observations, theta_squared_axis, position, position_off=None, energy_edges=None, off_regions_number=1)[source]#
classmethod __new__(*args, **kwargs)#