MOTAmplitude.hh

Go to the documentation of this file.
00001 #ifndef _M_OTAMPLITUDE_HH_
00002 #define _M_OTAMPLITUDE_HH_
00003 
00023 #include "QModule.hh"
00024 #include "QMatrix.hh"
00025 #include <map>
00026 #include <TFile.h>
00027 #include <TTree.h>
00028 
00029 class MOTAmplitude : public QModule {
00030 
00031 public:
00033   MOTAmplitude(QSequence* s);
00034 
00036   ~MOTAmplitude();
00037 
00039   void Init();
00040 
00042   QEvent* Do(QEvent* ev);
00043 
00045   void Done();
00046 private: 
00047   std::string fCutsFilename;
00048   QMatrix *mcuts;
00049   std::string fDirectory;
00050   bool fIsFirst;
00051   double fADC2mV;
00052   struct ChannelInfo {
00053     TFile *file;
00054     TTree* tree;
00055     int entry;
00056     double ampl;
00057     double chi;
00058     double psadelay;
00059     double psaampl;
00060     int counter;
00061     bool ready;
00062   };
00063 
00064   std::map<int, ChannelInfo> fOTAmpl;
00065 };
00066  
00067 #endif
00068 

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