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 10 : REGISTER_NAIVEPROCESSOR_CREATOR("NaiveAbsRunSumProcessor", NaiveAbsRunSumProcessor)
14 :
15 0 : NaiveAbsRunSumProcessor::naive_array_t NaiveAbsRunSumProcessor::process(const naive_array_t& signal) {
16 0 : naive_array_t abs_signal;
17 :
18 0 : for (int i = 0; i < 16; i++) {
19 0 : abs_signal[i] = std::abs(signal[i]);
20 : }
21 :
22 0 : return NaiveRunSumProcessor::process(abs_signal);
23 : }
24 :
25 : } // namespace tpglibs
|