Diana Software
MTutorialAveragePulse.hh
Go to the documentation of this file.
1 #ifndef _M_TUTORIAL_AVERAGE_PULSE_HH_
2 #define _M_TUTORIAL_AVERAGE_PULSE_HH_
3 
36 #include "QModule.hh"
37 #include "QVector.hh"
38 #include <map>
39 
40 class MTutorialAveragePulse : public Diana::QModule {
41 
42  public:
43 
45  void Init(Diana::QEvent& ev);
46 
48  void Do(Diana::QEvent& ev);
49 
51  void Done();
52 
54  class ChannelInfo {
55  public:
57  Diana::QVector fSamples;
58  };
59  private:
62  std::map<int, ChannelInfo> fAveragePulses;
64  std::string fOutput;
65 };
66 
67 #endif
68 
simple class to store channel based data
std::map< int, ChannelInfo > fAveragePulses
map containing ChannelInfo for each channel. The key is the channel number
std::string fOutput
output file which for AveragePulses
void Do(Diana::QEvent &ev)
Do method. Declare and implement only one of the two versions.
void Init(Diana::QEvent &ev)
Init method.