EventTypeFilter#

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

Bases: 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, PEDESTAL or 2, DARK_PEDESTAL or 3, ELECTRONIC_PEDESTAL or 4, SKY_PEDESTAL or 5, OTHER_CALIBRATION or 15, MUON or 16, HARDWARE_STEREO or 17, RANDOM_MONO or 18, DAQ or 24, SUBARRAY or 32, LONG_EVENT or 33, UNKNOWN or 255.

Methods Documentation

__call__(event)[source]#

Returns True if the event should be kept