DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
NaiveRunSumProcessor.hpp
Go to the documentation of this file.
1
11
12#include <algorithm>
13
14#ifndef TPGLIBS_NAIVERUNSUMPROCESSOR_HPP_
15#define TPGLIBS_NAIVERUNSUMPROCESSOR_HPP_
16
17namespace tpglibs {
18
32
35
38
39 public:
45 naive_array_t process(const naive_array_t& signal) override;
46
52 void configure(const nlohmann::json& config, const int16_t* plane_numbers) override;
53};
54
55} // namespace tpglibs
56
57#endif // TPGLIBS_NAIVERUNSUMPROCESSOR_HPP_
Naive typed abstract signal processor.
std::array< int16_t, 16 > naive_array_t
The naive version uses a standard array instead of __m256i.
Naive signal processor: Calculates the running sum of the signal.
naive_array_t m_scale_factor
The S factor in the model equation.
void configure(const nlohmann::json &config, const int16_t *plane_numbers) override
Configures the R factor and S factor according to plane.
naive_array_t process(const naive_array_t &signal) override
Calculate and store the running sum.
naive_array_t m_running_sum
The RS in the model equation.
naive_array_t m_memory_factor
The R factor in the model equation.