MOTShiftBack.hh

Go to the documentation of this file.
00001 #ifndef _M_OTSHIFTBACK_HH_
00002 #define _M_OTSHIFTBACK_HH_
00003 
00023 #include "QModule.hh"
00024 #include <map>
00025 #include <vector>
00026 #include "QVector.hh"
00027 #include "QTime.hh"
00028 
00029 class MOTShiftBack : public QModule {
00030 
00031 public:
00033   MOTShiftBack(QSequence* s);
00034 
00036   ~MOTShiftBack();
00037 
00039   void Init();
00040 
00042   QEvent* Do(QEvent* ev);
00043 
00045   void Done();
00046 private:
00047   std::string GetOTAVGFileName(int run, int chan);
00048   void GetSamplesBack(int chan);
00049   struct Shifter {
00050     std::string avgfile;
00051     int samplesback;
00052     int trgtype;
00053     bool BlackSheep;
00054   };
00055   std::map<int,Shifter> fShiftBack;
00056   double fFraction;
00057   QTime fStartTime;
00058   bool fIsFirst;
00059 };
00060 
00061 #endif
00062 

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