6 #ifndef RISETIMEPROCESSOR_H
7 #define RISETIMEPROCESSOR_H
11 #include "AmplitudeProcessor.hpp"
12 #include "Threshold.hpp"
67 if (thr10_res >= thr90_res) {
71 if (*thr10_res >= *thr90_res) {
72 throw InvalidResultException(
"t10_amp > t90_amp ... nonsensical result");
79 RiseTimeProcResult<T> res;
82 res.amp = amp_res.
amp;
84 res.t10_index = thr10_res;
85 res.t90_index = thr90_res;
87 res.t10_amp = *(res.t10_index);
88 res.t90_amp = *(res.t90_index);
109 RiseTimeProcResult<T> ComputeRiseTime(
const TrIterator<T>& begin,
int bline_range,
int pfind_range)
111 return ComputeRiseTime(TrRange<T>(begin,bline_range), TrRange<T>(begin+bline_range, pfind_range));
double t10_amp
value pointed to by t10_index
Definition: RiseTimeProcessor.hpp:29
TrIterator template class.
Definition: TrIterator.hpp:24
TrIterator< T > end() const
Get value of end iterator.
Definition: TrIterator.hpp:224
double amp
amplitude (i.e. peak - baseline)
Definition: AmplitudeProcessor.hpp:23
double baseline
computed value of baseline
Definition: RiseTimeProcessor.hpp:23
TrRange class.
Definition: TrIterator.hpp:173
double t90_amp
value pointed to by t90_index
Definition: RiseTimeProcessor.hpp:30
Result for ComputeAmplitude algorithm.
Definition: AmplitudeProcessor.hpp:20
Definition: AlgoIterator.hpp:12
double baseline
mean value of trace within baseline search range
Definition: AmplitudeProcessor.hpp:26
Result of ComputeRiseTime.
Definition: RiseTimeProcessor.hpp:19
TrIterator< T > t10_index
points to first value equal to or exceeding 10% of the amplitude
Definition: RiseTimeProcessor.hpp:26
double amp
computed amplitude
Definition: RiseTimeProcessor.hpp:24
TrIterator< T > t90_index
points to first value equal to or exceeding 90% of the amplitude
Definition: RiseTimeProcessor.hpp:27
Definition: Exceptions.h:51