DRS4PedestalAndSpikeHeight#
- class lstcam_calib.tools.create_drs4_pedestal_file.DRS4PedestalAndSpikeHeight(**kwargs: Any)#
Bases:
Tool
Compute DRS4 pedestal coefficients and spike heights.
Attributes Summary
If True, write spike{1,2,3} mean, count, std for each capacitor.
Output file of pedestal baseline and spike heights (fits or hdf5 automatically selected depending on suffix)
If true, overwrite output without asking, else fail if output file already exists
Show progress bar during processing
Do not include last N samples in pedestal calculation
Do not include first N samples in pedestal calculation
Methods Summary
check_baseline_values
(baseline_mean)Check the values of the drs4 baseline for issues.
finish
()Compute and write-out calibration coefficients.
Calculate mean spike height for each gain, pixel.
setup
()Perform initial setup.
start
()Run main event loop.
Attributes Documentation
- aliases: StrDict = {('i', 'input-file'): 'LSTEventSource.input_url', ('m', 'max-events'): 'LSTEventSource.max_events', ('o', 'output-file'): 'DRS4PedestalAndSpikeHeight.output_file'}#
- classes: ClassesType = [<class 'ctapipe_io_lst.LSTEventSource'>]#
- flags: StrDict = {'full-statistics': ({'DRS4PedestalAndSpikeHeight': {'full_statistics': True}}, 'Whether to write the full statistics about spikes or not'), 'no-full-statistics': ({'DRS4PedestalAndSpikeHeight': {'full_statistics': False}}, 'set DRS4PedestalAndSpikeHeight.full_statistics=False'), 'no-overwrite': ({'DRS4PedestalAndSpikeHeight': {'overwrite': False}}, 'Fail if output file already exists'), 'no-progress': ({'DRS4PedestalAndSpikeHeight': {'progress_bar': False}}, 'Do not show a progress bar during event processing'), 'no-timelapse-correction': ({'LSTR0Corrections': {'apply_timelapse_correction': False}}, 'set LSTR0Corrections.apply_timelapse_correction=False'), 'overwrite': ({'DRS4PedestalAndSpikeHeight': {'overwrite': True}}, 'Overwrite output file if it exists'), 'progress': ({'DRS4PedestalAndSpikeHeight': {'progress_bar': True}}, 'Show a progress bar during event processing'), 'timelapse-correction': ({'LSTR0Corrections': {'apply_timelapse_correction': True}}, 'Whether to apply drs4 timelapse correction or not.')}#
- full_statistics#
If True, write spike{1,2,3} mean, count, std for each capacitor. Otherwise, only mean spike height for each gain, pixel is written
- output_file#
Output file of pedestal baseline and spike heights (fits or hdf5 automatically selected depending on suffix)
- overwrite#
If true, overwrite output without asking, else fail if output file already exists
- progress_bar#
Show progress bar during processing
- skip_samples_end#
Do not include last N samples in pedestal calculation
- skip_samples_front#
Do not include first N samples in pedestal calculation
Methods Documentation
- check_baseline_values(baseline_mean)#
Check the values of the drs4 baseline for issues.
In case of no EVBv5 data or no pre-calibration by EVBv6, we expect no negative and no small values.
In case of EVBv6 applied baseline corrections, values should be close to 0, but negative values are ok.
- finish()#
Compute and write-out calibration coefficients.
- mean_spike_height()#
Calculate mean spike height for each gain, pixel.
- setup()#
Perform initial setup.
- start()#
Run main event loop.