EventWeighter#
- class ctapipe.irf.event_weighter.EventWeighter(*args: t.Any, **kwargs: t.Any)[source]#
Bases:
ComponentCompute weights to go from source to target spectra.
Attributes Summary
name of energy column
If True, assume the source is diffuse.
Pre-defined source spectrum to reweight to.
name of output weight column
Methods Summary
__call__(events_table)Returns shallow copy of input table with a
weightcolumn addedAttributes 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