ShowerProcessor

class ctapipe.reco.ShowerProcessor(**kwargs)[source]

Bases: ctapipe.core.component.Component

Needs DL1_PARAMETERS as input. Should be run after ImageProcessor which produces such information.

For the moment it only supports the reconstruction of the shower geometry using ctapipe.reco.HillasReconstructor.

It is planned to support also energy reconstruction and particle type classification.

Methods Summary

__call__(event)

Perform the full shower geometry reconstruction on the input event.

process_shower_geometry(event)

Record the reconstructed shower geometry into the ArrayEventContainer.

reconstruct_geometry(event[, default])

Perform shower reconstruction.

Methods Documentation

__call__(event: ctapipe.containers.ArrayEventContainer)[source]

Perform the full shower geometry reconstruction on the input event.

Afterwards, optionally perform energy estimation and/or particle classification (currently these two operations are not yet supported).

Parameters
eventctapipe.containers.ArrayEventContainer

Top-level container for all event information.

process_shower_geometry(event: ctapipe.containers.ArrayEventContainer)[source]

Record the reconstructed shower geometry into the ArrayEventContainer.

reconstruct_geometry(event, default=ctapipe.containers.ReconstructedGeometryContainer:                            alt: reconstructed altitude [deg]                     alt_uncert: reconstructed altitude uncertainty [deg]                             az: reconstructed azimuth [deg]                      az_uncert: reconstructed azimuth uncertainty [deg]                         core_x: reconstructed x coordinate of the core position                                 [m]                         core_y: reconstructed y coordinate of the core position                                 [m]                    core_uncert: uncertainty of the reconstructed core position                                 [m]                          h_max: reconstructed height of the shower maximum [m]                   h_max_uncert: uncertainty of h_max [m]                       is_valid: direction validity flag. True if the shower                                 directionwas properly reconstructed by the                                 algorithm              average_intensity: average intensity of the intensities used for                                 reconstruction                goodness_of_fit: measure of algorithm success (if fit)                        tel_ids: list of tel_ids used if stereo, or None if Mono)[source]

Perform shower reconstruction.

Parameters
eventcontainer

A ctapipe event container

default: container

The default ‘ReconstructedGeometryContainer’ which is filled with NaNs.

Returns
——-
ReconstructedGeometryContainer:

direction in the sky with uncertainty, core position on the ground with uncertainty, h_max with uncertainty, is_valid boolean for successfull reconstruction, average intensity of the intensities used for reconstruction, measure of algorithm success (if fit), list of tel_ids used if stereo, or None if Mono