integration_correction¶

ctapipe.image.
integration_correction
(reference_pulse_shape, reference_pulse_sample_width_ns, sample_width_ns, window_width, window_shift)[source]¶ Obtain the correction for the integration window specified.
For any integration window applied to a noiseless unit pulse, the correction (returned by this function) multiplied by the integration result should equal 1.
This correction therefore corrects for the Cherenkov signal that may be outside the integration window, and removes any dependence of the resulting image on the window_width and window_shift parameters. However, the width and shift of the window should still be optimised for the pulse finding and to minimise the noise included in the integration.
 Parameters
 reference_pulse_shapendarray
Numpy array containing the pulse shape for each gain channel
 reference_pulse_sample_width_nsfloat
The width of the reference pulse sample time bin in ns
 sample_width_nsfloat
The width of the waveform sample time bin in ns
 window_widthint
Width of the integration window (in units of n_samples)
 window_shiftint
Shift to before the peak for the start of the integration window (in units of n_samples)
 Returns
 correctionndarray
Value of the integration correction for each gain channel