EventPreprocessor#
- class ctapipe.io.EventPreprocessor(*args: t.Any, **kwargs: t.Any)[source]#
Bases:
ComponentSelects or generates features and filters tables of events.
In normal use, one only has to specify the
feature_setoption, which will generate features supports standard use cases. For advanced usage, you can setfeature_set=customand pass in a configuredFeatureGeneratorand set thefeaturesproperty of this class with the columns you to retain in the output table.In the
FeatureGeneratorused internally, you have access to several additional functions useful for DL2 processing:Attributes Summary
Prefix of the reco
_energycolumnSet up the FeatureGenerator.features, output features, and quality criteria based on standard use cases.Specify 'custom' if you want to set your own in your config file.
Features (columns) to retain in the output.
Prefix of the classifier
_predictioncolumnPrefix of the
_altand_azreco geometry columnsMethods Summary
__call__(table)Return new table with only the columns in features.
Attributes Documentation
- energy_reconstructor#
Prefix of the reco
_energycolumn
- feature_set#
Set up the FeatureGenerator.features, output features, and quality criteria based on standard use cases.Specify ‘custom’ if you want to set your own in your config file. If this is set to any value other than ‘custom’, the feature properties of the configuration file you pass in will be overridden.
- features#
Features (columns) to retain in the output. These can include columns generated by the FeatureGenerator. If you set these, make sure feature_set=custom.
- gammaness_reconstructor#
Prefix of the classifier
_predictioncolumn
- geometry_reconstructor#
Prefix of the
_altand_azreco geometry columns
Methods Documentation