DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CRTBernFrameProcessor.cpp
Go to the documentation of this file.
1
8
9#include "fdreadoutlibs/crt/CRTBernFrameProcessor.hpp" // NOLINT(build/include)
10
11namespace dunedaq {
12namespace fdreadoutlibs {
13
14void
21
22void
24{
25 static const uint64_t k_clock_frequency = 62500000; // NOLINT(build/unsigned)
26 auto current_ts = fp->get_timestamp();
27 TLOG_DEBUG(TLVL_FRAME_RECEIVED) << "Received CRTBern frame timestamp value of " << current_ts << " ticks (..."
28 << std::fixed << std::setprecision(8)
29 << (static_cast<double>(current_ts % (k_clock_frequency * 1000)) /
30 static_cast<double>(k_clock_frequency))
31 << " sec)"; // NOLINT
32
33 if (current_ts > m_last_processed_daq_ts)
34 m_last_processed_daq_ts = current_ts;
35}
36
37} // namespace fdreadoutlibs
38} // namespace dunedaq
@ TLVL_FRAME_RECEIVED
void timestamp_check(types::CRTBernTypeAdapter *fp)
void conf(const appmodel::DataHandlerModule *conf) override
Set the emulator mode, if active, timestamps of processed packets are overwritten with new ones.
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:116
#define TLOG(...)
Definition macro.hpp:21
The DUNE-DAQ namespace.