1 #ifndef PULSE_FINDER_TESTER_H
2 #define PULSE_FINDER_TESTER_H
4 #include "PulseFinder.h"
33 int iterator1Distance;
34 int iterator2Distance;
40 IteratorProperties(
int iter1Distance,
int iter2Distance,
float iter1Value,
float iter2Value,
42 : iterator1Distance(iter1Distance), iterator2Distance(iter2Distance),
43 iterator1Value(iter1Value), iterator2Value(iter2Value), isSplit(split) {}
71 : nSamples(n), firstSample(first), lastSample(last), time(t), quality(q)
92 : nSamples(n), quality(q), time(t), charge(c)
100 std::vector<float>::const_iterator> >
const & bruteSearchResult,
101 std::vector<IteratorProperties>
const & referenceValues ,
102 std::vector<float>::const_iterator beginIterator,
103 std::vector<float>::const_iterator endIterator );
105 bool evaluateSplitResult(std::vector<PulseFinder::InternalSplitPulse>
const & splitResult,
106 std::vector<IteratorProperties>
const & referenceValues ,
107 std::vector<float>::const_iterator beginIterator,
108 std::vector<float>::const_iterator endIterator );
110 bool evaluatePulseCandidate(std::vector<std::pair<TrackerDataImpl *, int> > candidates,
111 std::vector<CandidateProperties>
const & referenceCandidateProperties);
113 bool evaluatePulses(std::vector<TrackerPulse *>
const & pulses,
114 std::vector<PulseProperties>
const & referencePulseProperties);
122 std::vector<std::pair<size_t,size_t> >
const & referencePositions,
123 EVENT::FloatVec
const & referenceADCValues);
135 #endif //PULSE_FINDER_TESTER_H
~PulseFinderTester()
The destructor.
Definition: PulseFinderTester.cc:80
A reference consists of a vector of IteratorProperties structs and the corresponding begin and end it...
Definition: PulseFinderTester.h:62
bool evaluatePlateauCutoff(std::vector< TrackerPulse * > const &pulses, std::vector< std::pair< size_t, size_t > > const &referencePositions, EVENT::FloatVec const &referenceADCValues)
Compare the adc values in the pulses to the referenceADCValues.
Definition: PulseFinderTester.cc:1022
The PulseFinder class is working horse of the ModularPulseFinderProcessor.
Definition: PulseFinder.h:66
A class which is friend of PulseFinder so it can access the protected members for testing...
Definition: PulseFinderTester.h:11
int runAllTests()
Run all tests and return the number of failed tests.
Definition: PulseFinderTester.cc:95
PulseFinderTester()
The constructor.
Definition: PulseFinderTester.cc:11
float _readoutFrequency
The reference value. Has to be returned correctly.
Definition: PulseFinderTester.h:129
A helper struct to store the distance to the begin iterator and the value which should be at the iter...
Definition: PulseFinderTester.h:30
A struct to store the pulse properties we are checking.
Definition: PulseFinderTester.h:79
bool evaluateBruteSearchResult(std::vector< std::pair< std::vector< float >::const_iterator, std::vector< float >::const_iterator > > const &bruteSearchResult, std::vector< IteratorProperties > const &referenceValues, std::vector< float >::const_iterator beginIterator, std::vector< float >::const_iterator endIterator)
this function gets the search result of the brute search and compares it to the reference values give...
Definition: PulseFinderTester.cc:780