11#ifndef TPGLIBS_NAIVEFRUGALPEDESTALSUBTRACTPROCESSOR_HPP_
12#define TPGLIBS_NAIVEFRUGALPEDESTALSUBTRACTPROCESSOR_HPP_
45 void configure(
const nlohmann::json& config,
const int16_t* plane_numbers)
override;
Naive signal processor: Estimates the pedestal and subtracts.
void configure(const nlohmann::json &config, const int16_t *plane_numbers) override
Configure the accumulation limit according to plane number.
naive_array_t process(const naive_array_t &signal) override
Estimate the pedestal using the given signal and subtract.
naive_array_t m_pedestal
Vector of estimated pedestals for each channel.
int16_t m_accum_limit
Count limit before committing to a pedestal shift.
naive_array_t m_accum
Vector of counts that a channel's signal was above or below m_pedestal.
Naive typed abstract signal processor.
std::array< int16_t, 16 > naive_array_t
The naive version uses a standard array instead of __m256i.