straxen.plugins.led_cal package
Submodules
straxen.plugins.led_cal.led_calibration module
Dear nT analyser, if you want to complain please contact:
- class straxen.plugins.led_cal.led_calibration.LEDCalibration[source]
Bases:
Plugin
Preliminary version, several parameters to set during commissioning. LEDCalibration returns: channel, time, dt, length, Area, amplitudeLED and amplitudeNOISE.
- The new variables are:
Area: Area computed in the given window, averaged over 6 windows that have the same starting sample and different end samples.
amplitudeLED: peak amplitude of the LED on run in the given window.
amplitudeNOISE: amplitude of the LED on run in a window far from the signal one.
- baseline_window
Dispatch on URL protocol.
unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.
- channel_list
Dispatch on URL protocol.
unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.
- compressor = 'zstd'
- compute(raw_records)[source]
The data for LED calibration are build for those PMT which belongs to channel list.
This is used for the different ligh levels. As defaul value all the PMTs are considered.
- dtype: tuple | dtype | immutabledict | dict = [('area', <class 'numpy.float32'>, 'Area averaged in integration windows'), ('amplitude_led', <class 'numpy.float32'>, 'Amplitude in LED window'), ('amplitude_noise', <class 'numpy.float32'>, 'Amplitude in off LED window'), ('channel', <class 'numpy.int16'>, 'Channel'), ('time', <class 'numpy.int64'>, 'Start time of the interval (ns since unix epoch)'), ('dt', <class 'numpy.int16'>, 'Time resolution in ns'), ('length', <class 'numpy.int32'>, 'Length of the interval in samples')]
- led_window
Dispatch on URL protocol.
unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.
- noise_window
Dispatch on URL protocol.
unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.
- rechunk_on_save = False
- takes_config = immutabledict({'baseline_window': <straxen.url_config.URLConfig object>, 'led_window': <straxen.url_config.URLConfig object>, 'noise_window': <straxen.url_config.URLConfig object>, 'channel_list': <straxen.url_config.URLConfig object>})
- class straxen.plugins.led_cal.led_calibration.nVetoExtTimings[source]
Bases:
Plugin
Plugin which computes the time difference delta_time from pulse timing of hitlets_nv to start time of raw_records which belong the hitlets_nv.
They are used as the external trigger timings.
- static calc_delta_time(ext_timings_nv_delta_time, pulses, hitlets_nv, nv_pmt_start, nv_pmt_stop)[source]
Numpy access with fancy index returns copy, not view This for-loop is required to substitute in one by one.
- channel_map
Dispatch on URL protocol.
unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.
- compressor = 'zstd'
- takes_config = immutabledict({'channel_map': <straxen.url_config.URLConfig object>})