CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/CondFormats/RPCObjects/interface/TriggerBoardSpec.h

Go to the documentation of this file.
00001 #ifndef CondFormatsRPCObjectsTriggerBoardSpec_H
00002 #define CondFormatsRPCObjectsTriggerBoardSpec_H
00003 
00004 #include <boost/cstdint.hpp>
00005 #include "CondFormats/RPCObjects/interface/LinkConnSpec.h"
00006 #include <string>
00007 
00012 class TriggerBoardSpec {
00013 public:
00015   TriggerBoardSpec(int num=-1, uint32_t aMask = 0);
00016 
00018   int dccInputChannelNum() const { return theNum; }
00019 
00021   const LinkConnSpec * linkConn(int tbInputNumber) const;
00022 
00024   std::vector<const LinkConnSpec* > enabledLinkConns() const; 
00025 
00027   const std::vector<LinkConnSpec> linkConns() const { return theLinks; }
00028 
00030   void add(const LinkConnSpec & lc);
00031 
00033   void setMaskedLinks(uint32_t aMask) { theMaskedLinks = aMask; }
00034 
00036   std::string print(int depth = 0) const;
00037   
00038 private:
00039   int theNum;
00040   uint32_t theMaskedLinks;
00041   std::vector<LinkConnSpec> theLinks;
00042 };
00043 #endif