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
30
{
32
naive_array_t
m_memory_factor
;
33
35
naive_array_t
m_scale_factor
;
36
38
naive_array_t
m_running_sum
;
39
40
public
:
46
naive_array_t
process
(
const
naive_array_t
& signal)
override
;
47
53
void
configure
(
const
nlohmann::json& config,
const
int16_t* plane_numbers)
override
;
54
};
55
56
}
// namespace tpglibs
57
58
#endif
// TPGLIBS_NAIVERUNSUMPROCESSOR_HPP_
NaiveFactory.hpp
NaiveUtils.hpp
tpglibs::NaiveProcessor
Naive typed abstract signal processor.
Definition
NaiveProcessor.hpp:20
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:23
tpglibs::NaiveRunSumProcessor
Naive signal processor: Calculates the running sum of the signal.
Definition
NaiveRunSumProcessor.hpp:30
tpglibs::NaiveRunSumProcessor::m_scale_factor
naive_array_t m_scale_factor
The S factor in the model equation.
Definition
NaiveRunSumProcessor.hpp:35
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:16
tpglibs::NaiveRunSumProcessor::process
naive_array_t process(const naive_array_t &signal) override
Calculate and store the running sum.
Definition
NaiveRunSumProcessor.cpp:42
tpglibs::NaiveRunSumProcessor::m_running_sum
naive_array_t m_running_sum
The RS in the model equation.
Definition
NaiveRunSumProcessor.hpp:38
tpglibs::NaiveRunSumProcessor::m_memory_factor
naive_array_t m_memory_factor
The R factor in the model equation.
Definition
NaiveRunSumProcessor.hpp:32
tpglibs
Definition
AbstractFactory.hpp:20
Generated on
for DUNE-DAQ by
1.18.0