DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Class for accessing/holding raw CRT data from the 'Bern' panels ProtoDUNE-II VD. More...
#include <CRTBernFrame.hpp>
Classes | |
struct | CRTBernData |
Public Types | |
typedef uint64_t | word_t |
Public Member Functions | |
uint16_t | get_adc (int i_ch) const |
Get the adc value for channel i_ch. | |
void | set_adc (int i_ch, uint16_t val) |
Set the adc value for channel i_ch 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 also set the underlying ts0 to be consistent. | |
uint16_t | get_mac5 () const |
Get the MAC5 identifier of the frame. | |
void | set_mac5 (const uint16_t new_mac5) |
Set the MAC5 identifier of the frame. | |
uint16_t | get_flags () const |
Get the flags field of the CRTBernData. | |
void | set_flags (const uint16_t new_flags) |
Set the flags field of the CRTBernData. | |
uint16_t | get_lostcpu () const |
Get the lostcpu counter of the CRTBernData. | |
void | set_lostcpu (const uint16_t new_lostcpu) |
Set the lostcpu counter of the CRTBernData. | |
uint16_t | get_lostfpga () const |
Get the lostfpga counter of the CRTBernData. | |
void | set_lostfpga (const uint16_t new_lostfpga) |
Set the lostfpga counter of the CRTBernData. | |
uint32_t | get_ts0 () const |
Get the ts0 timestamp of the CRTBernData. | |
void | set_ts0 (const uint32_t new_ts0) |
Set the ts0 timestamp of the CRTBernData. | |
uint32_t | get_ts1 () const |
Get the ts1 timestamp of the CRTBernData. | |
void | set_ts1 (const uint32_t new_ts1) |
Set the ts1 timestamp of the CRTBernData. | |
uint32_t | get_coinc () const |
Get the coinc counter of the CRTBernData. | |
void | set_coinc (const uint32_t new_coinc) |
Set the coinc counter of the CRTBernData. | |
Public Attributes | |
detdataformats::DAQEthHeader | daq_header |
uint16_t | mac5 |
CRTBernData | data |
Static Public Attributes | |
static constexpr int | s_num_channels = 32 |
static constexpr uint64_t | s_DTS_ticks_per_second = 62'500'000 |
static constexpr uint64_t | s_ns_per_DTS_tick = 16 |
static constexpr int | s_bits_per_adc = 16 |
static constexpr int | s_bits_per_word = 8 * sizeof(word_t) |
static constexpr int | s_num_adcs = 64 |
Class for accessing/holding raw CRT data from the 'Bern' panels ProtoDUNE-II VD.
Definition at line 28 of file CRTBernFrame.hpp.
Definition at line 36 of file CRTBernFrame.hpp.
|
inline |
Get the adc value for channel i_ch.
Definition at line 71 of file CRTBernFrame.hpp.
|
inline |
Get the coinc counter of the CRTBernData.
Definition at line 193 of file CRTBernFrame.hpp.
|
inline |
Get the flags field of the CRTBernData.
Definition at line 122 of file CRTBernFrame.hpp.
|
inline |
Get the lostcpu counter of the CRTBernData.
Definition at line 136 of file CRTBernFrame.hpp.
|
inline |
Get the lostfpga counter of the CRTBernData.
Definition at line 150 of file CRTBernFrame.hpp.
|
inline |
|
inline |
Get the starting 64-bit timestamp of the frame.
Definition at line 92 of file CRTBernFrame.hpp.
|
inline |
Get the ts0 timestamp of the CRTBernData.
Definition at line 164 of file CRTBernFrame.hpp.
|
inline |
Get the ts1 timestamp of the CRTBernData.
Definition at line 178 of file CRTBernFrame.hpp.
|
inline |
Set the adc value for channel i_ch to val
.
Definition at line 82 of file CRTBernFrame.hpp.
|
inline |
Set the coinc counter of the CRTBernData.
Definition at line 200 of file CRTBernFrame.hpp.
|
inline |
Set the flags field of the CRTBernData.
Definition at line 129 of file CRTBernFrame.hpp.
|
inline |
Set the lostcpu counter of the CRTBernData.
Definition at line 143 of file CRTBernFrame.hpp.
|
inline |
Set the lostfpga counter of the CRTBernData.
Definition at line 157 of file CRTBernFrame.hpp.
|
inline |
Set the MAC5 identifier of the frame.
Definition at line 115 of file CRTBernFrame.hpp.
|
inline |
Set the starting 64-bit timestamp of the frame also set the underlying ts0 to be consistent.
Definition at line 100 of file CRTBernFrame.hpp.
|
inline |
Set the ts0 timestamp of the CRTBernData.
Definition at line 171 of file CRTBernFrame.hpp.
|
inline |
Set the ts1 timestamp of the CRTBernData.
Definition at line 185 of file CRTBernFrame.hpp.
detdataformats::DAQEthHeader dunedaq::fddetdataformats::CRTBernFrame::daq_header |
Definition at line 60 of file CRTBernFrame.hpp.
CRTBernData dunedaq::fddetdataformats::CRTBernFrame::data |
Definition at line 62 of file CRTBernFrame.hpp.
uint16_t dunedaq::fddetdataformats::CRTBernFrame::mac5 |
Definition at line 61 of file CRTBernFrame.hpp.
|
staticconstexpr |
Definition at line 42 of file CRTBernFrame.hpp.
|
staticconstexpr |
Definition at line 43 of file CRTBernFrame.hpp.
|
staticconstexpr |
Definition at line 39 of file CRTBernFrame.hpp.
|
staticconstexpr |
Definition at line 40 of file CRTBernFrame.hpp.
|
staticconstexpr |
Definition at line 44 of file CRTBernFrame.hpp.
|
staticconstexpr |
Definition at line 38 of file CRTBernFrame.hpp.