DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
AVX signal processor: Estimates the pedestal and subtracts. More...
#include <AVXFrugalPedestalSubtractProcessor.hpp>
Public Member Functions | |
__m256i | process (const __m256i &signal) override |
Estimate the pedestal using the given signal and subtract. | |
void | configure (const nlohmann::json &config, const int16_t *plane_numbers) override |
Configure the accumulation limit according to plane number. | |
![]() | |
![]() | |
virtual | ~AbstractProcessor ()=default |
void | set_next_processor (std::shared_ptr< AbstractProcessor< __m256i > > next_processor) |
Setter for next processor. | |
Protected Attributes | |
__m256i | m_pedestal = _mm256_set1_epi16(0x4000) |
Vector of estimated pedestals for each channel. | |
__m256i | m_accum = _mm256_setzero_si256() |
Vector of counts that a channel's signal was above or below m_pedestal. | |
int16_t | m_accum_limit {10} |
Count limit before committing to a pedestal shift. | |
Additional Inherited Members | |
![]() | |
using | signal_type_t |
Signal type to process on. General __m256i. | |
AVX signal processor: Estimates the pedestal and subtracts.
Given a history of signals, this estimates the pedestal by shifting the current estimate when it is wrong in the same direction m_accum_limit times. For example, if the input signal is greater (less) than the estimated pedestal 10 (configurable) times in a row, then increment (decrement) the pedestal.
Definition at line 22 of file AVXFrugalPedestalSubtractProcessor.hpp.
|
overridevirtual |
Configure the accumulation limit according to plane number.
config | JSON config for the accumulation limits per plane. |
plane_numbers | Array of plane numbers. Gives the channels to apply the accumulation limit. |
Implements tpglibs::AbstractProcessor< __m256i >.
Definition at line 15 of file AVXFrugalPedestalSubtractProcessor.cpp.
|
overridevirtual |
Estimate the pedestal using the given signal and subtract.
signal | A vector of channel signals. |
Reimplemented from tpglibs::AVXProcessor.
Definition at line 19 of file AVXFrugalPedestalSubtractProcessor.cpp.
|
protected |
Vector of counts that a channel's signal was above or below m_pedestal.
Definition at line 28 of file AVXFrugalPedestalSubtractProcessor.hpp.
|
protected |
Count limit before committing to a pedestal shift.
Definition at line 31 of file AVXFrugalPedestalSubtractProcessor.hpp.
|
protected |
Vector of estimated pedestals for each channel.
Definition at line 25 of file AVXFrugalPedestalSubtractProcessor.hpp.