QDaqChannel.hh

Go to the documentation of this file.
00001 
00002 #ifndef _Q_DAQCHANNEL_H
00003 #define _Q_DAQCHANNEL_H
00004 
00005 // C/C++ Includes
00006 #include <ostream>
00007 #include <map>
00008 #include <string>
00009 
00010 // Apollo Includes
00011 #include "QCuore.hh"
00012 #include "QVdt.hh"
00013 #include "QLgChannel.hh"
00014 
00022 class QDaqChannel : public QLgChannel
00023 {
00024 public:
00025 
00029   enum SettingsType_t {
00030     Mapping_s = 1L << 0, 
00031     Bes_s     = 1L << 1, 
00032     FE_s      = 1L << 2, 
00033     Daq_s     = 1L << 3, 
00034     Pulser_s  = 1L << 4, 
00035     Trg_s     = 1L << 5, 
00036     All_s     = Mapping_s | Bes_s | FE_s | Daq_s | Pulser_s | Trg_s,
00037     Ele_s     = Mapping_s | Bes_s | FE_s | Pulser_s 
00038   };
00039 
00043   QDaqChannel();
00044 
00050   QDaqChannel(const QDaqChannel& lg, SettingsType_t what);
00051   
00052   virtual ~QDaqChannel();
00053 
00057   bool GetSaveFlag() const {return fSaveFlag;}
00058 
00069   bool GetParameter(SettingsType_t     what,
00070                     const std::string& parName, 
00071                     QVdt&              par) const;
00072 
00081    bool GetTrgParameter(const unsigned int tag,    
00082                         const std::string&   parName, 
00083                         QVdt&                par);
00084    
00088   void Dump() const;
00089 
00090 private:
00091 
00092   void Clear();
00093 
00094   std::map <std::string,QVdt> fFESettings;
00095   std::map <std::string,QVdt> fBesSettings;
00096   std::map <std::string,QVdt> fPulSettings;
00097   std::map <std::string,QVdt> fDaqSettings;
00098 
00099   std::string fTrgName1;
00100   std::string fTrgName2;
00101   std::string fTrgName3;
00102   std::string fTrgName4;
00103   std::map <std::string,QVdt> fTrgSettings1;
00104   std::map <std::string,QVdt> fTrgSettings2;
00105   std::map <std::string,QVdt> fTrgSettings3;
00106   std::map <std::string,QVdt> fTrgSettings4;
00107   bool fSaveFlag;
00108   bool fDefaultTrg;
00109 
00110   friend class QApolloDbBase;
00111   friend class QApolloDbCache;
00112 
00113 };
00114 
00115 #endif // #ifndef _Q_DAQCHANNEL_H

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