test
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
22 
23 #include <string>
24 #include <vector>
25 #include <map>
26 
27 #include <boost/cstdint.hpp>
28 
29 // user include files
32 
33 // forward declarations
34 
35 // class declaration
36 class L1GtBoard
37 {
38 
39 public:
40 
42  L1GtBoard();
43 
44  L1GtBoard(const L1GtBoardType&);
45 
46  L1GtBoard(const L1GtBoardType&, const int&);
47 
49  virtual ~L1GtBoard();
50 
52  L1GtBoard(const L1GtBoard&);
53 
55  L1GtBoard& operator=(const L1GtBoard&);
56 
58  bool operator==(const L1GtBoard&) const;
59 
61  bool operator!=(const L1GtBoard&) const;
62 
64  bool operator< (const L1GtBoard&) const;
65 
66 public:
67 
69  static const int NumberCablesBoard;
70 
71 public:
72 
74  inline const L1GtBoardType gtBoardType() const
75  {
76  return m_gtBoardType;
77  }
78 
79  void setGtBoardType(const L1GtBoardType&);
80 
82  inline const int gtBoardIndex() const
83  {
84  return m_gtBoardIndex;
85  }
86 
87  void setGtBoardIndex(const int&);
88 
91  inline const int gtPositionDaqRecord() const
92  {
93  return m_gtPositionDaqRecord;
94  }
95 
96  void setGtPositionDaqRecord(const int&);
97 
100  inline const int gtPositionEvmRecord() const
101  {
102  return m_gtPositionEvmRecord;
103  }
104 
105  void setGtPositionEvmRecord(const int&);
106 
109  inline const int gtBitDaqActiveBoards() const
110  {
111  return m_gtBitDaqActiveBoards;
112  }
113 
114  void setGtBitDaqActiveBoards(const int&);
115 
118  inline const int gtBitEvmActiveBoards() const
119  {
120  return m_gtBitEvmActiveBoards;
121  }
122 
123  void setGtBitEvmActiveBoards(const int&);
124 
126  inline const int gtBoardSlot() const
127  {
128  return m_gtBoardSlot;
129  }
130 
131  void setGtBoardSlot(const int&);
132 
134  inline const int gtBoardHexName() const
135  {
136  return m_gtBoardHexName;
137  }
138 
139  void setGtBoardHexName(const int&);
140 
141 
144  const std::vector<L1GtPsbQuad>& gtQuadInPsb() const
145  {
146  return m_gtQuadInPsb;
147  }
148 
149  void setGtQuadInPsb(const std::vector<L1GtPsbQuad>&);
150 
153  const std::map<int, std::vector<L1GtObject> >& gtInputPsbChannels() const {
154  return m_gtInputPsbChannels;
155  }
156 
157  void setGtInputPsbChannels(const std::map<int, std::vector<L1GtObject> >&);
158 
160  const boost::uint16_t gtBoardId() const;
161 
163  std::string gtBoardName() const;
164 
166  void print(std::ostream& myCout) const;
167 
169  friend std::ostream& operator<<(std::ostream&, const L1GtBoard&);
170 
171 
172 private:
173 
176 
179 
182 
185 
189 
193 
196 
200 
203  std::vector<L1GtPsbQuad> m_gtQuadInPsb;
204 
208  std::map<int, std::vector<L1GtObject> > m_gtInputPsbChannels;
209 
210 
212 };
213 
214 #endif /*CondFormats_L1TObjects_L1GtBoard_h*/
const L1GtBoardType gtBoardType() const
get / set board type
Definition: L1GtBoard.h:74
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:184
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
Definition: L1GtBoard.h:208
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:109
const int gtPositionDaqRecord() const
Definition: L1GtBoard.h:91
void setGtBitEvmActiveBoards(const int &)
Definition: L1GtBoard.cc:243
int m_gtBoardHexName
Definition: L1GtBoard.h:199
void print(std::ostream &myCout) const
print board
Definition: L1GtBoard.cc:336
const int gtPositionEvmRecord() const
Definition: L1GtBoard.h:100
void setGtPositionEvmRecord(const int &)
Definition: L1GtBoard.cc:228
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:178
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:181
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtBoard.h:195
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:82
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
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:134
const std::map< int, std::vector< L1GtObject > > & gtInputPsbChannels() const
Definition: L1GtBoard.h:153
const int gtBoardSlot() const
get / set board slot
Definition: L1GtBoard.h:126
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:188
#define COND_SERIALIZABLE
Definition: Serializable.h:38
bool operator<(const L1GtBoard &) const
less than operator
Definition: L1GtBoard.cc:191
const int gtBitEvmActiveBoards() const
Definition: L1GtBoard.h:118
bool operator!=(const L1GtBoard &) const
unequal operator
Definition: L1GtBoard.cc:183
const std::vector< L1GtPsbQuad > & gtQuadInPsb() const
Definition: L1GtBoard.h:144
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:203
void setGtBoardIndex(const int &)
Definition: L1GtBoard.cc:214
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:192
virtual ~L1GtBoard()
destructor
Definition: L1GtBoard.cc:77
static const int NumberCablesBoard
number of InfiniCables per board
Definition: L1GtBoard.h:69
void setGtBoardType(const L1GtBoardType &)
Definition: L1GtBoard.cc:208
void setGtQuadInPsb(const std::vector< L1GtPsbQuad > &)
Definition: L1GtBoard.cc:263