CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TriggerBoardSpec.h
Go to the documentation of this file.
1 #ifndef CondFormatsRPCObjectsTriggerBoardSpec_H
2 #define CondFormatsRPCObjectsTriggerBoardSpec_H
3 
5 
6 #include <boost/cstdint.hpp>
8 #include <string>
9 
15 public:
17  TriggerBoardSpec(int num=-1, uint32_t aMask = 0);
18 
20  int dccInputChannelNum() const { return theNum; }
21 
23  const LinkConnSpec * linkConn(int tbInputNumber) const;
24 
26  std::vector<const LinkConnSpec* > enabledLinkConns() const;
27 
29  const std::vector<LinkConnSpec> linkConns() const { return theLinks; }
30 
32  void add(const LinkConnSpec & lc);
33 
35  void setMaskedLinks(uint32_t aMask) { theMaskedLinks = aMask; }
36 
38  std::string print(int depth = 0) const;
39 
40 private:
41  int theNum;
42  uint32_t theMaskedLinks;
43  std::vector<LinkConnSpec> theLinks;
44 
46 };
47 #endif
std::vector< const LinkConnSpec * > enabledLinkConns() const
not masked links belonging to this TB
void add(const LinkConnSpec &lc)
attach connection to TB
const LinkConnSpec * linkConn(int tbInputNumber) const
link attached to this TB with given input number
std::string print(int depth=0) const
debud printaout, call its components with depth dectreased by one
void setMaskedLinks(uint32_t aMask)
set mask links
int dccInputChannelNum() const
input channel number to DCC
#define COND_SERIALIZABLE
Definition: Serializable.h:30
const std::vector< LinkConnSpec > linkConns() const
all links kept by this TB
TriggerBoardSpec(int num=-1, uint32_t aMask=0)
ctor with ID only
std::vector< LinkConnSpec > theLinks