DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
tpglibs
include
tpglibs
NaiveRunSumProcessor.hpp
Go to the documentation of this file.
1
8
9
#include "
tpglibs/NaiveFactory.hpp
"
10
#include "
tpglibs/NaiveUtils.hpp
"
11
12
#include <algorithm>
13
14
#ifndef TPGLIBS_NAIVERUNSUMPROCESSOR_HPP_
15
#define TPGLIBS_NAIVERUNSUMPROCESSOR_HPP_
16
17
namespace
tpglibs
{
18
29
class
NaiveRunSumProcessor
:
public
NaiveProcessor
{
31
naive_array_t
m_memory_factor
;
32
34
naive_array_t
m_scale_factor
;
35
37
naive_array_t
m_running_sum
;
38
39
public
:
45
naive_array_t
process
(
const
naive_array_t
& signal)
override
;
46
52
void
configure
(
const
nlohmann::json& config,
const
int16_t* plane_numbers)
override
;
53
};
54
55
}
// namespace tpglibs
56
57
#endif
// TPGLIBS_NAIVERUNSUMPROCESSOR_HPP_
NaiveFactory.hpp
NaiveUtils.hpp
tpglibs::NaiveProcessor
Naive typed abstract signal processor.
Definition
NaiveProcessor.hpp:19
tpglibs::NaiveProcessor::naive_array_t
std::array< int16_t, 16 > naive_array_t
The naive version uses a standard array instead of __m256i.
Definition
NaiveProcessor.hpp:22
tpglibs::NaiveRunSumProcessor
Naive signal processor: Calculates the running sum of the signal.
Definition
NaiveRunSumProcessor.hpp:29
tpglibs::NaiveRunSumProcessor::m_scale_factor
naive_array_t m_scale_factor
The S factor in the model equation.
Definition
NaiveRunSumProcessor.hpp:34
tpglibs::NaiveRunSumProcessor::configure
void configure(const nlohmann::json &config, const int16_t *plane_numbers) override
Configures the R factor and S factor according to plane.
Definition
NaiveRunSumProcessor.cpp:15
tpglibs::NaiveRunSumProcessor::process
naive_array_t process(const naive_array_t &signal) override
Calculate and store the running sum.
Definition
NaiveRunSumProcessor.cpp:41
tpglibs::NaiveRunSumProcessor::m_running_sum
naive_array_t m_running_sum
The RS in the model equation.
Definition
NaiveRunSumProcessor.hpp:37
tpglibs::NaiveRunSumProcessor::m_memory_factor
naive_array_t m_memory_factor
The R factor in the model equation.
Definition
NaiveRunSumProcessor.hpp:31
tpglibs
Definition
AbstractFactory.hpp:20
Generated on
for DUNE-DAQ by
1.17.0