Onsite Computation of DRS4 Time Coefficients#

Wrapper for the create_drs4_time_file tool.

Onsite script to create DRS4 time correction file.

It handles the interaction with the onsite data tree and the database.

usage: lstcam_calib_onsite_create_drs4_time_file [-h] -r RUN_NUMBER
                                                 [-f {fits.gz,fits,h5}]
                                                 [-v PROD_VERSION]
                                                 [-p PEDESTAL_RUN]
                                                 [-s STATISTICS] [-b BASE_DIR]
                                                 [--r0-dir R0_DIR]
                                                 [--sub-run SUB_RUN]
                                                 [--config CONFIG] [-y]
                                                 [--no-pro-symlink]
                                                 [--flatfield-heuristic]
                                                 [--no-flatfield-heuristic]
                                                 [--no-progress] [--use-db]
                                                 [--db-url DB_URL]
                                                 [--apply-drs4-corrections]
                                                 [--apply-pedestal-correction]
                                                 [--db-name DB_NAME]

Named Arguments#

--use-db

Write metadata in TCU data-base

Default: False

--apply-drs4-corrections

Apply offline DRS4 correction

Default: False

--apply-pedestal-correction

Apply offline pedestal correction

Default: False

required arguments#

-r, --run-number

Run number if the flat-field data

optional arguments#

-f, --output-format

Possible choices: fits.gz, fits, h5

output format

Default: 'fits.gz'

-v, --prod-version

Version of the production

Default: 'v0.2.1.dev63+gdaf635b'

-p, --pedestal-run

Pedestal run to be used. If None, it looks for the pedestal run of the date of the FF data.

-s, --statistics

Number of events for the flat-field and pedestal statistics

Default: 20000

-b, --base-dir

Root dir for the output directory tree

Default: /fefs/onsite/data/lst-pipe/LSTN-01

--r0-dir

Root dir for the input r0 tree. By default, <base_dir>/R0 will be used

--sub-run

sub-run to be processed.

Default: 0

--config

Config file

Default: /usr/local/lib/python3.11/site-packages/lstcam_calib/resources/catA_camera_calibration_param.yml

-y, --yes

Do not ask interactively for permissions, assume true

Default: False

--no-pro-symlink

Do not update the pro dir symbolic link, assume true

Default: False

--flatfield-heuristic

If given, try to identify flatfield events from the raw data. Should be used only for data from before 2022

--no-flatfield-heuristic

If given, do not to identify flatfield events from the raw data. Should be used only for data from before 2022

--no-progress

Do not display a progress bar during event processing

Default: False

--db-url

Connection to calibration data_base.

--db-name

Name of mongo calibration db.