Skip to content
Snippets Groups Projects

Summaryslice status

Merged Johannes Schumann requested to merge summaryslice_status into master
All threads resolved!
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
+ 5
1
@@ -29,7 +29,11 @@ def get_rate(value):
@@ -29,7 +29,11 @@ def get_rate(value):
def get_number_udp_packets(value):
def get_number_udp_packets(value):
"""Return the number of received UDP packets based on the dq_status 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:
class DAQReader:
"""Reader for DAQ ROOT files"""
"""Reader for DAQ ROOT files"""
Loading