ThresholdGainSelector

class ctapipe.calib.camera.gainselection.ThresholdGainSelector(**kwargs)[source]

Bases: ctapipe.calib.camera.gainselection.GainSelector

Select gain channel according to a maximum threshold value.

Attributes Summary

threshold

A float trait.

Methods Summary

select_channel(waveforms)

Abstract method to be defined by a GainSelector subclass.

Attributes Documentation

threshold

A float trait.

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