EventLoader#

class ctapipe.irf.preprocessing.EventLoader(**kwargs: Any)[source]#

Bases: Component

Contains functions to load events and simulation information from a file and derive some additional columns needed for irf calculation.

Attributes Summary

Methods Summary

get_simulation_information(loader, obs_time)

load_preselected_events(chunk_size, obs_time)

make_derived_columns(events)

make_event_weights(events, spectrum, kind[, ...])

Attributes Documentation

classes = [<class 'ctapipe.irf.preprocessing.EventPreprocessor'>]#

Methods Documentation

get_simulation_information(loader: TableLoader, obs_time: Quantity) tuple[SimulatedEventsInfo, PowerLaw][source]#
load_preselected_events(chunk_size: int, obs_time: Quantity) tuple[QTable, int, dict][source]#
make_derived_columns(events: QTable) QTable[source]#
make_event_weights(events: QTable, spectrum: PowerLaw, kind: str, fov_offset_bins: Quantity | None = None) QTable[source]#