Diana Software
MPeakDetector.hh
Go to the documentation of this file.
1 #ifndef _M_PEAKDETECTOR_HH_
2 #define _M_PEAKDETECTOR_HH_
3 
39 #include "QModule.hh"
40 namespace Diana { class QVector; }
41 class QFir;
42 
43 class MPeakDetector : public Diana::QModule {
44 
45  public:
46 
48  void Init(Diana::QEvent& ev);
49 
51  void Do(Diana::QEvent& ev);
52  //void Do(Diana::QEvent& ev, const Diana::QEventList& neighbours);
53 
55  void Done();
56  private:
57  std::vector<int> GetPeaks(const Diana::QVector& samples, int minSamples, const size_t red);
58  Diana::QEventLabel fPulseLabel;
59  double fThreshold;
60  double fSubSampling;
62 
63 };
64 
65 #endif
66 
Module to detect peaks in window alternative to MBCountPulses.
double fSubSampling
void Init(Diana::QEvent &ev)
Init method.
void Do(Diana::QEvent &ev)
Do method. Declare and implement only one of the two versions.
Diana::QEventLabel fPulseLabel
void Done()
Done method.
std::vector< int > GetPeaks(const Diana::QVector &samples, int minSamples, const size_t red)
QFir FIR low pass filter (Ported from Calder)
Definition: QFir.hh:17
Interface for vectors in Diana analysis.
Definition: QVector.hh:30
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...