GlobalPeakWindowSum#
- class ctapipe.image.extractor.GlobalPeakWindowSum(**kwargs: Any)[source]#
Bases:
ImageExtractor
Extractor which sums in a window about the peak from the global average waveform.
To reduce the influence of noise pixels, the average can be calculated only on the
pixel_fraction
brightest pixels. The “brightest” pixels are determined by sorting the waveforms by their maximum value.Attributes Summary
Apply the integration window correction.
Fraction of pixels to use for finding the integration window.
Define the shift of the integration window from the peak_index (peak_index - shift).
Define the width of the integration window.
Methods Summary
__call__
(waveforms, tel_id, ...)Call the relevant functions to fully extract the charge and time for the particular extractor.
Attributes Documentation
- apply_integration_correction#
Apply the integration window correction.
- pixel_fraction#
Fraction of pixels to use for finding the integration window. By default, the full camera is used. If fraction is smaller 1, only the brightest pixels will be averaged to find the peak position.
- window_shift#
Define the shift of the integration window from the peak_index (peak_index - shift).
- window_width#
Define the width of the integration window.
Methods Documentation
- __call__(waveforms, tel_id, selected_gain_channel, broken_pixels) DL1CameraContainer [source]#
Call the relevant functions to fully extract the charge and time for the particular extractor.
- Parameters:
- waveformsndarray
Waveforms stored in a numpy array of shape (n_channels, n_pix, n_samples).
- tel_idint
The telescope id. Used to obtain to correct traitlet configuration and instrument properties
- selected_gain_channelndarray
The channel selected in the gain selection, per pixel. Required in some cases to calculate the correct correction for the charge extraction.
- broken_pixelsndarray
Mask of broken pixels used for certain
ImageExtractor
types. Shape: (n_channels, n_pix)
- Returns:
- DL1CameraContainer:
extracted images and validity flags