straxen.plugins.afterpulses package

Submodules

straxen.plugins.afterpulses.afterpulse_processing module

class straxen.plugins.afterpulses.afterpulse_processing.LEDAfterpulseProcessing[source]

Bases: Plugin

LED_window_left

Dispatch on URL protocol.

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

LED_window_right

Dispatch on URL protocol.

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

baseline_samples

Dispatch on URL protocol.

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

compressor = 'zstd'
compute(raw_records)[source]
config: Dict
data_kind: str | immutabledict | dict = 'afterpulses'
depends_on: tuple = 'raw_records'
deps: Dict
dtype: tuple | dtype | immutabledict | dict
gain_model

Dispatch on URL protocol.

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

hit_min_amplitude

Dispatch on URL protocol.

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

hit_min_height_over_noise

Dispatch on URL protocol.

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

infer_dtype()[source]

Return dtype of computed data; used only if no dtype attribute defined.

input_buffer: Dict[str, Chunk]
n_tpc_pmts

Dispatch on URL protocol.

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

parallel: str | bool = 'process'
provides: tuple = ('afterpulses',)
rechunk_on_save = True
run_i: int
run_id: str
save_outside_hits

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({'gain_model': <straxen.url_config.URLConfig object>, 'n_tpc_pmts': <straxen.url_config.URLConfig object>, 'LED_window_left': <straxen.url_config.URLConfig object>, 'LED_window_right': <straxen.url_config.URLConfig object>, 'baseline_samples': <straxen.url_config.URLConfig object>, 'hit_min_amplitude': <straxen.url_config.URLConfig object>, 'hit_min_height_over_noise': <straxen.url_config.URLConfig object>, 'save_outside_hits': <straxen.url_config.URLConfig object>})
straxen.plugins.afterpulses.afterpulse_processing.dtype_afterpulses()[source]
straxen.plugins.afterpulses.afterpulse_processing.find_ap(hits, records, LED_window_left, LED_window_right, hit_left_extension, hit_right_extension)[source]
straxen.plugins.afterpulses.afterpulse_processing.get_sample_area_quantile(data, quantile, baseline_fpart)[source]

Returns first sample index in hit where integrated area of hit is above total area.

Module contents