km3pipe.io.clb

Pumps for the CLB data formats.

Module Contents

Classes

CLBPump() A pump for binary CLB files.
CLBHeader(byte_data=None, file_obj=None) Wrapper for the CLB Common Header binary format.
km3pipe.io.clb.log[source]
km3pipe.io.clb.UTC_TZ[source]
class km3pipe.io.clb.CLBPump[source]

Bases:km3pipe.core.Pump

A pump for binary CLB files.

configure(self)[source]
determine_packet_positions(self)[source]

Record the file pointer position of each frame

seek_to_packet(self, index)[source]

Move file pointer to the packet with given index.

next_blob(self)[source]

Generate next blob in file

get_blob(self, index)[source]

Return blob at given index.

process(self, blob)[source]
finish(self)[source]

Clean everything up

class km3pipe.io.clb.CLBHeader(byte_data=None, file_obj=None)[source]

Bases:object

Wrapper for the CLB Common Header binary format.

Args:
file_obj (file): The binary file, where the file pointer is at the
beginning of the header.
Attributes:
size (int): The size of the original DAQ byte representation.
size = 40[source]
km3pipe.io.clb.PMTData[source]