|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <DAPHNEFrame.hpp>
Classes | |
| struct | Header |
| struct | PeakDescriptorData |
Public Types | |
| using | word_t = uint32_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. | |
| uint8_t | get_channel () const |
| void | set_channel (uint8_t val) |
| uint64_t | get_timestamp () const |
| Get the 64-bit timestamp of the frame. | |
| void | set_timestamp (uint64_t ts) |
| bool | operator< (const DAPHNEFrame &other) const |
Public Attributes | |
| detdataformats::DAQHeader | daq_header |
| Header | header |
| word_t | adc_words [s_num_adc_words] |
| PeakDescriptorData | peaks_data |
Static Public Attributes | |
| static constexpr uint8_t | version = 2 |
| 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 |
| static constexpr std::size_t | s_expected_bytes |
Definition at line 33 of file DAPHNEFrame.hpp.
| using dunedaq::fddetdataformats::DAPHNEFrame::word_t = uint32_t |
Definition at line 36 of file DAPHNEFrame.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 DAPHNEFrame.hxx.
|
inline |
Definition at line 258 of file DAPHNEFrame.hpp.
|
inline |
Get the 64-bit timestamp of the frame.
Definition at line 262 of file DAPHNEFrame.hpp.
|
inline |
Definition at line 269 of file DAPHNEFrame.hpp.
|
inline |
Set the ith ADC value in the frame to val.
Definition at line 13 of file DAPHNEFrame.hxx.
|
inline |
Definition at line 259 of file DAPHNEFrame.hpp.
|
inline |
Definition at line 264 of file DAPHNEFrame.hpp.
| word_t dunedaq::fddetdataformats::DAPHNEFrame::adc_words[s_num_adc_words] |
Definition at line 280 of file DAPHNEFrame.hpp.
| detdataformats::DAQHeader dunedaq::fddetdataformats::DAPHNEFrame::daq_header |
Definition at line 278 of file DAPHNEFrame.hpp.
| Header dunedaq::fddetdataformats::DAPHNEFrame::header |
Definition at line 279 of file DAPHNEFrame.hpp.
| PeakDescriptorData dunedaq::fddetdataformats::DAPHNEFrame::peaks_data |
Definition at line 281 of file DAPHNEFrame.hpp.
|
staticconstexpr |
Definition at line 41 of file DAPHNEFrame.hpp.
|
staticconstexpr |
Definition at line 42 of file DAPHNEFrame.hpp.
|
staticconstexpr |
Definition at line 243 of file DAPHNEFrame.hpp.
|
staticconstexpr |
Definition at line 44 of file DAPHNEFrame.hpp.
|
staticconstexpr |
Definition at line 43 of file DAPHNEFrame.hpp.
|
staticconstexpr |
Definition at line 39 of file DAPHNEFrame.hpp.