QLgChannel.hh

Go to the documentation of this file.
00001 /*
00002  * APOLLO: A complete DAQ and Online Data Analysis Framework for Cuore 
00003  * $Id: QLgChannel.hh 631 2006-12-19 11:54:27Z giacher $
00004  * M.P. created 14/04/06
00005  * 
00006  * Class QLgChannel: description of a logical channel
00007  *                   a structure associating logical channel with physical coordinates
00008  * 
00009  */
00010 
00018 #ifndef _Q_LGCHANNEL_H
00019 #define _Q_LGCHANNEL_H
00020 
00021 
00022 // C/C++ Includes
00023 #include <ostream>
00024 
00025 // Apollo Includes
00026 #include "QCuore.hh"
00027 
00028 
00029 class QLgChannel {
00030 public:
00031   
00032   enum ChannelType_t {
00033     ChUnknownType=0,
00034     ChNormal,
00035     ChDigital
00036   };
00037   
00038   QLgChannel();
00039   
00040   virtual ~QLgChannel();
00041 
00042   unsigned int     Lg()               const { return fLg;}
00043   ChannelType_t      Type()             const { return fType;}
00044   
00045   const std::string& GetDaqBoardName()  const {return fDaqBoardName;}
00046   unsigned int     GetDaqCrate()      const { return fDaqCrate;}
00047   unsigned int     GetDaqBoard()      const { return fDaqBoard;}
00048   unsigned int     GetDaqChannel()    const { return fDaqChannel;}
00049   unsigned int     GetDaqId()         const { return fDaqId;}
00050   unsigned int     GetDaqSlot()       const { return fDaqSlot;}
00051 
00052   unsigned int     GetFECrate()       const { return fFECrate;}
00053   unsigned int     GetFEBoard()       const { return fFEBoard;}
00054   unsigned int     GetFEChannel()     const { return fFEChannel;}
00055   unsigned int     GetFESlot()        const { return fFESlot;}
00056   unsigned int     GetFEId()          const { return fFEId;}
00057   
00058   unsigned int     GetBSCrate()       const { return fBesCrate;}
00059   unsigned int     GetBSBoard()       const { return fBesBoard;}
00060   unsigned int     GetBSChannel()     const { return fBesChannel;}
00061   unsigned int     GetBSSlot()        const { return fBesSlot;}
00062   unsigned int     GetBSId()          const { return fBesId;}
00063   
00064   unsigned int     GetHeaterChannel() const { return fHeaterChannel;}
00065   const std::string& GetHeaterName()    const { return fHeaterName;}
00066   unsigned int     GetHeaterId()      const { return fHeaterId;}
00067 
00068   bool               IsEnabled()        const { return fEnabled;}
00069   
00070 protected:
00071   
00072   unsigned int fLg;
00073   ChannelType_t fType;
00074   bool fEnabled; 
00075   
00076   unsigned int fDaqCrate;
00078   unsigned int fDaqBoard;
00080   unsigned int fDaqChannel;
00082   unsigned int fDaqId;
00084   unsigned int fDaqSlot;
00085   std::string    fDaqBoardName;
00086 
00087   unsigned int fFECrate;
00088   unsigned int fFEBoard;
00089   unsigned int fFEChannel;
00090   unsigned int fFESlot;
00092   unsigned int fFEId;
00093 
00094   unsigned int fBesCrate;
00095   unsigned int fBesBoard;
00096   unsigned int fBesChannel;
00097   unsigned int fBesSlot;
00099   unsigned int fBesId;
00100 
00101   unsigned int fHeaterChannel;
00102   std::string    fHeaterName;
00103   unsigned int fHeaterId;
00104 
00105   friend class QApolloDb;
00106   friend class QDianaDb;
00107 
00108 };
00109 
00110 std::ostream &operator << ( std::ostream&, const QLgChannel&);
00111 
00112 #endif

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