DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
WIBEthUnpacker.cpp File Reference
#include "fddetdataformats/WIBEthFrame.hpp"
#include "daqdataformats/Fragment.hpp"
#include <cstdint>
#include <pybind11/numpy.h>
Include dependency graph for WIBEthUnpacker.cpp:

Go to the source code of this file.

Namespaces

namespace  dunedaq
 Including Qt Headers.
 
namespace  dunedaq::rawdatautils
 
namespace  dunedaq::rawdatautils::wibeth
 

Functions

uint32_t dunedaq::rawdatautils::wibeth::get_n_frames (daqdataformats::Fragment const &frag)
 Gets number of WIBEthFrames in a fragment.
 
py::array_t< uint16_t > dunedaq::rawdatautils::wibeth::np_array_adc_data (void *data, uint32_t n_frames)
 Unpacks data containing WIBEthFrames into a numpy array with the ADC values and dimension (number of WIBEthFrames, 64) Warning: It doesn't check that n_frames is a sensible value (can read out of bounds)
 
py::array_t< uint64_t > dunedaq::rawdatautils::wibeth::np_array_timestamp_data (void *data, uint32_t n_frames)
 Unpacks data containing WIBEthFrames into a numpy array with the timestamps with dimension (number of WIBEthFrames) Warning: It doesn't check that n_frames is a sensible value (can read out of bounds)
 
py::array_t< uint16_t > dunedaq::rawdatautils::wibeth::np_array_adc (daqdataformats::Fragment const &frag)
 Unpacks a Fragment containing WIBEthFrames into a numpy array with the ADC values and dimension (number of WIBEthFrames in the Fragment, 64)
 
py::array_t< uint64_t > dunedaq::rawdatautils::wibeth::np_array_timestamp (daqdataformats::Fragment const &frag)
 Unpacks the timestamps in a Fragment containing WIBFrames into a numpy array with dimension (number of WIBEthFrames in the Fragment)