DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CRTGrenobleFrameProcessor.cpp
Go to the documentation of this file.
1
9#include "fdreadoutlibs/crt/CRTGrenobleFrameProcessor.hpp" // NOLINT(build/include)
10
11namespace dunedaq {
12namespace fdreadoutlibs {
13
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 CRTGrenoble 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} // namespace fdreadoutlibs
30} // namespace dunedaq
void conf(const appmodel::DataHandlerModule *conf) override
Set the emulator mode, if active, timestamps of processed packets are overwritten with new ones.
void timestamp_check(types::CRTGrenobleTypeAdapter *fp)
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112
#define TLOG(...)
Definition macro.hpp:22
Including Qt Headers.