LCOV - code coverage report
Current view: top level - tpglibs/src - NaiveAbsRunSumProcessor.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 100.0 % 6 6
Test Date: 2025-12-21 13:07:08 Functions: 66.7 % 3 2

            Line data    Source code
       1              : /**
       2              :  * @file NaiveAbsRunSumProcessor.cpp
       3              :  *
       4              :  * @copyright This is part of the DUNE DAQ Software Suite, copyright 2020.
       5              :  * Licensing/copyright details are in the COPYING file that you should have
       6              :  * received with this code.
       7              :  */
       8              : 
       9              : #include "tpglibs/NaiveAbsRunSumProcessor.hpp"
      10              : 
      11              : namespace tpglibs {
      12              : 
      13           15 : REGISTER_NAIVEPROCESSOR_CREATOR("NaiveAbsRunSumProcessor", NaiveAbsRunSumProcessor)
      14              : 
      15            2 : NaiveAbsRunSumProcessor::naive_array_t NaiveAbsRunSumProcessor::process(const naive_array_t& signal) {
      16            2 :   naive_array_t abs_signal;
      17              : 
      18           34 :   for (int i = 0; i < 16; i++) {
      19           32 :     abs_signal[i] = std::abs(signal[i]);
      20              :   }
      21              : 
      22            2 :   return NaiveRunSumProcessor::process(abs_signal);
      23              : }
      24              : 
      25              : } // namespace tpglibs
        

Generated by: LCOV version 2.0-1