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));