|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Class for accessing raw WIB eth frames, as used in ProtoDUNE-II. More...
#include <DAPHNEEthFrame.hpp>
Classes | |
| struct | Header |
Public Types | |
| using | word_t = uint64_t |
Public Member Functions | |
| uint16_t | get_adc (int i) const |
| Get the ith ADC value in the frame. | |
| void | set_adc (int i, uint16_t val) |
Set the ith ADC value in the frame to val. | |
| uint64_t | get_timestamp () const |
| Get the starting 64-bit timestamp of the frame. | |
| void | set_timestamp (const uint64_t new_timestamp) |
| Set the starting 64-bit timestamp of the frame. | |
| uint8_t | get_channel () const |
| Get the channel identifier of the frame. | |
| void | set_channel (const uint8_t new_channel) |
| Set the channel identifier of the frame. | |
Public Attributes | |
| detdataformats::DAQEthHeader | daq_header |
| Header | header |
| word_t | adc_words [s_num_adc_words] |
Static Public Attributes | |
| static constexpr uint8_t | version = 1 |
| static constexpr int | s_bits_per_adc = 14 |
| static constexpr int | s_bits_per_word = 8 * sizeof(word_t) |
| static constexpr int | s_num_adcs = 1024 |
| static constexpr int | s_num_adc_words = s_num_adcs * s_bits_per_adc / s_bits_per_word |
Class for accessing raw WIB eth frames, as used in ProtoDUNE-II.
The canonical definition of the WIB format is given in EDMS document 2088713: https://edms.cern.ch/document/2088726/XXX, (XXX a stand-in for the doc version, e.g. 5)
Definition at line 38 of file DAPHNEEthFrame.hpp.
| using dunedaq::fddetdataformats::DAPHNEEthFrame::word_t = uint64_t |
Definition at line 42 of file DAPHNEEthFrame.hpp.
|
inline |
Get the ith ADC value in the frame.
The ADC words are 14 bits long, stored packed in the data structure. The order is:
Definition at line 5 of file DAPHNEEthFrame.hxx.
|
inline |
|
inline |
Get the starting 64-bit timestamp of the frame.
Definition at line 90 of file DAPHNEEthFrame.hpp.
|
inline |
Set the ith ADC value in the frame to val.
Definition at line 17 of file DAPHNEEthFrame.hxx.
|
inline |
Set the channel identifier of the frame.
Definition at line 99 of file DAPHNEEthFrame.hpp.
|
inline |
Set the starting 64-bit timestamp of the frame.
Definition at line 93 of file DAPHNEEthFrame.hpp.
| word_t dunedaq::fddetdataformats::DAPHNEEthFrame::adc_words[s_num_adc_words] |
Definition at line 75 of file DAPHNEEthFrame.hpp.
| detdataformats::DAQEthHeader dunedaq::fddetdataformats::DAPHNEEthFrame::daq_header |
Definition at line 73 of file DAPHNEEthFrame.hpp.
| Header dunedaq::fddetdataformats::DAPHNEEthFrame::header |
Definition at line 74 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 47 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 48 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 50 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 49 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 45 of file DAPHNEEthFrame.hpp.