MBCountPulses.hh

Go to the documentation of this file.
00001 
00029 #ifndef _MB_COUNT_PULSES_HH_
00030 #define _MB_COUNT_PULSES_HH_
00031 
00032 #include "QModule.hh"
00033 
00034 namespace Cuore {class QVector;}
00035 
00036 class MBCountPulses : public QModule {
00037 
00038     public:
00039         MBCountPulses(QSequence* s);
00040 
00041         virtual ~MBCountPulses();
00042         
00043         // Init method is called before event loop
00044         void Init();
00045         
00046         // Do method is called for each event, getting the event as argument
00047         QEvent* Do( QEvent* ev);
00048         
00049         // Done method is called after event loop
00050         void Done();
00051 
00052     private:
00054         QVector Derivative(const QVector&);
00055         
00057         QVector Derivative(const QVector&, const int); 
00058         
00063         double fThreshold;
00064         
00065 };
00066 
00067 #endif

Generated on Tue Nov 16 10:49:57 2010 for CUORE Software by  doxygen 1.5.6