DRS4TimelapseFitter#

class lstcam_calib.tools.create_drs4_timelapse_file.DRS4TimelapseFitter(**kwargs: Any)#

Bases: Tool

Tool to fit the dt curve coefficients.

This tool is the third and final tool used to perform dt curve fitting. It runs on the output of lstcam_calib_create_drs4_dt_file from which it computes the dt curve fit parameters, either for each individual pixel or per batch (old or new) of drs4 chips.

Attributes Summary

aliases

flags

group_by

This options determines how the fits are performed.

input_path

A path Trait for input/output files.

mean_threshold_old

DRS4 chips with a higher mean value than this at dt=10ms are classified as 'old' chips

name

output_path

Output file of drs4 time lapse correction (fits or hdf5 automatically selected dipending on suffix)

plot_output_path

PDF file with plots of baseline vs dt and fit results

progress

A boolean (True, False) trait.

t0_fixed

Whether to hold the t0 parameter fixed in the fit.

t0_new

Fixed t0 value for new batch DRS4 chips.

t0_old

Fixed t0 value for old batch DRS4 chips.

Methods Summary

finish()

Store output.

setup()

Set up the tool.

start()

Fit data of each pixel.

Attributes Documentation

aliases: StrDict = {'group-by': 'DRS4TimelapseFitter.group_by', 't0-new': 'DRS4TimelapseFitter.t0_new', 't0-old': 'DRS4TimelapseFitter.t0_old', ('i', 'input-file'): 'DRS4TimelapseFitter.input_path', ('o', 'output-file'): 'DRS4TimelapseFitter.output_path', ('p', 'plot-output'): 'DRS4TimelapseFitter.plot_output_path'}#
flags: StrDict = {'no-progress': ({'DRS4TimelapseFitter': {'progress': False}}, "don't show a progress bar during event processing"), 'no-t0-fixed': ({'DRS4TimelapseFitter': {'t0_fixed': False}}, 'Have t0 as free parameter in the timelapse fit'), 'progress': ({'DRS4TimelapseFitter': {'progress': True}}, 'show a progress bar during event processing'), 't0-fixed': ({'DRS4TimelapseFitter': {'t0_fixed': True}}, 'Keep t0 fixed for the timelapse fit')}#
group_by#

This options determines how the fits are performed. If ‘pixel’, one fit is performed per pixel/channel combination. (1855 * 2). If ‘batch’, one fit is performed per batch of drs4 chips (1 or 2). This also influences the output data format.

input_path#

A path Trait for input/output files.

Attributes:
exists: boolean or None

If True, path must exist, if False path must not exist

directory_ok: boolean

If False, path must not be a directory

file_ok: boolean

If False, path must not be a file

mean_threshold_old#

DRS4 chips with a higher mean value than this at dt=10ms are classified as ‘old’ chips

name: str | Unicode[str, str | bytes] = 'lstcam_calib_create_drs4_dt_file'#
output_path#

Output file of drs4 time lapse correction (fits or hdf5 automatically selected dipending on suffix)

plot_output_path#

PDF file with plots of baseline vs dt and fit results

progress#

A boolean (True, False) trait.

t0_fixed#

Whether to hold the t0 parameter fixed in the fit.

t0_new#

Fixed t0 value for new batch DRS4 chips.

t0_old#

Fixed t0 value for old batch DRS4 chips.

Methods Documentation

finish()#

Store output.

setup()#

Set up the tool.

This method runs after the configuration and command line options have been parsed.

Here the tool should construct all Components, open files, etc.

start()#

Fit data of each pixel.