DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
NaiveThresholdProcessor.hpp
Go to the documentation of this file.
1
10
11#ifndef TPGLIBS_NAIVETHRESHOLDPROCESSOR_HPP_
12#define TPGLIBS_NAIVETHRESHOLDPROCESSOR_HPP_
13
14namespace tpglibs {
15
20
21 public:
27 naive_array_t process(const naive_array_t& signal) override;
28
34 void configure(const nlohmann::json& config, const int16_t* plane_numbers) override;
35};
36
37} // namespace tpglibs
38
39#endif // TPGLIBS_NAIVETHRESHOLDPROCESSOR_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: Passes signals above a threshold.
naive_array_t m_threshold
Vector of thresholds to apply.
naive_array_t process(const naive_array_t &signal) override
Masks channels with signals below threshold.
void configure(const nlohmann::json &config, const int16_t *plane_numbers) override
Configures thresholds according to plane numbers.