straxen.plugins.gps_syncing package
Submodules
straxen.plugins.gps_syncing.gps_syncing module
- class straxen.plugins.gps_syncing.gps_syncing.GpsSync[source]
Bases:
OverlapWindowPluginCorrect the event times to GPS time.
1. Finds the TTL GPS pulses coming into the AM from the gps module and their pairs coming from the module for the correspondent run. 2. Corrects the timestamp of all events by linearly interpolating between the previous and next sync pulses.
- compute_time_array(l_daq_sync, l_gps_sync, l_daq_evt)[source]
Function which computes for each event the corresponding GPS time.
- Parameters:
l_daq_sync – Unix time ns timestamps for the recorded gps pulses
l_gps_sync – Unix time ns timestamps for the GPS truth.
l_daq_evt – Unix time ns timestamps for the events.
- dtype: Union[tuple, np.dtype, immutabledict, dict] = [(('Start time since unix epoch [ns]', 'time'), <class 'numpy.int64'>), (('Exclusive end time since unix epoch [ns]', 'endtime'), <class 'numpy.int64'>), (('GPS absolute time [ns]', 't_gps'), <class 'numpy.int64'>)]
- gps_channel = 801
- gps_times_from_runid(run_id)[source]
Fetches the mongodb looking for the gps_sync collection for timestamps between the start and end times of a given run_id.
- gps_truth_vicinity
Dispatch on URL protocol.
unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.
- load_gps_array()[source]
Function which load GPS time information from data base and converts timestamps back into nanoseconds unix time.
- static match_gps_pulses_with_truth(gps_pulse_time, gps_truth_time, vicinity)[source]
Function which matches GPS truth from the file stored in the rundb with the corresponding GPS pulse recorded by the acquisition monitor.
- Parameters:
gps_pulse_time – Unix ns timestamps corresponding to GPS pulse starts
gps_truth_time – Unix ns timestamps of the GPS pulses
vicinity – +/- vicinity in [s] for which GPS pulse is matched with GPS truth.
- takes_config = immutabledict({'tpc_internal_delay': <straxen.config.url_config.URLConfig object>, 'gps_truth_vicinity': <straxen.config.url_config.URLConfig object>})
- tpc_internal_delay
Dispatch on URL protocol.
unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.
- class straxen.plugins.gps_syncing.gps_syncing.GpsSyncDAQVeto[source]
Bases:
GpsSyncPlugin which computes veto_intervals using GPS times.
Required to compute correctly total lifetime loss of experiment.
- child_plugin = True
- class straxen.plugins.gps_syncing.gps_syncing.GpsSync_mv[source]
Bases:
GpsSyncComputes absolute GPS time for mveto data.
- adc_threshold_nim_signal
Dispatch on URL protocol.
unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.
- dtype: Union[tuple, np.dtype, immutabledict, dict] = [(('Start time since unix epoch [ns]', 'time'), <class 'numpy.int64'>), (('Exclusive end time since unix epoch [ns]', 'endtime'), <class 'numpy.int64'>), (('GPS absolute time [ns]', 'time_sync_gps'), <class 'numpy.int64'>)]
- gps_channel = 1084
- takes_config = immutabledict({'tpc_internal_delay': <straxen.config.url_config.URLConfig object>, 'gps_truth_vicinity': <straxen.config.url_config.URLConfig object>, 'adc_threshold_nim_signal': <straxen.config.url_config.URLConfig object>})
- class straxen.plugins.gps_syncing.gps_syncing.GpsSync_nv[source]
Bases:
GpsSyncComputes absolute GPS time for nveto data.
- adc_threshold_nim_signal
Dispatch on URL protocol.
unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.
- dtype: Union[tuple, np.dtype, immutabledict, dict] = [(('Start time since unix epoch [ns]', 'time'), <class 'numpy.int64'>), (('Exclusive end time since unix epoch [ns]', 'endtime'), <class 'numpy.int64'>), (('GPS absolute time [ns]', 'time_sync_gps'), <class 'numpy.int64'>)]
- epsilon_offset_nv_gps_pulse
Dispatch on URL protocol.
unrecognized protocol returns identity inspired by dasks Dispatch and fsspec fs protocols.
- gps_channel = 813
- takes_config = immutabledict({'tpc_internal_delay': <straxen.config.url_config.URLConfig object>, 'gps_truth_vicinity': <straxen.config.url_config.URLConfig object>, 'adc_threshold_nim_signal': <straxen.config.url_config.URLConfig object>, 'epsilon_offset_nv_gps_pulse': <straxen.config.url_config.URLConfig object>})