straxen.plugins.records_he package

Submodules

straxen.plugins.records_he.records_he module

class straxen.plugins.records_he.records_he.PulseProcessingHighEnergy[source]

Bases: PulseProcessing

High energy channels: attenuated signals of the top PMT-array

Split raw_records into:
  • (tpc) records

  • aqmon_records

  • pulse_counts

For TPC records, apply basic processing:
  1. Flip, baseline, and integrate the waveform

  2. Apply software HE veto after high-energy peaks.

  3. Find hits, apply linear filter, and zero outside hits.

pulse_counts holds some average information for the individual PMT channels for each chunk of raw_records. This includes e.g. number of recorded pulses, lone_pulses (pulses which do not overlap with any other pulse), or mean values of baseline and baseline rms channel.

child_plugin = True
compressor = 'zstd'
compute(raw_records_he, start, end)[source]
config: Dict
data_kind: Union[str, immutabledict, dict] = {'pulse_counts_he': 'pulse_counts_he', 'records_he': 'records_he'}
depends_on: tuple = 'raw_records_he'
deps: Dict
dtype: Union[tuple, np.dtype, immutabledict, dict]
hit_min_amplitude_he

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, strax.Chunk]
n_he_pmts

Dispatch on URL protocol.

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

provides: Tuple[str, ...] = ('records_he', 'pulse_counts_he')
rechunk_on_save = immutabledict({'records_he': False, 'pulse_counts_he': True})
record_length

Dispatch on URL protocol.

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

run_i: int
run_id: str
save_when = 2
setup()[source]

Hook if plugin wants to do something on initialization.

takes_config = immutabledict({'hev_gain_model': <straxen.url_config.URLConfig object>, 'baseline_samples': <straxen.url_config.URLConfig object>, 'tail_veto_threshold': <straxen.url_config.URLConfig object>, 'tail_veto_duration': <straxen.url_config.URLConfig object>, 'tail_veto_resolution': <straxen.url_config.URLConfig object>, 'tail_veto_pass_fraction': <straxen.url_config.URLConfig object>, 'tail_veto_pass_extend': <straxen.url_config.URLConfig object>, 'max_veto_value': <straxen.url_config.URLConfig object>, 'pmt_pulse_filter': <straxen.url_config.URLConfig object>, 'save_outside_hits': <straxen.url_config.URLConfig object>, 'n_tpc_pmts': <straxen.url_config.URLConfig object>, 'check_raw_record_overlaps': <straxen.url_config.URLConfig object>, 'allow_sloppy_chunking': <straxen.url_config.URLConfig object>, 'hit_min_amplitude': <straxen.url_config.URLConfig object>, 'n_he_pmts': <straxen.url_config.URLConfig object>, 'record_length': <straxen.url_config.URLConfig object>, 'hit_min_amplitude_he': <straxen.url_config.URLConfig object>})

Module contents