ThresholdGainSelector#
- class ctapipe.calib.camera.gainselection.ThresholdGainSelector(**kwargs: Any)[source]#
 Bases:
GainSelectorSelect gain channel according to a maximum threshold value.
Attributes Summary
Threshold value in waveform sample units.
Methods Summary
select_channel(waveforms)Abstract method to be defined by a GainSelector subclass.
Attributes Documentation
- threshold#
 Threshold value in waveform sample units. If a waveform contains a sample above this threshold, use the low gain channel for that pixel.
Methods Documentation
- select_channel(waveforms)[source]#
 Abstract method to be defined by a GainSelector subclass.
Call the relevant functions to decide on the gain channel used for each pixel.
- Parameters:
 - waveformsndarray
 Waveforms stored in a numpy array of shape (n_chan, n_pix, n_samples).
- Returns:
 - selected_gain_channelndarray
 Gain channel to use for each pixel Shape: n_pix Dtype: int8