ThetaSquaredTable#
- class gammapy.makers.utils.ThetaSquaredTable[source]#
Bases:
objectMake theta squared distribution in the same FoV for a list of
Observationobjects.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:
- observations
Observations List of observations.
- theta_squared_axis
MapAxis Axis of edges of the theta2 bin used to compute the distribution.
- position
SkyCoord Position from which the on theta^2 distribution is computed.
- position_off
SkyCoord 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_numberis 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_number
int, 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.
- observations
- Returns:
- table
Table Table containing the on counts, the off counts, acceptance, off acceptance and alpha for each theta squared bin.
- table
Methods Summary
run()Run theta square distribution.
Methods Documentation
- __init__(observations, theta_squared_axis, position, position_off=None, energy_edges=None, off_regions_number=1)[source]#
- classmethod __new__(*args, **kwargs)#