RadialEventWeighter#

class ctapipe.irf.RadialEventWeighter(*args: t.Any, **kwargs: t.Any)[source]#

Bases: EventWeighter, DefaultFoVOffsetBins

Weights in radial (FOV) offset bins in the NominalFrame.

This should only be used for diffuse signal (gamma) events where you want to weight them to a point-source spectrum in radial offset bins.

Calling this class adds a column to the output table with the event-wise spectral-spatial weights, with column name weight_column. This implementation additionally adds the column output_table["fov_offset_bin"] and output_table["fov_offset_is_valid"] following the conventions of pyirf.binning.calculate_bin_indices, and the list of offset bin edges in output_table.meta["OFFSBINS"]

Attributes Summary

fov_offset_column

name of FOV radial offset column

Attributes Documentation

fov_offset_column#

name of FOV radial offset column