km3pipe.io.daq
¶
Pumps for the DAQ data formats.
Module Contents¶
Classes¶
Preliminary parser for DAQTimeslice |
|
A pump for binary DAQ files. |
|
A pump for binary DAQ files. Deprecated! |
|
The module which can be attached to the pipeline |
|
Wrapper for the JDAQPreamble binary format. |
|
Wrapper for the JDAQHeader binary format. |
|
Wrapper for the JDAQSummarySlice binary format. |
|
Wrapper for the JDAQEvent binary format. |
|
Monitoring Channel data. |
|
Takes a IO_MONIT raw dump and replays it. |
|
A class which provides access to the Detector Manager parameters. |
Attributes¶
- class km3pipe.io.daq.TimesliceParser(name=None, **parameters)[source]¶
Preliminary parser for DAQTimeslice
- class km3pipe.io.daq.RePump(name=None, **parameters)[source]¶
A pump for binary DAQ files.
This pump can be used to replay raw dumps e.g. created with the
daqsample
tool. It creates the same structures as thekp.io.ch.CHPump
and thus suited to test online processing pipelines with offline files.
- class km3pipe.io.daq.DAQPump(name=None, **parameters)[source]¶
A pump for binary DAQ files. Deprecated!
- class km3pipe.io.daq.DAQProcessor(name=None, **parameters)[source]¶
The module which can be attached to the pipeline
- class km3pipe.io.daq.DAQPreamble(byte_data=None, file_obj=None)[source]¶
Wrapper for the JDAQPreamble binary format.
- Parameters:
- byte_databytes (optional)
The binary file, where the file pointer is at the beginning of the header.
- file_objfile (optional)
The binary file, where the file pointer is at the beginning of the header.
- Attributes:
- sizeint
The size of the original DAQ byte representation.
- data_typeint
The data type of the following frame. The coding is stored in the
DATA_TYPES
.
- class km3pipe.io.daq.DAQHeader(byte_data=None, file_obj=None)[source]¶
Wrapper for the JDAQHeader binary format.
- Parameters:
- byte_databytes (optional)
The binary file, where the file pointer is at the beginning of the header.
- file_objfile (optional)
The binary file, where the file pointer is at the beginning of the header.
- Attributes:
- sizeint
The size of the original DAQ byte representation.
- class km3pipe.io.daq.DAQSummaryslice(file_obj, legacy=False)[source]¶
Wrapper for the JDAQSummarySlice binary format.
- Parameters:
- file_objfile (optional)
The binary file, where the file pointer is at the beginning of the header.
- Attributes:
- n_summary_framesint
The number of summary frames.
- summary_framesdict
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_ratesdict
The overall DOM rate for each DOM.
- class km3pipe.io.daq.DAQEvent(file_obj, legacy=False)[source]¶
Wrapper for the JDAQEvent binary format.
- Parameters:
- file_objfile
The binary file, where the file pointer is at the beginning of the header.
- Attributes:
- trigger_counterint
Incremental identifier of the occurred trigger.
- trigger_maskint
The trigger type(s) satisfied.
- overlaysint
Number of merged events.
- n_triggered_hitsint
Number of hits satisfying the trigger conditions.
- n_snapshot_hitsint
Number of snapshot hits.
- triggered_hitsnp.recarray
Array of triggered hits (fields: dom_id, pmt_id, tdc_time, tot, trigger_mask)
- snapshot_hitsnp.recarray
A list of snapshot hits (fields: dom_id, pmt_id, tdc_time, tot)
- class km3pipe.io.daq.TMCHRepump(name=None, **parameters)[source]¶
Takes a IO_MONIT raw dump and replays it.
- class km3pipe.io.daq.DMMonitor(host, port=1302, base='')[source]¶
A class which provides access to the Detector Manager parameters.
Examples
>>> import km3pipe as kp >>> dmm = kp.io.daq.DMMonitor('192.168.0.120', base='clb/outparams') >>> session = dmm.start_session('test', ['wr_mu/1/0','wr_mu/1/1']) >>> for values in session: print(values)