CMS 3D CMS Logo

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*/
L1GtBoard::gtBoardSlot
const int gtBoardSlot() const
get / set board slot
Definition: L1GtBoard.h:102
L1GtBoard::setGtBoardType
void setGtBoardType(const L1GtBoardType &)
Definition: L1GtBoard.cc:174
L1GtBoard::~L1GtBoard
virtual ~L1GtBoard()
destructor
Definition: L1GtBoard.cc:64
L1GtBoard::print
void print(std::ostream &myCout) const
print board
Definition: L1GtBoard.cc:267
L1GtBoard::setGtBoardIndex
void setGtBoardIndex(const int &)
Definition: L1GtBoard.cc:177
L1GtBoard::setGtQuadInPsb
void setGtQuadInPsb(const std::vector< L1GtPsbQuad > &)
Definition: L1GtBoard.cc:211
L1GtBoard::setGtBoardSlot
void setGtBoardSlot(const int &)
Definition: L1GtBoard.cc:204
L1GlobalTriggerReadoutSetupFwd.h
L1GtBoard::setGtPositionEvmRecord
void setGtPositionEvmRecord(const int &)
Definition: L1GtBoard.cc:187
L1GtBoard::gtBoardType
const L1GtBoardType gtBoardType() const
get / set board type
Definition: L1GtBoard.h:68
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1GtBoard::m_gtBoardType
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137
L1GtBoard::NumberCablesBoard
static const int NumberCablesBoard
number of InfiniCables per board
Definition: L1GtBoard.h:64
L1GtBoard::setGtPositionDaqRecord
void setGtPositionDaqRecord(const int &)
Definition: L1GtBoard.cc:181
L1GtBoard::setGtInputPsbChannels
void setGtInputPsbChannels(const std::map< int, std::vector< L1GtObject > > &)
Definition: L1GtBoard.cc:215
L1GtBoard::m_gtQuadInPsb
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:165
L1GtBoard::setGtBoardHexName
void setGtBoardHexName(const int &)
Definition: L1GtBoard.cc:207
L1GtBoard::gtPositionDaqRecord
const int gtPositionDaqRecord() const
Definition: L1GtBoard.h:79
L1GtBoard::gtQuadInPsb
const std::vector< L1GtPsbQuad > & gtQuadInPsb() const
Definition: L1GtBoard.h:113
L1GtBoard::operator<<
friend std::ostream & operator<<(std::ostream &, const L1GtBoard &)
output stream operator
Definition: L1GtBoard.cc:446
L1GtBoard::gtBitDaqActiveBoards
const int gtBitDaqActiveBoards() const
Definition: L1GtBoard.h:91
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtBoard::m_gtBitDaqActiveBoards
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:150
L1GtBoard::gtBoardName
std::string gtBoardName() const
return board name - it depends on L1GtBoardType enum!!!
Definition: L1GtBoard.cc:233
L1GtBoard::m_gtBoardSlot
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtBoard.h:157
L1GtBoard::operator=
L1GtBoard & operator=(const L1GtBoard &)
assignment operator
Definition: L1GtBoard.cc:88
L1GtBoard
Definition: L1GtBoard.h:35
Serializable.h
L1GtFwd.h
L1GtBoard::operator!=
bool operator!=(const L1GtBoard &) const
unequal operator
Definition: L1GtBoard.cc:156
L1GtBoard::gtBitEvmActiveBoards
const int gtBitEvmActiveBoards() const
Definition: L1GtBoard.h:97
L1GtBoard::gtBoardIndex
const int gtBoardIndex() const
get / set board index
Definition: L1GtBoard.h:73
L1GtBoard::operator<
bool operator<(const L1GtBoard &) const
less than operator
Definition: L1GtBoard.cc:159
L1GtBoard::m_gtBoardIndex
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140
L1GtBoard::operator==
bool operator==(const L1GtBoard &) const
equal operator
Definition: L1GtBoard.cc:110
L1GtBoard::m_gtBitEvmActiveBoards
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:154
L1GtBoard::gtBoardHexName
const int gtBoardHexName() const
get / set board hex fragment name in hw record
Definition: L1GtBoard.h:107
L1GtBoard::m_gtPositionDaqRecord
int m_gtPositionDaqRecord
the position of board data block in the GT DAQ readout record
Definition: L1GtBoard.h:143
L1GtBoard::gtInputPsbChannels
const std::map< int, std::vector< L1GtObject > > & gtInputPsbChannels() const
Definition: L1GtBoard.h:119
L1GtBoard::m_gtInputPsbChannels
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
Definition: L1GtBoard.h:170
L1GtBoard::m_gtPositionEvmRecord
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:146
genParticles_cff.map
map
Definition: genParticles_cff.py:11
L1GtBoard::gtBoardId
const uint16_t gtBoardId() const
get the board ID
Definition: L1GtBoard.cc:220
L1GtBoard::L1GtBoard
L1GtBoard()
constructors
Definition: L1GtBoard.cc:30
L1GtBoardType
L1GtBoardType
board types in GT
Definition: L1GtDefinitions.h:28
L1GtBoard::gtPositionEvmRecord
const int gtPositionEvmRecord() const
Definition: L1GtBoard.h:85
L1GtBoard::setGtBitEvmActiveBoards
void setGtBitEvmActiveBoards(const int &)
Definition: L1GtBoard.cc:199
L1GtBoard::m_gtBoardHexName
int m_gtBoardHexName
Definition: L1GtBoard.h:161
L1GtBoard::setGtBitDaqActiveBoards
void setGtBitDaqActiveBoards(const int &)
Definition: L1GtBoard.cc:193