CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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
22 
23 #include <string>
24 #include <vector>
25 #include <map>
26 
27 // user include files
30 #include <cstdint>
31 
32 // forward declarations
33 
34 // class declaration
35 class L1GtBoard {
36 public:
38  L1GtBoard();
39 
40  L1GtBoard(const L1GtBoardType&);
41 
42  L1GtBoard(const L1GtBoardType&, const int&);
43 
45  virtual ~L1GtBoard();
46 
48  L1GtBoard(const L1GtBoard&);
49 
51  L1GtBoard& operator=(const L1GtBoard&);
52 
54  bool operator==(const L1GtBoard&) const;
55 
57  bool operator!=(const L1GtBoard&) const;
58 
60  bool operator<(const L1GtBoard&) const;
61 
62 public:
64  static const int NumberCablesBoard;
65 
66 public:
68  inline const L1GtBoardType gtBoardType() const { return m_gtBoardType; }
69 
70  void setGtBoardType(const L1GtBoardType&);
71 
73  inline const int gtBoardIndex() const { return m_gtBoardIndex; }
74 
75  void setGtBoardIndex(const int&);
76 
79  inline const int gtPositionDaqRecord() const { return m_gtPositionDaqRecord; }
80 
81  void setGtPositionDaqRecord(const int&);
82 
85  inline const int gtPositionEvmRecord() const { return m_gtPositionEvmRecord; }
86 
87  void setGtPositionEvmRecord(const int&);
88 
91  inline const int gtBitDaqActiveBoards() const { return m_gtBitDaqActiveBoards; }
92 
93  void setGtBitDaqActiveBoards(const int&);
94 
97  inline const int gtBitEvmActiveBoards() const { return m_gtBitEvmActiveBoards; }
98 
99  void setGtBitEvmActiveBoards(const int&);
100 
102  inline const int gtBoardSlot() const { return m_gtBoardSlot; }
103 
104  void setGtBoardSlot(const int&);
105 
107  inline const int gtBoardHexName() const { return m_gtBoardHexName; }
108 
109  void setGtBoardHexName(const int&);
110 
113  const std::vector<L1GtPsbQuad>& gtQuadInPsb() const { return m_gtQuadInPsb; }
114 
115  void setGtQuadInPsb(const std::vector<L1GtPsbQuad>&);
116 
119  const std::map<int, std::vector<L1GtObject> >& gtInputPsbChannels() const { return m_gtInputPsbChannels; }
120 
121  void setGtInputPsbChannels(const std::map<int, std::vector<L1GtObject> >&);
122 
124  const uint16_t gtBoardId() const;
125 
127  std::string gtBoardName() const;
128 
130  void print(std::ostream& myCout) const;
131 
133  friend std::ostream& operator<<(std::ostream&, const L1GtBoard&);
134 
135 private:
138 
141 
144 
147 
151 
155 
158 
162 
165  std::vector<L1GtPsbQuad> m_gtQuadInPsb;
166 
170  std::map<int, std::vector<L1GtObject> > m_gtInputPsbChannels;
171 
173 };
174 
175 #endif /*CondFormats_L1TObjects_L1GtBoard_h*/
const L1GtBoardType gtBoardType() const
get / set board type
Definition: L1GtBoard.h:68
const uint16_t gtBoardId() const
get the board ID
Definition: L1GtBoard.cc:220
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:146
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
Definition: L1GtBoard.h:170
bool operator==(const L1GtBoard &) const
equal operator
Definition: L1GtBoard.cc:110
void setGtBoardSlot(const int &)
Definition: L1GtBoard.cc:204
void setGtBoardHexName(const int &)
Definition: L1GtBoard.cc:207
const int gtBitDaqActiveBoards() const
Definition: L1GtBoard.h:91
const int gtPositionDaqRecord() const
Definition: L1GtBoard.h:79
void setGtBitEvmActiveBoards(const int &)
Definition: L1GtBoard.cc:199
int m_gtBoardHexName
Definition: L1GtBoard.h:161
void print(std::ostream &myCout) const
print board
Definition: L1GtBoard.cc:267
const int gtPositionEvmRecord() const
Definition: L1GtBoard.h:85
void setGtPositionEvmRecord(const int &)
Definition: L1GtBoard.cc:187
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140
friend std::ostream & operator<<(std::ostream &, const L1GtBoard &)
output stream operator
Definition: L1GtBoard.cc:446
int m_gtPositionDaqRecord
the position of board data block in the GT DAQ readout record
Definition: L1GtBoard.h:143
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtBoard.h:157
std::string gtBoardName() const
return board name - it depends on L1GtBoardType enum!!!
Definition: L1GtBoard.cc:233
L1GtBoard()
constructors
Definition: L1GtBoard.cc:30
L1GtBoard & operator=(const L1GtBoard &)
assignment operator
Definition: L1GtBoard.cc:88
void setGtInputPsbChannels(const std::map< int, std::vector< L1GtObject > > &)
Definition: L1GtBoard.cc:215
const int gtBoardIndex() const
get / set board index
Definition: L1GtBoard.h:73
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137
void setGtBitDaqActiveBoards(const int &)
Definition: L1GtBoard.cc:193
void setGtPositionDaqRecord(const int &)
Definition: L1GtBoard.cc:181
const int gtBoardHexName() const
get / set board hex fragment name in hw record
Definition: L1GtBoard.h:107
const std::map< int, std::vector< L1GtObject > > & gtInputPsbChannels() const
Definition: L1GtBoard.h:119
const int gtBoardSlot() const
get / set board slot
Definition: L1GtBoard.h:102
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:150
#define COND_SERIALIZABLE
Definition: Serializable.h:39
bool operator<(const L1GtBoard &) const
less than operator
Definition: L1GtBoard.cc:159
const int gtBitEvmActiveBoards() const
Definition: L1GtBoard.h:97
bool operator!=(const L1GtBoard &) const
unequal operator
Definition: L1GtBoard.cc:156
L1GtBoardType
board types in GT
const std::vector< L1GtPsbQuad > & gtQuadInPsb() const
Definition: L1GtBoard.h:113
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:165
void setGtBoardIndex(const int &)
Definition: L1GtBoard.cc:177
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:154
virtual ~L1GtBoard()
destructor
Definition: L1GtBoard.cc:64
static const int NumberCablesBoard
number of InfiniCables per board
Definition: L1GtBoard.h:64
void setGtBoardType(const L1GtBoardType &)
Definition: L1GtBoard.cc:174
void setGtQuadInPsb(const std::vector< L1GtPsbQuad > &)
Definition: L1GtBoard.cc:211