21namespace fdreadoutlibs {
29 TaskRawDataProcessorModel<types::DAPHNEEthStreamTypeAdapter>::conf(
conf);
53 uint64_t k_clock_frequency = 62500000;
55 uint16_t frame_tick_difference = tick_difference * fp->
get_num_frames();
56 TLOG_DEBUG(TLVL_FRAME_RECEIVED) <<
"Received DAPHNEEthStream frame timestamp value of " <<
m_current_ts <<
" ticks (..." << std::fixed << std::setprecision(8) << (static_cast<double>(
m_current_ts % (k_clock_frequency*1000)) /
static_cast<double>(k_clock_frequency)) <<
" sec)";
66 TLOG() <<
"*** Data Integrity ERROR *** Timestamp continuity is completely broken! "
67 <<
"Something is wrong with the FE source or with the configuration!";
void add_preprocess_task(Task &&task)
std::atomic< uint64_t > m_last_processed_daq_ts
void conf(const appmodel::DataHandlerModule *conf) override
Set the emulator mode, if active, timestamps of processed packets are overwritten with new ones.
void frame_error_check(frameptr)
timestamp_t m_previous_ts
std::atomic< int > m_ts_error_ctr
void timestamp_check(frameptr)
#define TLOG_DEBUG(lvl,...)
uint64_t get_timestamp() const
constexpr size_t get_num_frames() const
static const constexpr uint64_t expected_tick_difference