WaveformNsbTuner

class lstchain.image.modifier.WaveformNsbTuner(added_nsb, pulse_template, charge_spe_cumulative_pdf, pre_computed_multiplicity=10)

Bases: object

Handles the injection of additional NSB pulses in waveforms.

Methods Summary

initialise_waveforms(waveform, dt, tel_id)

Creates an array of nsb only waveforms later used to inject additional nsb in events.

Methods Documentation

initialise_waveforms(waveform, dt, tel_id)

Creates an array of nsb only waveforms later used to inject additional nsb in events. Called once for each telescope id at first encounter in self._tune_nsb_on_waveform_precomputed.

Parameters:
waveform: ndarray

Waveform used to know the number of pixels and time samples for a given telescope id

dt: `astropy.units.Quantity`

Time between samples

tel_id: `int`

Telescope identifier for which nsb waveforms are generated