DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
NaiveAbsRunSumProcessor.cpp
Go to the documentation of this file.
1
10
11namespace tpglibs {
12
13REGISTER_NAIVEPROCESSOR_CREATOR("NaiveAbsRunSumProcessor", NaiveAbsRunSumProcessor)
14
16 naive_array_t abs_signal;
17
18 for (int i = 0; i < 16; i++) {
19 abs_signal[i] = std::abs(signal[i]);
20 }
21
22 return NaiveRunSumProcessor::process(abs_signal);
23}
24
25} // namespace tpglibs
#define REGISTER_NAIVEPROCESSOR_CREATOR(processor_name, processor_class)
Factory registration macro.
Naive signal processor: Calculates the running sum of the signal's absolute value.
std::array< int16_t, 16 > naive_array_t
The naive version uses a standard array instead of __m256i.
naive_array_t process(const naive_array_t &signal) override
Calculate and store the running sum.