straxen.plugins.hitlets_nv package

Submodules

straxen.plugins.hitlets_nv.hitlets_nv module

class straxen.plugins.hitlets_nv.hitlets_nv.nVETOHitlets[source]

Bases: Plugin

Plugin which computes the nveto hitlets and their parameters.

Hitlets are an extension of regular hits. They include the left and right extension. The plugin does the following:

  1. Generate hitlets which includes these sub-steps:
    • Apply left and right hit extension and concatenate

    overlapping hits. * Generate temp. hitelts and look for their waveforms in their corresponding records. * Split hitlets if they satisfy the set criteria.

  2. Compute the properties of the hitlets.

Note:

Hitlets are getting chopped if extended in not recorded regions.

channel_map

Dispatch on URL protocol.

unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.

chunk_target_size_mb = 2000
compressor = 'zstd'
compute(records_nv, start, end)[source]
data_kind: Union[str, immutabledict, dict] = 'hitlets_nv'
depends_on: Union[str, tuple, list] = 'records_nv'
dtype: Union[tuple, np.dtype, immutabledict, dict] = [(('Start time since unix epoch [ns]', 'time'), <class 'numpy.int64'>), (('Length of the interval in samples', 'length'), <class 'numpy.int32'>), (('Width of one sample [ns]', 'dt'), <class 'numpy.int16'>), (('Channel/PMT number', 'channel'), <class 'numpy.int16'>), (('Total hit area in pe', 'area'), <class 'numpy.float32'>), (('Maximum of the PMT pulse in pe/sample', 'amplitude'), <class 'numpy.float32'>), (('Position of the Amplitude in ns (minus "time")', 'time_amplitude'), <class 'numpy.int16'>), (('Width (in ns) of the central 50% area of the hitlet', 'range_50p_area'), <class 'numpy.float32'>), (('Width (in ns) of the central 80% area of the hitlet', 'range_80p_area'), <class 'numpy.float32'>), (('Position of the 25% area decile [ns]', 'left_area'), <class 'numpy.float32'>), (('Position of the 10% area decile [ns]', 'low_left_area'), <class 'numpy.float32'>)]
gain_model_nv

Dispatch on URL protocol.

unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.

hit_min_amplitude_nv

Dispatch on URL protocol.

unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.

min_split_nv

Dispatch on URL protocol.

unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.

min_split_ratio_nv

Dispatch on URL protocol.

unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.

parallel: Union[str, bool] = 'process'
provides: Union[str, tuple, list] = ('hitlets_nv',)
rechunk_on_save = True
save_outside_hits_nv

Dispatch on URL protocol.

unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.

setup()[source]

Hook if plugin wants to do something on initialization.

takes_config = immutabledict({'save_outside_hits_nv': <straxen.config.url_config.URLConfig object>, 'hit_min_amplitude_nv': <straxen.config.url_config.URLConfig object>, 'min_split_nv': <straxen.config.url_config.URLConfig object>, 'min_split_ratio_nv': <straxen.config.url_config.URLConfig object>, 'channel_map': <straxen.config.url_config.URLConfig object>, 'gain_model_nv': <straxen.config.url_config.URLConfig object>})

Module contents