CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtBoard.h
Go to the documentation of this file.
1 #ifndef CondFormats_L1TObjects_L1GtBoard_h
2 #define CondFormats_L1TObjects_L1GtBoard_h
3 
20 // system include files
21 #include <string>
22 #include <vector>
23 #include <map>
24 
25 #include <boost/cstdint.hpp>
26 
27 // user include files
30 
31 // forward declarations
32 
33 // class declaration
34 class L1GtBoard
35 {
36 
37 public:
38 
40  L1GtBoard();
41 
42  L1GtBoard(const L1GtBoardType&);
43 
44  L1GtBoard(const L1GtBoardType&, const int&);
45 
47  virtual ~L1GtBoard();
48 
50  L1GtBoard(const L1GtBoard&);
51 
53  L1GtBoard& operator=(const L1GtBoard&);
54 
56  bool operator==(const L1GtBoard&) const;
57 
59  bool operator!=(const L1GtBoard&) const;
60 
62  bool operator< (const L1GtBoard&) const;
63 
64 public:
65 
67  static const int NumberCablesBoard;
68 
69 public:
70 
72  inline const L1GtBoardType gtBoardType() const
73  {
74  return m_gtBoardType;
75  }
76 
77  void setGtBoardType(const L1GtBoardType&);
78 
80  inline const int gtBoardIndex() const
81  {
82  return m_gtBoardIndex;
83  }
84 
85  void setGtBoardIndex(const int&);
86 
89  inline const int gtPositionDaqRecord() const
90  {
91  return m_gtPositionDaqRecord;
92  }
93 
94  void setGtPositionDaqRecord(const int&);
95 
98  inline const int gtPositionEvmRecord() const
99  {
100  return m_gtPositionEvmRecord;
101  }
102 
103  void setGtPositionEvmRecord(const int&);
104 
107  inline const int gtBitDaqActiveBoards() const
108  {
109  return m_gtBitDaqActiveBoards;
110  }
111 
112  void setGtBitDaqActiveBoards(const int&);
113 
116  inline const int gtBitEvmActiveBoards() const
117  {
118  return m_gtBitEvmActiveBoards;
119  }
120 
121  void setGtBitEvmActiveBoards(const int&);
122 
124  inline const int gtBoardSlot() const
125  {
126  return m_gtBoardSlot;
127  }
128 
129  void setGtBoardSlot(const int&);
130 
132  inline const int gtBoardHexName() const
133  {
134  return m_gtBoardHexName;
135  }
136 
137  void setGtBoardHexName(const int&);
138 
139 
142  const std::vector<L1GtPsbQuad>& gtQuadInPsb() const
143  {
144  return m_gtQuadInPsb;
145  }
146 
147  void setGtQuadInPsb(const std::vector<L1GtPsbQuad>&);
148 
151  const std::map<int, std::vector<L1GtObject> >& gtInputPsbChannels() const {
152  return m_gtInputPsbChannels;
153  }
154 
155  void setGtInputPsbChannels(const std::map<int, std::vector<L1GtObject> >&);
156 
158  const boost::uint16_t gtBoardId() const;
159 
161  std::string gtBoardName() const;
162 
164  void print(std::ostream& myCout) const;
165 
167  friend std::ostream& operator<<(std::ostream&, const L1GtBoard&);
168 
169 
170 private:
171 
174 
177 
180 
183 
187 
191 
194 
198 
201  std::vector<L1GtPsbQuad> m_gtQuadInPsb;
202 
206  std::map<int, std::vector<L1GtObject> > m_gtInputPsbChannels;
207 
208 };
209 
210 #endif /*CondFormats_L1TObjects_L1GtBoard_h*/
const L1GtBoardType gtBoardType() const
get / set board type
Definition: L1GtBoard.h:72
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:182
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
Definition: L1GtBoard.h:206
bool operator==(const L1GtBoard &) const
equal operator
Definition: L1GtBoard.cc:132
void setGtBoardSlot(const int &)
Definition: L1GtBoard.cc:249
void setGtBoardHexName(const int &)
Definition: L1GtBoard.cc:255
const int gtBitDaqActiveBoards() const
Definition: L1GtBoard.h:107
const int gtPositionDaqRecord() const
Definition: L1GtBoard.h:89
void setGtBitEvmActiveBoards(const int &)
Definition: L1GtBoard.cc:243
int m_gtBoardHexName
Definition: L1GtBoard.h:197
void print(std::ostream &myCout) const
print board
Definition: L1GtBoard.cc:336
const int gtPositionEvmRecord() const
Definition: L1GtBoard.h:98
void setGtPositionEvmRecord(const int &)
Definition: L1GtBoard.cc:228
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:176
const boost::uint16_t gtBoardId() const
get the board ID
Definition: L1GtBoard.cc:275
friend std::ostream & operator<<(std::ostream &, const L1GtBoard &)
output stream operator
Definition: L1GtBoard.cc:532
int m_gtPositionDaqRecord
the position of board data block in the GT DAQ readout record
Definition: L1GtBoard.h:179
dictionary map
Definition: Association.py:205
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtBoard.h:193
std::string gtBoardName() const
return board name - it depends on L1GtBoardType enum!!!
Definition: L1GtBoard.cc:290
L1GtBoard()
constructors
Definition: L1GtBoard.cc:32
L1GtBoardType
board types in GT
L1GtBoard & operator=(const L1GtBoard &)
assignment operator
Definition: L1GtBoard.cc:105
void setGtInputPsbChannels(const std::map< int, std::vector< L1GtObject > > &)
Definition: L1GtBoard.cc:270
const int gtBoardIndex() const
get / set board index
Definition: L1GtBoard.h:80
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:173
void setGtBitDaqActiveBoards(const int &)
Definition: L1GtBoard.cc:235
void setGtPositionDaqRecord(const int &)
Definition: L1GtBoard.cc:221
const int gtBoardHexName() const
get / set board hex fragment name in hw record
Definition: L1GtBoard.h:132
const std::map< int, std::vector< L1GtObject > > & gtInputPsbChannels() const
Definition: L1GtBoard.h:151
const int gtBoardSlot() const
get / set board slot
Definition: L1GtBoard.h:124
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:186
bool operator<(const L1GtBoard &) const
less than operator
Definition: L1GtBoard.cc:191
const int gtBitEvmActiveBoards() const
Definition: L1GtBoard.h:116
bool operator!=(const L1GtBoard &) const
unequal operator
Definition: L1GtBoard.cc:183
const std::vector< L1GtPsbQuad > & gtQuadInPsb() const
Definition: L1GtBoard.h:142
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:201
void setGtBoardIndex(const int &)
Definition: L1GtBoard.cc:214
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:190
virtual ~L1GtBoard()
destructor
Definition: L1GtBoard.cc:77
static const int NumberCablesBoard
number of InfiniCables per board
Definition: L1GtBoard.h:67
void setGtBoardType(const L1GtBoardType &)
Definition: L1GtBoard.cc:208
void setGtQuadInPsb(const std::vector< L1GtPsbQuad > &)
Definition: L1GtBoard.cc:263