DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Naive signal processor: Passes signals above a threshold. More...
#include <NaiveThresholdProcessor.hpp>
Public Member Functions | |
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. | |
![]() | |
![]() | |
virtual | ~AbstractProcessor ()=default |
void | set_next_processor (std::shared_ptr< AbstractProcessor< std::array< int16_t, 16 > > > next_processor) |
Setter for next processor. | |
Private Attributes | |
naive_array_t | m_threshold |
Vector of thresholds to apply. | |
Additional Inherited Members | |
![]() | |
using | naive_array_t = std::array<int16_t, 16> |
The naive version uses a standard array instead of __m256i. | |
![]() | |
using | signal_type_t |
Signal type to process on. General __m256i. | |
Naive signal processor: Passes signals above a threshold.
Definition at line 17 of file NaiveThresholdProcessor.hpp.
|
overridevirtual |
Configures thresholds according to plane numbers.
config | JSON containing thresholds for the 3 planes. |
plane_numbers | Array of plane numbers. Gives the channels to apply the appropriate thresholds. |
Implements tpglibs::AbstractProcessor< std::array< int16_t, 16 > >.
Definition at line 15 of file NaiveThresholdProcessor.cpp.
|
overridevirtual |
Masks channels with signals below threshold.
signal | Vector of channel signals to process. |
Reimplemented from tpglibs::NaiveProcessor.
Definition at line 24 of file NaiveThresholdProcessor.cpp.
|
private |
Vector of thresholds to apply.
Definition at line 19 of file NaiveThresholdProcessor.hpp.