CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends
L1GtBoard Class Reference

#include <L1GtBoard.h>

Public Member Functions

const int gtBitDaqActiveBoards () const
 
const int gtBitEvmActiveBoards () const
 
const int gtBoardHexName () const
 get / set board hex fragment name in hw record More...
 
const uint16_t gtBoardId () const
 get the board ID More...
 
const int gtBoardIndex () const
 get / set board index More...
 
std::string gtBoardName () const
 return board name - it depends on L1GtBoardType enum!!! More...
 
const int gtBoardSlot () const
 get / set board slot More...
 
const L1GtBoardType gtBoardType () const
 get / set board type More...
 
const std::map< int, std::vector< L1GtObject > > & gtInputPsbChannels () const
 
const int gtPositionDaqRecord () const
 
const int gtPositionEvmRecord () const
 
const std::vector< L1GtPsbQuad > & gtQuadInPsb () const
 
 L1GtBoard ()
 constructors More...
 
 L1GtBoard (const L1GtBoardType &)
 
 L1GtBoard (const L1GtBoardType &, const int &)
 
 L1GtBoard (const L1GtBoard &)
 copy constructor More...
 
bool operator!= (const L1GtBoard &) const
 unequal operator More...
 
bool operator< (const L1GtBoard &) const
 less than operator More...
 
L1GtBoardoperator= (const L1GtBoard &)
 assignment operator More...
 
bool operator== (const L1GtBoard &) const
 equal operator More...
 
void print (std::ostream &myCout) const
 print board More...
 
void setGtBitDaqActiveBoards (const int &)
 
void setGtBitEvmActiveBoards (const int &)
 
void setGtBoardHexName (const int &)
 
void setGtBoardIndex (const int &)
 
void setGtBoardSlot (const int &)
 
void setGtBoardType (const L1GtBoardType &)
 
void setGtInputPsbChannels (const std::map< int, std::vector< L1GtObject > > &)
 
void setGtPositionDaqRecord (const int &)
 
void setGtPositionEvmRecord (const int &)
 
void setGtQuadInPsb (const std::vector< L1GtPsbQuad > &)
 
virtual ~L1GtBoard ()
 destructor More...
 

Static Public Attributes

static const int NumberCablesBoard = 4
 number of InfiniCables per board More...
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

int m_gtBitDaqActiveBoards
 
int m_gtBitEvmActiveBoards
 
int m_gtBoardHexName
 
int m_gtBoardIndex
 board index More...
 
int m_gtBoardSlot
 the slot of board (part of Board_Id) More...
 
L1GtBoardType m_gtBoardType
 board type (from L1GtBoardType enum) More...
 
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
 
int m_gtPositionDaqRecord
 the position of board data block in the GT DAQ readout record More...
 
int m_gtPositionEvmRecord
 the position of board data block in the GT EVM readout record More...
 
std::vector< L1GtPsbQuadm_gtQuadInPsb
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 
std::ostream & operator<< (std::ostream &, const L1GtBoard &)
 output stream operator More...
 

Detailed Description

Description: class for L1 GT board.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 35 of file L1GtBoard.h.

Constructor & Destructor Documentation

◆ L1GtBoard() [1/4]

L1GtBoard::L1GtBoard ( )

constructors

Definition at line 30 of file L1GtBoard.cc.

30  {
31  // empty
32 }

◆ L1GtBoard() [2/4]

L1GtBoard::L1GtBoard ( const L1GtBoardType gtBoardTypeValue)

Definition at line 34 of file L1GtBoard.cc.

References m_gtBitDaqActiveBoards, m_gtBitEvmActiveBoards, m_gtBoardHexName, m_gtBoardIndex, m_gtBoardSlot, m_gtPositionDaqRecord, m_gtPositionEvmRecord, m_gtQuadInPsb, and NumberCablesBoard.

34  : m_gtBoardType(gtBoardTypeValue) {
35  m_gtBoardIndex = -1;
36 
39 
42 
43  m_gtBoardSlot = -1;
44  m_gtBoardHexName = 0;
45 
47 }
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:146
int m_gtBoardHexName
Definition: L1GtBoard.h:161
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140
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
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:150
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:165
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:154
static const int NumberCablesBoard
number of InfiniCables per board
Definition: L1GtBoard.h:64

◆ L1GtBoard() [3/4]

L1GtBoard::L1GtBoard ( const L1GtBoardType gtBoardTypeValue,
const int &  gtBoardIndexValue 
)

Definition at line 49 of file L1GtBoard.cc.

References m_gtBitDaqActiveBoards, m_gtBitEvmActiveBoards, m_gtBoardHexName, m_gtBoardSlot, m_gtPositionDaqRecord, m_gtPositionEvmRecord, m_gtQuadInPsb, and NumberCablesBoard.

50  : m_gtBoardType(gtBoardTypeValue), m_gtBoardIndex(gtBoardIndexValue) {
53 
56 
57  m_gtBoardSlot = -1;
58  m_gtBoardHexName = 0;
59 
61 }
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:146
int m_gtBoardHexName
Definition: L1GtBoard.h:161
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140
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
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:150
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:165
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:154
static const int NumberCablesBoard
number of InfiniCables per board
Definition: L1GtBoard.h:64

◆ ~L1GtBoard()

L1GtBoard::~L1GtBoard ( )
virtual

destructor

Definition at line 64 of file L1GtBoard.cc.

64  {
65  // empty
66 }

◆ L1GtBoard() [4/4]

L1GtBoard::L1GtBoard ( const L1GtBoard gtb)

copy constructor

Definition at line 69 of file L1GtBoard.cc.

References m_gtBitDaqActiveBoards, m_gtBitEvmActiveBoards, m_gtBoardHexName, m_gtBoardIndex, m_gtBoardSlot, m_gtBoardType, m_gtInputPsbChannels, m_gtPositionDaqRecord, m_gtPositionEvmRecord, and m_gtQuadInPsb.

69  {
72 
75 
78 
81 
83 
85 }
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
int m_gtBoardHexName
Definition: L1GtBoard.h:161
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140
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
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:150
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:165
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:154

Member Function Documentation

◆ gtBitDaqActiveBoards()

const int L1GtBoard::gtBitDaqActiveBoards ( ) const
inline

get / set the bit of board in the GTFE ACTIVE_BOARDS for the GT DAQ readout record

Definition at line 91 of file L1GtBoard.h.

References m_gtBitDaqActiveBoards.

91 { return m_gtBitDaqActiveBoards; }
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:150

◆ gtBitEvmActiveBoards()

const int L1GtBoard::gtBitEvmActiveBoards ( ) const
inline

get / set the bit of board in the GTFE ACTIVE_BOARDS for the GT EVM readout record

Definition at line 97 of file L1GtBoard.h.

References m_gtBitEvmActiveBoards.

97 { return m_gtBitEvmActiveBoards; }
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:154

◆ gtBoardHexName()

const int L1GtBoard::gtBoardHexName ( ) const
inline

get / set board hex fragment name in hw record

Definition at line 107 of file L1GtBoard.h.

References m_gtBoardHexName.

107 { return m_gtBoardHexName; }
int m_gtBoardHexName
Definition: L1GtBoard.h:161

◆ gtBoardId()

const uint16_t L1GtBoard::gtBoardId ( ) const

get the board ID

Definition at line 220 of file L1GtBoard.cc.

References GTFE, m_gtBoardHexName, m_gtBoardSlot, and m_gtBoardType.

Referenced by print().

220  {
221  uint16_t boardIdValue = 0;
222 
223  if (m_gtBoardType == GTFE) {
224  boardIdValue = boardIdValue | m_gtBoardSlot;
225  } else {
226  boardIdValue = boardIdValue | (m_gtBoardHexName << 8) | m_gtBoardSlot;
227  }
228 
229  return boardIdValue;
230 }
int m_gtBoardHexName
Definition: L1GtBoard.h:161
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtBoard.h:157
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137

◆ gtBoardIndex()

const int L1GtBoard::gtBoardIndex ( ) const
inline

get / set board index

Definition at line 73 of file L1GtBoard.h.

References m_gtBoardIndex.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer(), and operator<().

73 { return m_gtBoardIndex; }
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140

◆ gtBoardName()

std::string L1GtBoard::gtBoardName ( ) const

return board name - it depends on L1GtBoardType enum!!!

Definition at line 233 of file L1GtBoard.cc.

References FDL, GMT, GTFE, m_gtBoardType, PSB, AlCaHLTBitMon_QueryRunRegistry::string, TCS, and TIM.

Referenced by print().

233  {
234  std::string gtBoardNameValue;
235 
236  // active board, add its size
237  switch (m_gtBoardType) {
238  case GTFE: {
239  gtBoardNameValue = "GTFE";
240  } break;
241  case FDL: {
242  gtBoardNameValue = "FDL";
243  } break;
244  case PSB: {
245  gtBoardNameValue = "PSB";
246  } break;
247  case GMT: {
248  gtBoardNameValue = "GMT";
249  } break;
250  case TCS: {
251  gtBoardNameValue = "TCS";
252  } break;
253  case TIM: {
254  gtBoardNameValue = "TIM";
255  } break;
256  default: {
257  //edm::LogWarning("L1GtBoard") << "\n\nError: no such board type" << m_gtBoardType
258  //<< " in enum L1GtBoardType from L1GtFwd\n\n" << std::endl;
259  gtBoardNameValue = "ERROR";
260  } break;
261  }
262 
263  return gtBoardNameValue;
264 }
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137

◆ gtBoardSlot()

const int L1GtBoard::gtBoardSlot ( ) const
inline

get / set board slot

Definition at line 102 of file L1GtBoard.h.

References m_gtBoardSlot.

102 { return m_gtBoardSlot; }
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtBoard.h:157

◆ gtBoardType()

const L1GtBoardType L1GtBoard::gtBoardType ( ) const
inline

get / set board type

Definition at line 68 of file L1GtBoard.h.

References m_gtBoardType.

Referenced by operator<().

68 { return m_gtBoardType; }
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137

◆ gtInputPsbChannels()

const std::map<int, std::vector<L1GtObject> >& L1GtBoard::gtInputPsbChannels ( ) const
inline

get / set detailed input configuration for PSB (objects pro channel) int: channel number

Definition at line 119 of file L1GtBoard.h.

References m_gtInputPsbChannels.

119 { return m_gtInputPsbChannels; }
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
Definition: L1GtBoard.h:170

◆ gtPositionDaqRecord()

const int L1GtBoard::gtPositionDaqRecord ( ) const
inline

get / set the position of board data block in the GT DAQ readout record

Definition at line 79 of file L1GtBoard.h.

References m_gtPositionDaqRecord.

79 { return m_gtPositionDaqRecord; }
int m_gtPositionDaqRecord
the position of board data block in the GT DAQ readout record
Definition: L1GtBoard.h:143

◆ gtPositionEvmRecord()

const int L1GtBoard::gtPositionEvmRecord ( ) const
inline

get / set the position of board data block in the GT EVM readout record

Definition at line 85 of file L1GtBoard.h.

References m_gtPositionEvmRecord.

85 { return m_gtPositionEvmRecord; }
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:146

◆ gtQuadInPsb()

const std::vector<L1GtPsbQuad>& L1GtBoard::gtQuadInPsb ( ) const
inline

get / set L1 quadruplet (4x16 bits)(cable) in the PSB input valid for PSB only

Definition at line 113 of file L1GtBoard.h.

References m_gtQuadInPsb.

113 { return m_gtQuadInPsb; }
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:165

◆ operator!=()

bool L1GtBoard::operator!= ( const L1GtBoard result) const

unequal operator

Definition at line 156 of file L1GtBoard.cc.

References mps_fire::result.

156 { return !(result == *this); }

◆ operator<()

bool L1GtBoard::operator< ( const L1GtBoard gtb) const

less than operator

Definition at line 159 of file L1GtBoard.cc.

References gtBoardIndex(), gtBoardType(), m_gtBoardIndex, and m_gtBoardType.

159  {
160  if (m_gtBoardType < gtb.gtBoardType()) {
161  return true;
162  } else {
163  if (m_gtBoardType == gtb.gtBoardType()) {
164  if (m_gtBoardIndex < gtb.gtBoardIndex()) {
165  return true;
166  }
167  }
168  }
169 
170  return false;
171 }
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140
const int gtBoardIndex() const
get / set board index
Definition: L1GtBoard.h:73
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137
const L1GtBoardType gtBoardType() const
get / set board type
Definition: L1GtBoard.h:68

◆ operator=()

L1GtBoard & L1GtBoard::operator= ( const L1GtBoard gtb)

assignment operator

Definition at line 88 of file L1GtBoard.cc.

References m_gtBitDaqActiveBoards, m_gtBitEvmActiveBoards, m_gtBoardHexName, m_gtBoardIndex, m_gtBoardSlot, m_gtBoardType, m_gtInputPsbChannels, m_gtPositionDaqRecord, m_gtPositionEvmRecord, and m_gtQuadInPsb.

88  {
89  if (this != &gtb) {
92 
95 
98 
101 
104  }
105 
106  return *this;
107 }
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
int m_gtBoardHexName
Definition: L1GtBoard.h:161
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140
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
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:150
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:165
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:154

◆ operator==()

bool L1GtBoard::operator== ( const L1GtBoard gtb) const

equal operator

Definition at line 110 of file L1GtBoard.cc.

References m_gtBitDaqActiveBoards, m_gtBitEvmActiveBoards, m_gtBoardHexName, m_gtBoardIndex, m_gtBoardSlot, m_gtBoardType, m_gtInputPsbChannels, m_gtPositionDaqRecord, m_gtPositionEvmRecord, and m_gtQuadInPsb.

110  {
111  if (m_gtBoardType != gtb.m_gtBoardType) {
112  return false;
113  }
114 
115  if (m_gtBoardIndex != gtb.m_gtBoardIndex) {
116  return false;
117  }
118 
120  return false;
121  }
122 
124  return false;
125  }
126 
128  return false;
129  }
130 
132  return false;
133  }
134 
135  if (m_gtBoardSlot != gtb.m_gtBoardSlot) {
136  return false;
137  }
138 
139  if (m_gtBoardHexName != gtb.m_gtBoardHexName) {
140  return false;
141  }
142 
143  if (m_gtQuadInPsb != gtb.m_gtQuadInPsb) {
144  return false;
145  }
146 
148  return false;
149  }
150 
151  // all members identical
152  return true;
153 }
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
int m_gtBoardHexName
Definition: L1GtBoard.h:161
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140
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
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:150
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:165
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:154

◆ print()

void L1GtBoard::print ( std::ostream &  myCout) const

print board

Definition at line 267 of file L1GtBoard.cc.

References amcDumpToRaw_cfi::boardId, BPTX, Castor, CenJet, CenJetQ, TauDecayModes::dec, mps_fire::end, ESumsQ, ETM, ETT, ForJet, ForJetQ, Free, gtBoardId(), gtBoardName(), GtExternal, HfBitCounts, HfQ, HfRingEtSums, HTM, HTT, IsoEG, IsoEGQ, JetCounts, JetCountsQ, m_gtBitDaqActiveBoards, m_gtBitEvmActiveBoards, m_gtBoardHexName, m_gtBoardIndex, m_gtBoardType, m_gtInputPsbChannels, m_gtPositionDaqRecord, m_gtPositionEvmRecord, m_gtQuadInPsb, genParticles_cff::map, MQB1, MQB10, MQB2, MQB5, MQB6, MQB9, MQF11, MQF12, MQF3, MQF4, MQF7, MQF8, Mu, NoIsoEG, NoIsoEGQ, electrons_cff::objType, PSB, findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, TauJet, TauJetQ, TechTr, and TechTrig.

267  {
268  uint16_t boardId = gtBoardId();
269  std::string boardName = gtBoardName();
270 
271  myCout << "Board ID: " << std::hex << boardId << std::dec << std::endl
272  << "Board Name: " << boardName << "_" << m_gtBoardIndex << std::endl
273  << "Position in DAQ Record: " << m_gtPositionDaqRecord << std::endl
274  << "Position in EVM Record: " << m_gtPositionEvmRecord << std::endl
275  << "Active_Boards bit in DAQ Record: " << m_gtBitDaqActiveBoards << std::endl
276  << "Active_Boards bit in EVM Record: " << m_gtBitEvmActiveBoards << std::endl
277  << "Board HexName: " << std::hex << m_gtBoardHexName << std::dec << std::endl;
278 
279  if (m_gtBoardType == PSB) {
280  myCout << "PSB Input per Cable: DEPRECATED" << std::endl;
281  }
282 
283  for (std::vector<L1GtPsbQuad>::const_iterator cIt = m_gtQuadInPsb.begin(); cIt != m_gtQuadInPsb.end(); ++cIt) {
285 
286  if (*cIt == TechTr) {
287  objType = "TechTr";
288  } else if (*cIt == IsoEGQ) {
289  objType = "IsoEGQ";
290  } else if (*cIt == NoIsoEGQ) {
291  objType = "NoIsoEGQ";
292  } else if (*cIt == CenJetQ) {
293  objType = "CenJetQ";
294  } else if (*cIt == ForJetQ) {
295  objType = "ForJetQ";
296  } else if (*cIt == TauJetQ) {
297  objType = "TauJetQ";
298  } else if (*cIt == ESumsQ) {
299  objType = "ESumsQ";
300  } else if (*cIt == JetCountsQ) {
301  objType = "JetCountsQ";
302  } else if (*cIt == MQB1) {
303  objType = "MQB1";
304  } else if (*cIt == MQB2) {
305  objType = "MQB2";
306  } else if (*cIt == MQF3) {
307  objType = "MQF3";
308  } else if (*cIt == MQF4) {
309  objType = "MQF4";
310  } else if (*cIt == MQB5) {
311  objType = "MQB5";
312  } else if (*cIt == MQB6) {
313  objType = "MQB6";
314  } else if (*cIt == MQF7) {
315  objType = "MQF7";
316  } else if (*cIt == MQF8) {
317  objType = "MQF8";
318  } else if (*cIt == MQB9) {
319  objType = "MQB9";
320  } else if (*cIt == MQB10) {
321  objType = "MQB10";
322  } else if (*cIt == MQF11) {
323  objType = "MQF11";
324  } else if (*cIt == MQF12) {
325  objType = "MQF12";
326  } else if (*cIt == Free) {
327  objType = "Free";
328  } else if (*cIt == HfQ) {
329  objType = "HfQ";
330  } else {
331  myCout << "\n\nError: no such member " << (*cIt) << " in enum L1GtPsbQuad\n\n" << std::endl;
332  objType = "ERROR";
333  }
334 
335  myCout << " " << objType << " ";
336  }
337  myCout << std::endl;
338 
339  if (m_gtBoardType == PSB) {
340  myCout << "Input objects pro channel:";
341  }
342 
343  for (std::map<int, std::vector<L1GtObject> >::const_iterator cIt = m_gtInputPsbChannels.begin();
344  cIt != m_gtInputPsbChannels.end();
345  ++cIt) {
346  myCout << "\n Channel " << cIt->first << " (" << (cIt->second).size() << " objects): ";
347 
348  for (std::vector<L1GtObject>::const_iterator itObj = (cIt->second).begin(); itObj != (cIt->second).end(); ++itObj) {
349  switch (*itObj) {
350  case Mu: {
351  myCout << " Mu ";
352  }
353 
354  break;
355  case NoIsoEG: {
356  myCout << " NoIsoEG ";
357  }
358 
359  break;
360  case IsoEG: {
361  myCout << " IsoEG ";
362  }
363 
364  break;
365  case CenJet: {
366  myCout << " CenJet ";
367  }
368 
369  break;
370  case ForJet: {
371  myCout << " ForJet ";
372  }
373 
374  break;
375  case TauJet: {
376  myCout << " TauJet ";
377  }
378 
379  break;
380  case ETM: {
381  myCout << " ETM ";
382  }
383 
384  break;
385  case ETT: {
386  myCout << " ETT ";
387  }
388 
389  break;
390  case HTT: {
391  myCout << " HTT ";
392  }
393 
394  break;
395  case HTM: {
396  myCout << " HTM ";
397  }
398 
399  break;
400  case JetCounts: {
401  myCout << " JetCounts ";
402  }
403 
404  break;
405  case HfBitCounts: {
406  myCout << " HfBitCounts ";
407  }
408 
409  break;
410  case HfRingEtSums: {
411  myCout << " HfRingEtSums ";
412  }
413 
414  break;
415  case TechTrig: {
416  myCout << " TechTrig ";
417  }
418 
419  break;
420  case Castor: {
421  myCout << " Castor ";
422  }
423 
424  break;
425  case BPTX: {
426  myCout << " BPTX ";
427  }
428 
429  break;
430  case GtExternal: {
431  myCout << " GtExternal ";
432  }
433 
434  break;
435  default: {
436  myCout << " ERROR: Unknown type " << (*itObj);
437  } break;
438  }
439  }
440  }
441 
442  myCout << std::endl;
443 }
size
Write out results.
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:146
Definition: L1GtObject.h:38
const uint16_t gtBoardId() const
get the board ID
Definition: L1GtBoard.cc:220
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
Definition: L1GtBoard.h:170
Definition: L1GtObject.h:35
int m_gtBoardHexName
Definition: L1GtBoard.h:161
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140
int m_gtPositionDaqRecord
the position of board data block in the GT DAQ readout record
Definition: L1GtBoard.h:143
Definition: L1GtObject.h:37
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137
std::string gtBoardName() const
return board name - it depends on L1GtBoardType enum!!!
Definition: L1GtBoard.cc:233
Definition: L1GtObject.h:29
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:150
Definition: L1GtObject.h:36
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:165
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:154

◆ serialize()

template<class Archive >
void L1GtBoard::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setGtBitDaqActiveBoards()

void L1GtBoard::setGtBitDaqActiveBoards ( const int &  gtBitDaqActiveBoardsValue)

Definition at line 193 of file L1GtBoard.cc.

References m_gtBitDaqActiveBoards.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

193  {
194  m_gtBitDaqActiveBoards = gtBitDaqActiveBoardsValue;
195 }
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:150

◆ setGtBitEvmActiveBoards()

void L1GtBoard::setGtBitEvmActiveBoards ( const int &  gtBitEvmActiveBoardsValue)

Definition at line 199 of file L1GtBoard.cc.

References m_gtBitEvmActiveBoards.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

199  {
200  m_gtBitEvmActiveBoards = gtBitEvmActiveBoardsValue;
201 }
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:154

◆ setGtBoardHexName()

void L1GtBoard::setGtBoardHexName ( const int &  gtBoardHexNameValue)

Definition at line 207 of file L1GtBoard.cc.

References m_gtBoardHexName.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

207 { m_gtBoardHexName = gtBoardHexNameValue; }
int m_gtBoardHexName
Definition: L1GtBoard.h:161

◆ setGtBoardIndex()

void L1GtBoard::setGtBoardIndex ( const int &  gtBoardIndexValue)

Definition at line 177 of file L1GtBoard.cc.

References m_gtBoardIndex.

177 { m_gtBoardIndex = gtBoardIndexValue; }
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:140

◆ setGtBoardSlot()

void L1GtBoard::setGtBoardSlot ( const int &  gtBoardSlotValue)

Definition at line 204 of file L1GtBoard.cc.

References m_gtBoardSlot.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

204 { m_gtBoardSlot = gtBoardSlotValue; }
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtBoard.h:157

◆ setGtBoardType()

void L1GtBoard::setGtBoardType ( const L1GtBoardType gtBoardTypeValue)

Definition at line 174 of file L1GtBoard.cc.

References m_gtBoardType.

174 { m_gtBoardType = gtBoardTypeValue; }
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:137

◆ setGtInputPsbChannels()

void L1GtBoard::setGtInputPsbChannels ( const std::map< int, std::vector< L1GtObject > > &  gtInputPsbChannelsValue)

Definition at line 215 of file L1GtBoard.cc.

References m_gtInputPsbChannels.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

215  {
216  m_gtInputPsbChannels = gtInputPsbChannelsValue;
217 }
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
Definition: L1GtBoard.h:170

◆ setGtPositionDaqRecord()

void L1GtBoard::setGtPositionDaqRecord ( const int &  gtPositionDaqRecordValue)

Definition at line 181 of file L1GtBoard.cc.

References m_gtPositionDaqRecord.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

181  {
182  m_gtPositionDaqRecord = gtPositionDaqRecordValue;
183 }
int m_gtPositionDaqRecord
the position of board data block in the GT DAQ readout record
Definition: L1GtBoard.h:143

◆ setGtPositionEvmRecord()

void L1GtBoard::setGtPositionEvmRecord ( const int &  gtPositionEvmRecordValue)

Definition at line 187 of file L1GtBoard.cc.

References m_gtPositionEvmRecord.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

187  {
188  m_gtPositionEvmRecord = gtPositionEvmRecordValue;
189 }
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:146

◆ setGtQuadInPsb()

void L1GtBoard::setGtQuadInPsb ( const std::vector< L1GtPsbQuad > &  gtQuadInPsbValue)

Definition at line 211 of file L1GtBoard.cc.

References m_gtQuadInPsb.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

211 { m_gtQuadInPsb = gtQuadInPsbValue; }
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:165

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 172 of file L1GtBoard.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 172 of file L1GtBoard.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const L1GtBoard result 
)
friend

output stream operator

Definition at line 446 of file L1GtBoard.cc.

446  {
447  result.print(os);
448  return os;
449 }

Member Data Documentation

◆ m_gtBitDaqActiveBoards

int L1GtBoard::m_gtBitDaqActiveBoards
private

the bit of board in the GTFE ACTIVE_BOARDS for the GT DAQ readout record

Definition at line 150 of file L1GtBoard.h.

Referenced by gtBitDaqActiveBoards(), L1GtBoard(), operator=(), operator==(), print(), and setGtBitDaqActiveBoards().

◆ m_gtBitEvmActiveBoards

int L1GtBoard::m_gtBitEvmActiveBoards
private

the bit of board in the GTFE ACTIVE_BOARDS for the GT EVM readout record

Definition at line 154 of file L1GtBoard.h.

Referenced by gtBitEvmActiveBoards(), L1GtBoard(), operator=(), operator==(), print(), and setGtBitEvmActiveBoards().

◆ m_gtBoardHexName

int L1GtBoard::m_gtBoardHexName
private

board hex fragment name in hw record gives the bits written for each GT board in the Board_Id

Definition at line 161 of file L1GtBoard.h.

Referenced by gtBoardHexName(), gtBoardId(), L1GtBoard(), operator=(), operator==(), print(), and setGtBoardHexName().

◆ m_gtBoardIndex

int L1GtBoard::m_gtBoardIndex
private

board index

Definition at line 140 of file L1GtBoard.h.

Referenced by gtBoardIndex(), L1GtBoard(), operator<(), operator=(), operator==(), print(), and setGtBoardIndex().

◆ m_gtBoardSlot

int L1GtBoard::m_gtBoardSlot
private

the slot of board (part of Board_Id)

Definition at line 157 of file L1GtBoard.h.

Referenced by gtBoardId(), gtBoardSlot(), L1GtBoard(), operator=(), operator==(), and setGtBoardSlot().

◆ m_gtBoardType

L1GtBoardType L1GtBoard::m_gtBoardType
private

board type (from L1GtBoardType enum)

Definition at line 137 of file L1GtBoard.h.

Referenced by gtBoardId(), gtBoardName(), gtBoardType(), L1GtBoard(), operator<(), operator=(), operator==(), print(), and setGtBoardType().

◆ m_gtInputPsbChannels

std::map<int, std::vector<L1GtObject> > L1GtBoard::m_gtInputPsbChannels
private

valid for PSB only detailed input configuration for PSB (objects pro channel) int: channel number

Definition at line 170 of file L1GtBoard.h.

Referenced by gtInputPsbChannels(), L1GtBoard(), operator=(), operator==(), print(), and setGtInputPsbChannels().

◆ m_gtPositionDaqRecord

int L1GtBoard::m_gtPositionDaqRecord
private

the position of board data block in the GT DAQ readout record

Definition at line 143 of file L1GtBoard.h.

Referenced by gtPositionDaqRecord(), L1GtBoard(), operator=(), operator==(), print(), and setGtPositionDaqRecord().

◆ m_gtPositionEvmRecord

int L1GtBoard::m_gtPositionEvmRecord
private

the position of board data block in the GT EVM readout record

Definition at line 146 of file L1GtBoard.h.

Referenced by gtPositionEvmRecord(), L1GtBoard(), operator=(), operator==(), print(), and setGtPositionEvmRecord().

◆ m_gtQuadInPsb

std::vector<L1GtPsbQuad> L1GtBoard::m_gtQuadInPsb
private

valid for PSB only L1 quadruplet (4x16 bits)(cable) in the PSB input

Definition at line 165 of file L1GtBoard.h.

Referenced by gtQuadInPsb(), L1GtBoard(), operator=(), operator==(), print(), and setGtQuadInPsb().

◆ NumberCablesBoard

const int L1GtBoard::NumberCablesBoard = 4
static

number of InfiniCables per board

Definition at line 64 of file L1GtBoard.h.

Referenced by L1GtBoard(), and L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().