CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/CondFormats/RPCObjects/interface/LinkBoardSpec.h

Go to the documentation of this file.
00001 #ifndef CondFormatsRPCObjectsLinkBoardSpec_H
00002 #define CondFormatsRPCObjectsLinkBoardSpec_H
00003 
00004 #include "CondFormats/RPCObjects/interface/FebConnectorSpec.h"
00005 #include <string>
00006 
00011 class LinkBoardSpec {
00012 public:
00014   LinkBoardSpec() {}
00015 
00018   LinkBoardSpec(bool master, int linkBoardNumInLin, int lbCode);
00019 
00021   bool master() { return theMaster; }
00022 
00024   int linkBoardNumInLink() const { return theLinkBoardNumInLink; }
00025 
00027   std::string linkBoardName() const;
00028 
00030   void add(const FebConnectorSpec & feb); 
00031 
00033   const FebConnectorSpec * feb(int febInputNum) const;
00034   const  std::vector<FebConnectorSpec> & febs() const { return theFebs; }
00035 
00037   std::string print(int depth=0) const;
00038 
00039 private: 
00040   bool theMaster;
00041   int theLinkBoardNumInLink; 
00042   int theCode; 
00043   std::vector<FebConnectorSpec> theFebs;
00044 };
00045 #endif