MCOF.hh

Go to the documentation of this file.
00001 
00063 #ifndef _M_COF_H_
00064 #define _M_COF_H_
00065 
00066 #include "QCuore.hh"
00067 #include "QModule.hh"
00068 #include "OptimumFilter.hh"
00069 #include "QWienerFilter.hh"
00070 //#include "QWiener.hh"
00071 #include <map>
00072 
00073 using namespace Cuore;
00074 
00075 
00076 class MCOF : public QModule {
00077   
00078 public:
00079   MCOF(QSequence* s);
00080   
00081   virtual ~MCOF();
00082   
00083   // Init method is called before event loop
00084   virtual void Init();
00085   
00086   // Doit method is called for each event, getting the event as argument
00087   virtual QEvent* Do( QEvent* ev);
00088   
00089   // Done method is called after event loop
00090   virtual void Done();
00091 
00092   QVector GetThresholds(int fNumChannels) ;
00093 
00094 private:
00096   std::map<int,OptimumFilter*> fOptimumFilter;
00097   std::map<int,WienerFilter*> fWienerFilter;
00098   QVector ofSamples,wfSamples; 
00099   int fNumChannels,fPreviousRun,TriggerPos,fNormType,fThreshold;
00100   string AvgPulseFileName; 
00101   string nPSFileName;   
00102   string ThresholdsFile;
00103   bool loadFromFile,Diff,LoadFromTXO;
00104   bool fMaxInterpolationOn,fWienerSafe,fWienerOn,fSameThresh;
00105   int fLookForTrigger;
00106 
00107 };
00108 
00109 #endif

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