Diana Software
MAdvancedPeakFinder.hh
Go to the documentation of this file.
1 #ifndef _M_ADVANCEDPEAKFINDER_HH_
2 #define _M_ADVANCEDPEAKFINDER_HH_
3 
34 #include "QModule.hh"
35 #include "QVector.hh"
36 #include "QPulse.hh"
37 #include "QTriggerFactory.hh"
38 #include "QTrigger.hh"
39 #include <vector>
40 #include <string.h>
41 #include <map>
42 
43 using std::string;
44 using std::cout;
45 using std::cin;
46 using std::cerr;
47 using std::endl;
48 
49 using Diana::QVector;
50 using Diana::QTrigger;
51 
52 
53 class MAdvancedPeakFinder : public Diana::QModule {
54 
55  public:
56 
58  void Init(Diana::QEvent& ev);
59 
61  void Do(Diana::QEvent& ev);
62  //void Do(Diana::QEvent& ev, const Diana::QEventList& neighbours);
63 
65  void Done();
66  private:
67  std::string fPulseLabel;
68  Diana::QVector pulse;
69  std::map<int,QTrigger*> channel2trigger;
70  std::map<int,QTrigger*>::iterator it;
71  double fDebounce;
74  //QTrigger* Trigger;
75  string TriggerAlgo;
76 
77 };
78 
79 #endif
80 
Peak Finder module that lets you choose which peak finding algorithm to choose.
std::map< int, QTrigger * >::iterator it
void Done()
Done method.
std::map< int, QTrigger * > channel2trigger
void Do(Diana::QEvent &ev)
Do method. Declare and implement only one of the two versions.
void Init(Diana::QEvent &ev)
Init method.