LCOV - code coverage report
Current view: top level - fdreadoutlibs/src/crt - CRTGrenobleFrameProcessor.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 10 0
Test Date: 2025-12-21 13:07:08 Functions: 0.0 % 4 0

            Line data    Source code
       1              : /**
       2              :  * @file CRTGrenobleFrameProcessor.hpp CRTGrenoble specific Task based raw processor
       3              :  *
       4              :  * This is part of the DUNE DAQ , copyright 2023.
       5              :  * Licensing/copyright details are in the COPYING file that you should have
       6              :  * received with this code.
       7              :  */
       8              : 
       9              : #include "fdreadoutlibs/crt/CRTGrenobleFrameProcessor.hpp" // NOLINT(build/include)
      10              : 
      11              : namespace dunedaq {
      12              : namespace fdreadoutlibs {
      13              : 
      14            0 :     void CRTGrenobleFrameProcessor::conf(const appmodel::DataHandlerModule* /*conf*/)
      15              :     {
      16            0 :         TLOG() << "Registering processing tasks...";
      17            0 :         datahandlinglibs::TaskRawDataProcessorModel<types::CRTGrenobleTypeAdapter>::add_preprocess_task(std::bind(&CRTGrenobleFrameProcessor::timestamp_check, this, std::placeholders::_1));
      18            0 :     }
      19              : 
      20            0 :     void CRTGrenobleFrameProcessor::timestamp_check(types::CRTGrenobleTypeAdapter* fp)
      21              :     {
      22            0 :         static const uint64_t k_clock_frequency = 62500000; // NOLINT(build/unsigned)
      23            0 :         auto current_ts = fp->get_timestamp();
      24            0 :         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            0 :         if(current_ts > m_last_processed_daq_ts) m_last_processed_daq_ts = current_ts;
      27            0 :     }
      28              : 
      29              : } // namespace fdreadoutlibs
      30              : } // namespace dunedaq    
        

Generated by: LCOV version 2.0-1