|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
struct for accessing raw WIB eth frames, as used in ProtoDUNE-II More...
#include <WIBEthFrame.hpp>
Classes | |
| struct | WIBEthHeader |
Public Types | |
| using | word_t = uint64_t |
Public Member Functions | |
| uint16_t | get_adc (int i_channel, int i_sample=0) const |
| Get the i_channel-th ADC value in the i_sample-th time sample. | |
| void | set_adc (int i_channel, int i_sample, uint16_t adc_val) |
Set the i_channel-th ADC value in the i_sample-th time sample to adc_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. | |
| bool | operator< (const WIBEthFrame &other) const |
Public Attributes | |
| detdataformats::DAQEthHeader | daq_header |
| WIBEthHeader | header |
| word_t | adc_words [s_time_samples_per_frame][s_num_adc_words_per_ts] |
Static Public Attributes | |
| static constexpr int | s_bits_per_adc = 14 |
| static constexpr int | s_bits_per_word = 8 * sizeof(word_t) |
| static constexpr int | s_time_samples_per_frame = 64 |
| static constexpr int | s_channels_per_half_femb = 64 |
| static constexpr int | s_half_fembs_per_frame = 1 |
| static constexpr int | s_num_channels = s_channels_per_half_femb * s_half_fembs_per_frame |
| static constexpr int | s_num_adc_words_per_ts = s_num_channels * s_bits_per_adc / s_bits_per_word |
| static constexpr size_t | s_expected_bytes |
struct 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/2088713
Definition at line 39 of file WIBEthFrame.hpp.
| using dunedaq::fddetdataformats::WIBEthFrame::word_t = uint64_t |
Definition at line 43 of file WIBEthFrame.hpp.
|
inline |
Get the i_channel-th ADC value in the i_sample-th time sample.
The order is: 64 channels repeated for 64 time samples The ADC words are 14 bits long
Definition at line 5 of file WIBEthFrame.hxx.
|
inline |
|
inline |
Get the starting 64-bit timestamp of the frame.
Definition at line 94 of file WIBEthFrame.hpp.
|
inline |
Definition at line 105 of file WIBEthFrame.hpp.
|
inline |
Set the i_channel-th ADC value in the i_sample-th time sample to adc_val.
Definition at line 15 of file WIBEthFrame.hxx.
|
inline |
Set the channel identifier of the frame.
Definition at line 103 of file WIBEthFrame.hpp.
|
inline |
Set the starting 64-bit timestamp of the frame.
Definition at line 97 of file WIBEthFrame.hpp.
| word_t dunedaq::fddetdataformats::WIBEthFrame::adc_words[s_time_samples_per_frame][s_num_adc_words_per_ts] |
Definition at line 111 of file WIBEthFrame.hpp.
| detdataformats::DAQEthHeader dunedaq::fddetdataformats::WIBEthFrame::daq_header |
Definition at line 109 of file WIBEthFrame.hpp.
| WIBEthHeader dunedaq::fddetdataformats::WIBEthFrame::header |
Definition at line 110 of file WIBEthFrame.hpp.
|
staticconstexpr |
Definition at line 45 of file WIBEthFrame.hpp.
|
staticconstexpr |
Definition at line 46 of file WIBEthFrame.hpp.
|
staticconstexpr |
Definition at line 48 of file WIBEthFrame.hpp.
|
staticconstexpr |
Definition at line 77 of file WIBEthFrame.hpp.
|
staticconstexpr |
Definition at line 49 of file WIBEthFrame.hpp.
|
staticconstexpr |
Definition at line 51 of file WIBEthFrame.hpp.
|
staticconstexpr |
Definition at line 50 of file WIBEthFrame.hpp.
|
staticconstexpr |
Definition at line 47 of file WIBEthFrame.hpp.