Class for accessing raw WIB eth frames, as used in ProtoDUNE-II.
More...
#include <WIBEthFrame.hpp>
|
| 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.
|
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/2088713
Definition at line 38 of file WIBEthFrame.hpp.
◆ word_t
◆ get_adc()
| uint16_t dunedaq::fddetdataformats::WIBEthFrame::get_adc |
( |
int | i_channel, |
|
|
int | i_sample = 0 ) const |
|
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.
6{
7
8
9 return static_cast<uint16_t>(
12}
◆ get_channel()
| uint8_t dunedaq::fddetdataformats::WIBEthFrame::get_channel |
( |
| ) |
const |
|
inline |
Get the channel identifier of the frame.
Definition at line 97 of file WIBEthFrame.hpp.
◆ get_timestamp()
| uint64_t dunedaq::fddetdataformats::WIBEthFrame::get_timestamp |
( |
| ) |
const |
|
inline |
Get the starting 64-bit timestamp of the frame.
Definition at line 91 of file WIBEthFrame.hpp.
◆ set_adc()
| void dunedaq::fddetdataformats::WIBEthFrame::set_adc |
( |
int | i_channel, |
|
|
int | i_sample, |
|
|
uint16_t | adc_val ) |
|
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.
◆ set_channel()
| void dunedaq::fddetdataformats::WIBEthFrame::set_channel |
( |
const uint8_t | new_channel | ) |
|
|
inline |
Set the channel identifier of the frame.
Definition at line 100 of file WIBEthFrame.hpp.
100{
header.channel = new_channel; }
◆ set_timestamp()
| void dunedaq::fddetdataformats::WIBEthFrame::set_timestamp |
( |
const uint64_t | new_timestamp | ) |
|
|
inline |
Set the starting 64-bit timestamp of the frame.
Definition at line 94 of file WIBEthFrame.hpp.
◆ adc_words
◆ daq_header
◆ header
◆ s_bits_per_adc
| int dunedaq::fddetdataformats::WIBEthFrame::s_bits_per_adc = 14 |
|
staticconstexpr |
◆ s_bits_per_word
| int dunedaq::fddetdataformats::WIBEthFrame::s_bits_per_word = 8 * sizeof(word_t) |
|
staticconstexpr |
◆ s_channels_per_half_femb
| int dunedaq::fddetdataformats::WIBEthFrame::s_channels_per_half_femb = 64 |
|
staticconstexpr |
◆ s_half_fembs_per_frame
| int dunedaq::fddetdataformats::WIBEthFrame::s_half_fembs_per_frame = 1 |
|
staticconstexpr |
◆ s_num_adc_words_per_ts
◆ s_num_channels
◆ s_time_samples_per_frame
| int dunedaq::fddetdataformats::WIBEthFrame::s_time_samples_per_frame = 64 |
|
staticconstexpr |
The documentation for this class was generated from the following files:
- /github/workspace/dunedaq/sourcecode/fddetdataformats/include/fddetdataformats/WIBEthFrame.hpp
- /github/workspace/dunedaq/sourcecode/fddetdataformats/include/fddetdataformats/detail/WIBEthFrame.hxx