diff --git a/km3io/daq.py b/km3io/daq.py index e9dba8162f3f7272ed84dedd5a80f2d9981ff90e..8694728b892e4878bd57b717a46405f558aeeca8 100644 --- a/km3io/daq.py +++ b/km3io/daq.py @@ -27,6 +27,9 @@ def get_rate(value): else: return MINIMAL_RATE_HZ * np.exp(value * RATE_FACTOR) +def get_number_udp_packets(value): + """Return the number of received UDP packets based on the dq_status value""" + return value & 0x7FFF class DAQReader: """Reader for DAQ ROOT files"""