straxen.plugins.peaklets_he package

Submodules

straxen.plugins.peaklets_he.peaklet_classification_he module

class straxen.plugins.peaklets_he.peaklet_classification_he.PeakletClassificationHighEnergy[source]

Bases: PeakletClassification

High energy channels: attenuated signals of the top PMT-array Classify peaklets as unknown, S1, or S2.

child_plugin = True
compute(peaklets_he)[source]
config: Dict
data_kind: Union[str, immutabledict, dict]
depends_on: tuple = 'peaklets_he'
deps: Dict
input_buffer: Dict[str, strax.Chunk]
provides: str | tuple = ('peaklet_classification_he',)
run_i: int
run_id: str

straxen.plugins.peaklets_he.peaklets_he module

class straxen.plugins.peaklets_he.peaklets_he.PeakletsHighEnergy[source]

Bases: Peaklets

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

Split records into:
  • peaklets

  • lone_hits

Peaklets are very aggressively split peaks such that we are able to find S1-S2s even if they are close to each other. (S2) Peaks that are split into too many peaklets will be merged later on.

To get Peaklets from records apply/do:
  1. Hit finding

  2. Peak finding

  3. Peak splitting using the natural breaks algorithm

  4. Compute the digital sum waveform

Lone hits are all hits which are outside of any peak. The area of lone_hits includes the left and right hit extension, except the extension overlaps with any peaks or other hits.

child_plugin = True
compute(records_he, start, end)[source]
config: Dict
data_kind: Dict[str, str] | str = 'peaklets_he'
depends_on: tuple = 'records_he'
deps: Dict
dtype: Union[tuple, np.dtype, immutabledict, dict]
he_channel_offset

Dispatch on URL protocol.

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

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]
le_to_he_amplification

Dispatch on URL protocol.

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

n_he_pmts

Dispatch on URL protocol.

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

property n_tpc_pmts
peak_min_pmts_he

Dispatch on URL protocol.

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

provides: Tuple[str, ...] | str = ('peaklets_he',)
run_i: int
run_id: str
saturation_correction_on_he

Dispatch on URL protocol.

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

save_when = 2
setup()[source]

Hook if plugin wants to do something on initialization.

sum_waveform_top_array = False
takes_config = immutabledict({'peaklet_gap_threshold': <straxen.url_config.URLConfig object>, 'peak_left_extension': <straxen.url_config.URLConfig object>, 'peak_right_extension': <straxen.url_config.URLConfig object>, 'peak_min_pmts': <straxen.url_config.URLConfig object>, 'peak_split_gof_threshold': <straxen.url_config.URLConfig object>, 'peak_split_filter_wing_width': <straxen.url_config.URLConfig object>, 'peak_split_min_area': <straxen.url_config.URLConfig object>, 'peak_split_iterations': <straxen.url_config.URLConfig object>, 'diagnose_sorting': <straxen.url_config.URLConfig object>, 'gain_model': <straxen.url_config.URLConfig object>, 'tight_coincidence_window_left': <straxen.url_config.URLConfig object>, 'tight_coincidence_window_right': <straxen.url_config.URLConfig object>, 'n_tpc_pmts': <straxen.url_config.URLConfig object>, 'n_top_pmts': <straxen.url_config.URLConfig object>, 'sum_waveform_top_array': <straxen.url_config.URLConfig object>, 'saturation_correction_on': <straxen.url_config.URLConfig object>, 'saturation_reference_length': <straxen.url_config.URLConfig object>, 'saturation_min_reference_length': <straxen.url_config.URLConfig object>, 'peaklet_max_duration': <straxen.url_config.URLConfig object>, 'channel_map': <straxen.url_config.URLConfig object>, 'hit_min_amplitude': <straxen.url_config.URLConfig object>, 'n_he_pmts': <straxen.url_config.URLConfig object>, 'he_channel_offset': <straxen.url_config.URLConfig object>, 'le_to_he_amplification': <straxen.url_config.URLConfig object>, 'peak_min_pmts_he': <straxen.url_config.URLConfig object>, 'saturation_correction_on_he': <straxen.url_config.URLConfig object>, 'hit_min_amplitude_he': <straxen.url_config.URLConfig object>})

Module contents