DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
NaiveFrugalPedestalSubtractProcessor.hpp
Go to the documentation of this file.
1
10
11#ifndef TPGLIBS_NAIVEFRUGALPEDESTALSUBTRACTPROCESSOR_HPP_
12#define TPGLIBS_NAIVEFRUGALPEDESTALSUBTRACTPROCESSOR_HPP_
13
14namespace tpglibs {
15
25
28
30 int16_t m_accum_limit{10};
31
32 public:
38 naive_array_t process(const naive_array_t& signal) override;
39
45 void configure(const nlohmann::json& config, const int16_t* plane_numbers) override;
46};
47
48} // namespace tpglibs
49
50#endif // TPGLIBS_NAIVEFRUGALPEDESTALSUBTRACTPROCESSOR_HPP_
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.