Diana Software
QAveragePulseEstimator.hh
Go to the documentation of this file.
1 #ifndef _Q_AVERAGE_PULSE_ESTIMATOR_HH_
2 #define _Q_AVERAGE_PULSE_ESTIMATOR_HH_
3 
4 #include "QVector.hh"
5 #include "QError.hh"
6 
8 {
9  public:
10  QAveragePulseEstimator(const int size);
11  void Clear();
12  QError Add(const Diana::QVector& pulse);
13  Diana::QVector GetAveragePulse() const;
14  int GetNumberOfPulses() const { return fNumberOfPulses; }
15  /*
16  void SetAlignment(bool fractional,const int MaxShift);
17  void NoAlignment() { fAlignment = false; }
18  */
19 
20 
21  private:
22  bool fAlignment;
24  int fMaxShift;
25  Diana::QVector fAveragePulse;
27 };
28 
29 #endif
QError Add(const Diana::QVector &pulse)
Diana::QVector GetAveragePulse() const
QAveragePulseEstimator(const int size)
error class with error type and description
Definition: QError.hh:115