QApolloDbCache.hh

Go to the documentation of this file.
00001 /*
00002 * APOLLO: A complete DAQ and Online Data Analysis Framework for Cuore 
00003 * $Id: QApolloDbCache.hh 239 2006-07-18 11:05:54Z didomiz $
00004 * M.P. created 30/11/4
00005 * 
00006 * Class QApolloDbCache: hardware profile data base data
00007 *
00008 */
00009 
00010 
00020 #ifndef _QAPOLLODBCACHE_HH_
00021 #define _QAPOLLODBCACHE_HH_
00022 
00023 // C/C++ Includes
00024 #include <string>
00025 #include <map>
00026 #include <vector>
00027 
00028 // Apollo Includes
00029 #include "QCuore.hh"
00030 #include "QDaqChannel.hh"
00031 
00032 
00033 class QApolloDbCache {
00034 public:
00035   
00036   // dtor
00037   virtual ~QApolloDbCache();
00038   
00039 private:
00040 
00041   // ctor
00042   QApolloDbCache(); 
00043   
00048   void Dump(unsigned short crateId, bool isDump) const;
00049 
00053   const QDaqChannel& DaqChan(unsigned short Lg) const;
00054 
00061   int GetBoards(unsigned short                        crate, 
00062                 std::map<unsigned short,std::string>& boards) const;
00063 
00074   unsigned short GetActiveChannels(unsigned short              crate,
00075                                    unsigned short              slot,
00076                                    QDaqChannel::SettingsType_t what,
00077                                    std::vector<QDaqChannel>&   chList) const;
00078 
00084   unsigned short GetMapping(std::map<unsigned short, QDaqChannel>& cMap) const;
00085 
00092   unsigned short GetActiveChannels(std::map<unsigned short,QDaqChannel>& cMap,
00093                                    QDaqChannel::SettingsType_t what) const;
00094   
00098   inline void Clear() {fChannels.clear();}
00099 
00104   void FillDefaultTriggers(unsigned short crateId);
00105 
00109   std::map<unsigned short, QDaqChannel> fChannels;
00110 
00111   friend class QApolloDbBase;
00112 };
00113                 
00114 #endif // _QAPOLLODBCACHE_HH_

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1