km3pipe.io.daq¶
Pumps for the DAQ data formats.
Module Contents¶
Classes¶
TimesliceParser() |
Preliminary parser for DAQTimeslice |
DAQPump() |
A pump for binary DAQ files. |
DAQProcessor() |
|
DAQPreamble(byte_data=None, file_obj=None) |
Wrapper for the JDAQPreamble binary format. |
DAQHeader(byte_data=None, file_obj=None) |
Wrapper for the JDAQHeader binary format. |
DAQSummaryslice(file_obj) |
Wrapper for the JDAQSummarySlice binary format. |
DAQEvent(file_obj) |
Wrapper for the JDAQEvent binary format. |
TMCHData(file_obj, version=None) |
Monitoring Channel data. |
TMCHRepump() |
Takes a IO_MONIT raw dump and replays it. |
DMMonitor(host, port=1302, base=’‘) |
A class which provides access to the Detector Manager parameters. |
Functions¶
is_3dshower(trigger_mask) |
|
is_mxshower(trigger_mask) |
|
is_3dmuon(trigger_mask) |
-
class
km3pipe.io.daq.TimesliceParser[source]¶ Bases:
km3pipe.core.ModulePreliminary parser for DAQTimeslice
-
class
km3pipe.io.daq.DAQPump[source]¶ Bases:
km3pipe.core.PumpA pump for binary DAQ files.
-
class
km3pipe.io.daq.DAQProcessor[source]¶ Bases:
km3pipe.core.Module
-
class
km3pipe.io.daq.DAQPreamble(byte_data=None, file_obj=None)[source]¶ Bases:
objectWrapper for the JDAQPreamble 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. data_type (int): The data type of the following frame. The coding is
stored in the
DATA_TYPESdictionary:101: 'DAQSuperFrame' 201: 'DAQSummaryFrame' 1001: 'DAQTimeslice' 2001: 'DAQSummaryslice' 10001: 'DAQEvent'
-
class
km3pipe.io.daq.DAQHeader(byte_data=None, file_obj=None)[source]¶ Bases:
objectWrapper for the JDAQHeader 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.
-
class
km3pipe.io.daq.DAQSummaryslice(file_obj)[source]¶ Bases:
objectWrapper for the JDAQSummarySlice binary format.
- Args:
- file_obj (file): The binary file, where the file pointer is at the
- beginning of the header.
- Attributes:
n_summary_frames (int): The number of summary frames. summary_frames (dict): The PMT rates for each DOM. The key is the DOM
identifier and the corresponding value is a sorted list of PMT rates in [Hz].dom_rates (dict): The overall DOM rate for each DOM.
-
class
km3pipe.io.daq.DAQEvent(file_obj)[source]¶ Bases:
objectWrapper for the JDAQEvent binary format.
- Args:
- file_obj (file): The binary file, where the file pointer is at the
- Attributes:
trigger_counter (int): Incremental identifier of the occurred trigger. trigger_mask (int): The trigger type(s) satisfied. overlays (int): Number of merged events. n_triggered_hits (int): Number of hits satisfying the trigger conditions. n_snapshot_hits (int): Number of snapshot hits. triggered_hits (list): A list of triggered hits
(dom_id, pmt_id, tdc_time, tot, (trigger_mask,))- snapshot_hits (list): A list of snapshot hits
- (dom_id, pmt_id, tdc_time, tot)
-
class
km3pipe.io.daq.TMCHData(file_obj, version=None)[source]¶ Bases:
objectMonitoring Channel data.
-
class
km3pipe.io.daq.TMCHRepump[source]¶ Bases:
km3pipe.core.PumpTakes a IO_MONIT raw dump and replays it.