![]() |
Diana Software
|
Module to detect peaks in window alternative to MBCountPulses. More...
Public Member Functions | |
| void | Init (Diana::QEvent &ev) |
| Init method. More... | |
| void | Do (Diana::QEvent &ev) |
| Do method. Declare and implement only one of the two versions. More... | |
| void | Done () |
| Done method. More... | |
Private Member Functions | |
| std::vector< int > | GetPeaks (const Diana::QVector &samples, int minSamples, const size_t red) |
Private Attributes | |
| Diana::QEventLabel | fPulseLabel |
| double | fThreshold |
| double | fSubSampling |
| QFir * | fFir |
Module to detect peaks in window alternative to MBCountPulses.
This module search for peaks in a waveform. It searchs for all positive derivative maxima above a given threshold, excactly as MBCountPulses does. The difference with MBCountPulses is that it alse searches for maxima in the waveform subsampled by a given factor. This is useful to detect peaks that are slower than the noise fluctuation.
module PeakDetector verbosity = info enable = true ThresholdNumberOfSigma = 5 endmod
Definition at line 43 of file MPeakDetector.hh.
| void MPeakDetector::Do | ( | Diana::QEvent & | ev | ) |
Do method. Declare and implement only one of the two versions.
Definition at line 47 of file MPeakDetector.cc.
References abs(), QEvent::Get(), QEvent::GetByLabel(), QPulseInfo::GetMasterSample(), and QSampleInfo::GetSampleIndex().
| void MPeakDetector::Done | ( | ) |
Done method.
Definition at line 86 of file MPeakDetector.cc.
|
private |
Definition at line 90 of file MPeakDetector.cc.
| void MPeakDetector::Init | ( | Diana::QEvent & | ev | ) |
Init method.
Definition at line 20 of file MPeakDetector.cc.
References QEvent::Add(), QCFirData::fAttDB, QCFirData::fCutoff, QCFirData::fM, QCFirData::fMethod, QCFirData::KayserBessel, and QEvent::RequireByLabel().
|
private |
Definition at line 61 of file MPeakDetector.hh.
|
private |
Definition at line 58 of file MPeakDetector.hh.
|
private |
Definition at line 60 of file MPeakDetector.hh.
|
private |
Definition at line 59 of file MPeakDetector.hh.