Class implementing the MaxSum algorithm.
More...
#include <SVDMaxSumAlgorithm.h>
Class implementing the MaxSum algorithm.
Definition at line 20 of file SVDMaxSumAlgorithm.h.
◆ SVDMaxSumAlgorithm()
Constructor with the APVFloatSamples.
Definition at line 28 of file SVDMaxSumAlgorithm.h.
30 {
32 };
Belle2::SVDShaperDigit::APVFloatSamples m_samples
strip samples
void applyAlgorithm()
applies the algorithm
◆ ~SVDMaxSumAlgorithm()
◆ applyAlgorithm()
applies the algorithm
Definition at line 62 of file SVDMaxSumAlgorithm.h.
63 {
64
65
67 B2ERROR("APV25 samples less than 3!?");
68
69 std::vector<float> Sum2bin(
m_samples.size() - 1, 0);
70
71 for (
int iBin = 0; iBin < static_cast<int>(
m_samples.size()) - 1; ++iBin)
73
74 auto itSum = std::max_element(std::begin(Sum2bin), std::end(Sum2bin));
75
76 int ctrFrame = std::distance(std::begin(Sum2bin), itSum);
77
78 if (ctrFrame == 0) ctrFrame = 1;
79
81
84
85 };
std::pair< int, std::vector< float > > m_result
ADC of the acquired samples.
◆ getFirstFrame()
◆ getSelectedSamples()
std::vector< float > getSelectedSamples |
( |
| ) |
|
|
inline |
◆ m_result
std::pair<int, std::vector<float> > m_result |
|
protected |
ADC of the acquired samples.
first frame, 3 selected sample
Definition at line 57 of file SVDMaxSumAlgorithm.h.
◆ m_samples
The documentation for this class was generated from the following file: