straxen.plugins.events_nv package

Submodules

straxen.plugins.events_nv.event_positions_nv module

class straxen.plugins.events_nv.event_positions_nv.nVETOEventPositions[source]

Bases: Plugin

Plugin which computes the interaction position in the nveto as an azimuthal angle.

compressor = 'zstd'
compute(events_nv, hitlets_nv)[source]
config: Dict
data_kind: str | immutabledict | dict = 'events_nv'
depends_on: tuple = ('events_nv', 'hitlets_nv')
deps: Dict
dtype: tuple | dtype | immutabledict | dict
infer_dtype()[source]

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

input_buffer: Dict[str, Chunk]
nveto_pmt_position_map

Dispatch on URL protocol.

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

position_max_time_nv

Dispatch on URL protocol.

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

provides: tuple = ('event_positions_nv',)
run_i: int
run_id: str
setup()[source]

Hook if plugin wants to do something on initialization.

takes_config = immutabledict({'position_max_time_nv': <straxen.url_config.URLConfig object>, 'nveto_pmt_position_map': <straxen.url_config.URLConfig object>})

straxen.plugins.events_nv.events_nv module

straxen.plugins.events_nv.events_nv.find_veto_events(hitlets: ndarray, coincidence_level: int, resolving_time: int, left_extension: int, event_number_key: str = 'event_number_nv', n_channel: int = 120) Tuple[ndarray, ndarray][source]

Function which find the veto events as a nfold concidence in a given resolving time window. All hitlets which touch the event window contribute.

Parameters:
  • hitlets – Hitlets which shall be used for event creation.

  • coincidence_level – int, coincidence level.

  • resolving_time – int, resolving window for coincidence in ns.

  • left_extension – int, left event extension in ns.

  • event_number_key – str, field name for the event number

  • n_channel – int, number of channels in detector.

Returns:

events, hitelt_ids_per_event

class straxen.plugins.events_nv.events_nv.nVETOEvents[source]

Bases: OverlapWindowPlugin

Plugin which computes the boundaries of veto events.

channel_map

Dispatch on URL protocol.

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

compressor = 'zstd'
compute(hitlets_nv, start, end)[source]
config: Dict
data_kind: str | immutabledict | dict = 'events_nv'
depends_on: tuple = 'hitlets_nv'
deps: Dict
dtype: tuple | dtype | immutabledict | dict
event_left_extension_nv

Dispatch on URL protocol.

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

event_min_hits_nv

Dispatch on URL protocol.

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

event_resolving_time_nv

Dispatch on URL protocol.

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

events_seen = 0
get_window_size()[source]

Return the required window size in nanoseconds.

infer_dtype()[source]

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

input_buffer: Dict[str, Chunk]
provides: tuple = ('events_nv',)
run_i: int
run_id: str
takes_config = immutabledict({'event_left_extension_nv': <straxen.url_config.URLConfig object>, 'event_resolving_time_nv': <straxen.url_config.URLConfig object>, 'event_min_hits_nv': <straxen.url_config.URLConfig object>, 'channel_map': <straxen.url_config.URLConfig object>})

straxen.plugins.events_nv.events_sync_nv module

class straxen.plugins.events_nv.events_sync_nv.nVETOEventsSync[source]

Bases: OverlapWindowPlugin

Plugin which computes time stamps which are synchronized with the TPC.

Uses delay set in the DAQ.

compute(events_nv, detector_time_offsets)[source]
config: Dict
data_kind: str | immutabledict | dict
delay_field_name = 'time_offset_nv'
depends_on: tuple = ('events_nv', 'detector_time_offsets')
deps: Dict
dtype: tuple | dtype | immutabledict | dict
get_window_size()[source]

Return the required window size in nanoseconds.

infer_dtype()[source]

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

input_buffer: Dict[str, Chunk]
provides: tuple = 'events_sync_nv'
run_i: int
run_id: str
save_when = 1

Module contents