EventWeighter#

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

Bases: Component

Compute weights to go from source to target spectra.

Attributes Summary

energy_column

name of energy column

is_diffuse

If True, assume the source is diffuse.

target_spectrum_name

Pre-defined source spectrum to reweight to.

weight_column

name of output weight column

Methods Summary

__call__(events_table)

Returns shallow copy of input table with a weight column added

Attributes Documentation

energy_column#

name of energy column

is_diffuse#

If True, assume the source is diffuse.

target_spectrum_name#

Pre-defined source spectrum to reweight to.

weight_column#

name of output weight column

Methods Documentation

__call__(events_table: Table | QTable) → QTable[source]#

Returns shallow copy of input table with a weight column added