DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CRTBernFrameProcessor.cpp
Go to the documentation of this file.
1
9#include "fdreadoutlibs/crt/CRTBernFrameProcessor.hpp" // NOLINT(build/include)
10
11namespace dunedaq {
12namespace fdreadoutlibs {
13
15 {
16 TLOG() << "Registering processing tasks...";
18 }
19
21 {
22 static const uint64_t k_clock_frequency = 62500000; // NOLINT(build/unsigned)
23 auto current_ts = fp->get_timestamp();
24 TLOG_DEBUG(TLVL_FRAME_RECEIVED) << "Received CRTBern frame timestamp value of " << current_ts << " ticks (..." << std::fixed << std::setprecision(8) << (static_cast<double>(current_ts % (k_clock_frequency*1000)) / static_cast<double>(k_clock_frequency)) << " sec)";// NOLINT
25
26 if(current_ts > m_last_processed_daq_ts) m_last_processed_daq_ts = current_ts;
27 }
28
29
30} // namespace fdreadoutlibs
31} // namespace dunedaq
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:112
#define TLOG(...)
Definition macro.hpp:22
Including Qt Headers.