Skip to content
Snippets Groups Projects
Commit 47643539 authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Has UDP trailer

parent 84439695
No related branches found
No related tags found
1 merge request!7Summaryslice status
Pipeline #7845 failed
......@@ -29,7 +29,11 @@ def get_rate(value):
def get_number_udp_packets(value):
"""Return the number of received UDP packets based on the dq_status value"""
return value & 0x7FFF
return np.bitwise_and(value & 0x7FFF)
def has_udp_trailer(value)
"""Returns the UDP Trailer flag based on on the fifo field value"""
return np.any(np.bitwise_and(value, np.leftshift(1,31)))
class DAQReader:
"""Reader for DAQ ROOT files"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment