EventTypeFilter

class ctapipe.utils.EventTypeFilter(**kwargs: Any)[source]

Bases: ctapipe.core.component.Component

Check that an event has one of the allowed types

Attributes Summary

allowed_types

The allowed types.

Methods Summary

__call__(event)

Returns True if the event should be kept

Attributes Documentation

allowed_types

The allowed types. Set to None to allow all types.Possible values: FLATFIELD or 0, SINGLE_PE or 1, SKY_PEDESTAL or 2, DARK_PEDESTAL or 3, ELECTRONIC_PEDESTAL or 4, OTHER_CALIBRATION or 15, MUON or 16, HARDWARE_STEREO or 17, DAQ or 24, SUBARRAY or 32, UNKNOWN or 255.

Methods Documentation

__call__(event)[source]

Returns True if the event should be kept