QOTFilter.hh

Go to the documentation of this file.
00001 #ifndef _Q_OTFILTER_HH_
00002 #define _Q_OTFILTER_HH_
00003 
00011 #include "QVector.hh"
00012 #include <vector>
00013 #include "QVectorC.hh"
00014 #include "QError.hh"
00015 #include "cmath"
00016 #include <TF1.h>
00017 #include <TGraph.h>
00018 #include "QFFT.hh"
00019 
00020 using namespace std; 
00021 using namespace Cuore; 
00022 
00023 class QOTFilter {
00024 public:
00025   QOTFilter();
00026   void SetChannel(const int chan) { fChannel = chan; }
00027   QError SetFilters(const QVector& idealPulse, const QVector& noisePS, QFFT::WindowType& window);
00028   QError Init();
00029   QError Init_diff();
00030   QError Filter(const QVector& input, QVector& output);
00031   QError Filter_diff(const QVector& input, QVector& output);
00032   void DumpOnFile(const std::string& filename) const ;
00033   void Print(ostream& o) const;
00034 
00035   const int GetFWHM() const {return fFWHM;}
00036   const int GetPSAReducedTimeWindow() const {return fPSAReducedTimeWindow;}
00037   const double GetResolution() const {return fResolution;}
00038   const double GetPSARMS() const {return fPSARMS;}
00039   const QVector&  GetFilteredIdealPulse() { return fFilteredIdealPulse; }
00040 
00041 private:
00042   void ResAndFWHM();
00043   double ComputePSARMS(int PSAWindow);
00044   int fChannel;
00045   int fFWHM;
00046   int fPSAReducedTimeWindow;
00047   double fResolution;
00048   double fPSARMS; //RMS of reduced time window for PSA
00049   QFFT::WindowType fKernelWindowType;
00050 
00051   Cuore::QVector fIdealPulse;
00052   Cuore::QVector fInputIdealPulse;
00053   Cuore::QVector fNoisePS;
00054   Cuore::QVector fIdealPulsePS;
00055   Cuore::QVector fFilteredIdealPulse;
00056   Cuore::QVector fKernel;
00057   Cuore::QVector fWindowedKernel;
00058   Cuore::QVectorC fH;
00059 
00060 };
00061 
00062 #endif

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