FlasherFlatFieldCalculator#

class lstcam_calib.pixel.flatfield.FlasherFlatFieldCalculator(**kwargs: Any)#

Bases: FlatFieldCalculator

Calculates flat-field parameters from flasher data.

Based on the best algorithm described by S. Fegan in MST-CAM-TN-0060 (eq. 19) Pixels are defined as outliers on the base of a cut on the pixel charge median over the full sample distribution and the pixel signal time inside the waveform time.

Attributes Summary

charge_median_cut_outliers

Interval of accepted charge values (fraction with respect to camera median value)

charge_std_cut_outliers

Interval (number of std) of accepted charge standard deviation around camera median value

sigma_clipping_iterations

Number of iterations for the sigma clipping outlier removal

sigma_clipping_max_sigma

max_sigma value for the sigma clipping outlier removal

time_cut_outliers

Interval (in waveform samples) of accepted time values

Methods Summary

calculate_relative_gain(event)

Calculate the flatfield statistical values.

calculate_relative_gain_results(...)

Calculate and return the sample statistics.

calculate_time_results(trace_time, ...)

Calculate and return the time results.

collect_sample(charge, pixel_mask, arrival_time)

Collect the sample data.

setup_sample_buffers(waveform, sample_size)

Initialize sample buffers.

store_results(event)

Store statistical results in monitoring container.

Attributes Documentation

charge_median_cut_outliers#

Interval of accepted charge values (fraction with respect to camera median value)

charge_std_cut_outliers#

Interval (number of std) of accepted charge standard deviation around camera median value

sigma_clipping_iterations#

Number of iterations for the sigma clipping outlier removal

sigma_clipping_max_sigma#

max_sigma value for the sigma clipping outlier removal

time_cut_outliers#

Interval (in waveform samples) of accepted time values

Methods Documentation

calculate_relative_gain(event)#

Calculate the flatfield statistical values.

Result is filled into fill mon.tel[tel_id].flatfield container.

Parameters:
eventgeneral event container
Returns: True if the mon.tel[tel_id].flatfield is updated, False otherwise
calculate_relative_gain_results(event_median, trace_integral, masked_pixels_of_sample)#

Calculate and return the sample statistics.

calculate_time_results(trace_time, masked_pixels_of_sample, time_start, trigger_time)#

Calculate and return the time results.

collect_sample(charge, pixel_mask, arrival_time)#

Collect the sample data.

setup_sample_buffers(waveform, sample_size)#

Initialize sample buffers.

store_results(event)#

Store statistical results in monitoring container.

Parameters:
eventgeneral event container