EnergyDispersionMakerBase#

class ctapipe.irf.irfs.EnergyDispersionMakerBase(**kwargs: Any)[source]#

Bases: DefaultTrueEnergyBins

Base class for calculating the energy dispersion.

Attributes Summary

energy_migration_binning

How energy bins are distributed between energy_migration_min and energy_migration_max.

energy_migration_max

Maximum value of energy migration ratio

energy_migration_min

Minimum value of energy migration ratio

energy_migration_n_bins

Number of bins for energy migration ratio

Methods Summary

__call__(events, spatial_selection_applied)

Calculate the energy dispersion and create a fits binary table HDU in GADF format.

Attributes Documentation

energy_migration_binning#

How energy bins are distributed between energy_migration_min and energy_migration_max.

energy_migration_max#

Maximum value of energy migration ratio

energy_migration_min#

Minimum value of energy migration ratio

energy_migration_n_bins#

Number of bins for energy migration ratio

Methods Documentation

abstract __call__(events: QTable, spatial_selection_applied: bool, extname: str = 'ENERGY MIGRATION') BinTableHDU[source]#

Calculate the energy dispersion and create a fits binary table HDU in GADF format.

Parameters:
events: astropy.table.QTable

Reconstructed events to be used.

spatial_selection_applied: bool

If a direction cut was applied on events, pass True, else False.

extname: str

Name for the BinTableHDU.

Returns:
BinTableHDU