CMS 3D CMS Logo

TriggerBoardSpec.h
Go to the documentation of this file.
1 #ifndef CondFormatsRPCObjectsTriggerBoardSpec_H
2 #define CondFormatsRPCObjectsTriggerBoardSpec_H
3 
5 
7 #include <string>
8 #include <cstdint>
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
int dccInputChannelNum() const
input channel number to DCC
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
#define COND_SERIALIZABLE
Definition: Serializable.h:39
std::vector< const LinkConnSpec * > enabledLinkConns() const
not masked links belonging to this TB
TriggerBoardSpec(int num=-1, uint32_t aMask=0)
ctor with ID only
const std::vector< LinkConnSpec > linkConns() const
all links kept by this TB
std::vector< LinkConnSpec > theLinks