diff --git a/km3io/daq.py b/km3io/daq.py index f7bb48b16b20e5246e0d3d91fef03e39fb481f43..3356e0135225b019475d24ce9e62fccb47ea8aee 100644 --- a/km3io/daq.py +++ b/km3io/daq.py @@ -4,6 +4,11 @@ import numba as nb TIMESLICE_FRAME_BASKET_CACHE_SIZE = 23 * 1024**2 # [byte] SUMMARYSLICE_FRAME_BASKET_CACHE_SIZE = 523 * 1024**2 # [byte] + +# Parameters for PMT rate conversions, since the rates in summary slices are +# stored as a single byte to save space. The values from 0-255 can be decoded +# using the `get_rate(value)` function, which will yield the actual rate +# in Hz. MINIMAL_RATE_HZ = 2.0e3 MAXIMAL_RATE_HZ = 2.0e6 RATE_FACTOR = np.log(MAXIMAL_RATE_HZ / MINIMAL_RATE_HZ) / 255