test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 boost::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 36 of file L1GtBoard.h.

Constructor & Destructor Documentation

L1GtBoard::L1GtBoard ( )

constructors

Definition at line 32 of file L1GtBoard.cc.

33 {
34 
35  // empty
36 
37 }
L1GtBoard::L1GtBoard ( const L1GtBoardType gtBoardTypeValue)

Definition at line 39 of file L1GtBoard.cc.

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

39  :
40  m_gtBoardType(gtBoardTypeValue)
41 {
42 
43  m_gtBoardIndex = -1;
44 
47 
50 
51  m_gtBoardSlot = -1;
52  m_gtBoardHexName = 0;
53 
55 
56 }
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:184
int m_gtBoardHexName
Definition: L1GtBoard.h:199
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:178
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
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:188
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:203
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:192
static const int NumberCablesBoard
number of InfiniCables per board
Definition: L1GtBoard.h:69
L1GtBoard::L1GtBoard ( const L1GtBoardType gtBoardTypeValue,
const int &  gtBoardIndexValue 
)

Definition at line 58 of file L1GtBoard.cc.

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

59  :
60  m_gtBoardType(gtBoardTypeValue), m_gtBoardIndex(gtBoardIndexValue)
61 {
62 
65 
68 
69  m_gtBoardSlot = -1;
70  m_gtBoardHexName = 0;
71 
73 
74 }
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:184
int m_gtBoardHexName
Definition: L1GtBoard.h:199
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:178
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
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:188
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:203
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:192
static const int NumberCablesBoard
number of InfiniCables per board
Definition: L1GtBoard.h:69
L1GtBoard::~L1GtBoard ( )
virtual

destructor

Definition at line 77 of file L1GtBoard.cc.

78 {
79  // empty
80 }
L1GtBoard::L1GtBoard ( const L1GtBoard gtb)

copy constructor

Definition at line 83 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.

84 {
85 
88 
91 
94 
97 
99 
101 
102 }
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
int m_gtBoardHexName
Definition: L1GtBoard.h:199
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:178
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
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:188
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:203
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:192

Member Function Documentation

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 109 of file L1GtBoard.h.

References m_gtBitDaqActiveBoards.

110  {
111  return m_gtBitDaqActiveBoards;
112  }
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:188
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 118 of file L1GtBoard.h.

References m_gtBitEvmActiveBoards.

119  {
120  return m_gtBitEvmActiveBoards;
121  }
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:192
const int L1GtBoard::gtBoardHexName ( ) const
inline

get / set board hex fragment name in hw record

Definition at line 134 of file L1GtBoard.h.

References m_gtBoardHexName.

135  {
136  return m_gtBoardHexName;
137  }
int m_gtBoardHexName
Definition: L1GtBoard.h:199
const boost::uint16_t L1GtBoard::gtBoardId ( ) const

get the board ID

Definition at line 275 of file L1GtBoard.cc.

References GTFE, m_gtBoardHexName, m_gtBoardSlot, and m_gtBoardType.

Referenced by print().

276 {
277 
278  boost::uint16_t boardIdValue = 0;
279 
280  if (m_gtBoardType == GTFE) {
281  boardIdValue = boardIdValue | m_gtBoardSlot;
282  } else {
283  boardIdValue = boardIdValue | (m_gtBoardHexName << 8) | m_gtBoardSlot;
284  }
285 
286  return boardIdValue;
287 }
int m_gtBoardHexName
Definition: L1GtBoard.h:199
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtBoard.h:195
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
const int L1GtBoard::gtBoardIndex ( ) const
inline

get / set board index

Definition at line 82 of file L1GtBoard.h.

References m_gtBoardIndex.

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

83  {
84  return m_gtBoardIndex;
85  }
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:178
std::string L1GtBoard::gtBoardName ( ) const

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

Definition at line 290 of file L1GtBoard.cc.

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

Referenced by print().

291 {
292 
293  std::string gtBoardNameValue;
294 
295  // active board, add its size
296  switch (m_gtBoardType) {
297 
298  case GTFE: {
299  gtBoardNameValue = "GTFE";
300  }
301  break;
302  case FDL: {
303  gtBoardNameValue = "FDL";
304  }
305  break;
306  case PSB: {
307  gtBoardNameValue = "PSB";
308  }
309  break;
310  case GMT: {
311  gtBoardNameValue = "GMT";
312  }
313  break;
314  case TCS: {
315  gtBoardNameValue = "TCS";
316  }
317  break;
318  case TIM: {
319  gtBoardNameValue = "TIM";
320  }
321  break;
322  default: {
323  //edm::LogWarning("L1GtBoard") << "\n\nError: no such board type" << m_gtBoardType
324  //<< " in enum L1GtBoardType from L1GtFwd\n\n" << std::endl;
325  gtBoardNameValue = "ERROR";
326  }
327  break;
328  }
329 
330 
331  return gtBoardNameValue;
332 
333 }
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
const int L1GtBoard::gtBoardSlot ( ) const
inline

get / set board slot

Definition at line 126 of file L1GtBoard.h.

References m_gtBoardSlot.

127  {
128  return m_gtBoardSlot;
129  }
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtBoard.h:195
const L1GtBoardType L1GtBoard::gtBoardType ( ) const
inline

get / set board type

Definition at line 74 of file L1GtBoard.h.

References m_gtBoardType.

Referenced by operator<().

75  {
76  return m_gtBoardType;
77  }
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
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 153 of file L1GtBoard.h.

References m_gtInputPsbChannels.

153  {
154  return m_gtInputPsbChannels;
155  }
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
Definition: L1GtBoard.h:208
const int L1GtBoard::gtPositionDaqRecord ( ) const
inline

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

Definition at line 91 of file L1GtBoard.h.

References m_gtPositionDaqRecord.

92  {
93  return m_gtPositionDaqRecord;
94  }
int m_gtPositionDaqRecord
the position of board data block in the GT DAQ readout record
Definition: L1GtBoard.h:181
const int L1GtBoard::gtPositionEvmRecord ( ) const
inline

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

Definition at line 100 of file L1GtBoard.h.

References m_gtPositionEvmRecord.

101  {
102  return m_gtPositionEvmRecord;
103  }
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:184
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 144 of file L1GtBoard.h.

References m_gtQuadInPsb.

145  {
146  return m_gtQuadInPsb;
147  }
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:203
bool L1GtBoard::operator!= ( const L1GtBoard result) const

unequal operator

Definition at line 183 of file L1GtBoard.cc.

184 {
185 
186  return !( result == *this);
187 
188 }
bool L1GtBoard::operator< ( const L1GtBoard gtb) const

less than operator

Definition at line 191 of file L1GtBoard.cc.

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

192 {
193  if (m_gtBoardType < gtb.gtBoardType()) {
194  return true;
195  } else {
196  if (m_gtBoardType == gtb.gtBoardType()) {
197 
198  if (m_gtBoardIndex < gtb.gtBoardIndex()) {
199  return true;
200  }
201  }
202  }
203 
204  return false;
205 }
const L1GtBoardType gtBoardType() const
get / set board type
Definition: L1GtBoard.h:74
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:178
const int gtBoardIndex() const
get / set board index
Definition: L1GtBoard.h:82
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
L1GtBoard & L1GtBoard::operator= ( const L1GtBoard gtb)

assignment operator

Definition at line 105 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.

106 {
107 
108  if ( this != &gtb ) {
109 
112 
115 
118 
121 
124 
125  }
126 
127  return *this;
128 
129 }
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
int m_gtBoardHexName
Definition: L1GtBoard.h:199
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:178
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
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:188
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:203
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:192
bool L1GtBoard::operator== ( const L1GtBoard gtb) const

equal operator

Definition at line 132 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.

133 {
134 
135  if (m_gtBoardType != gtb.m_gtBoardType) {
136  return false;
137  }
138 
139  if (m_gtBoardIndex != gtb.m_gtBoardIndex) {
140  return false;
141  }
142 
144  return false;
145  }
146 
148  return false;
149  }
150 
152  return false;
153  }
154 
156  return false;
157  }
158 
159  if (m_gtBoardSlot != gtb.m_gtBoardSlot) {
160  return false;
161  }
162 
163  if (m_gtBoardHexName != gtb.m_gtBoardHexName) {
164  return false;
165  }
166 
167  if (m_gtQuadInPsb != gtb.m_gtQuadInPsb) {
168  return false;
169  }
170 
172  return false;
173  }
174 
175  // all members identical
176  return true;
177 
178 }
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
int m_gtBoardHexName
Definition: L1GtBoard.h:199
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:178
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
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:188
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:203
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:192
void L1GtBoard::print ( std::ostream &  myCout) const

print board

Definition at line 336 of file L1GtBoard.cc.

References BPTX, CenJet, CenJetQ, 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, python.multivaluedict::map(), MQB1, MQB10, MQB2, MQB5, MQB6, MQB9, MQF11, MQF12, MQF3, MQF4, MQF7, MQF8, Mu, NoIsoEG, NoIsoEGQ, PSB, findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, TauJet, TauJetQ, TechTr, and TechTrig.

Referenced by operator<<().

337 {
338 
339  boost::uint16_t boardId = gtBoardId();
340  std::string boardName = gtBoardName();
341 
342  myCout
343  << "Board ID: " << std::hex << boardId << std::dec << std::endl
344  << "Board Name: " << boardName << "_" << m_gtBoardIndex << std::endl
345  << "Position in DAQ Record: " << m_gtPositionDaqRecord << std::endl
346  << "Position in EVM Record: " << m_gtPositionEvmRecord << std::endl
347  << "Active_Boards bit in DAQ Record: " << m_gtBitDaqActiveBoards << std::endl
348  << "Active_Boards bit in EVM Record: " << m_gtBitEvmActiveBoards << std::endl
349  << "Board HexName: " << std::hex << m_gtBoardHexName << std::dec
350  << std::endl;
351 
352  if (m_gtBoardType == PSB) {
353  myCout
354  << "PSB Input per Cable: DEPRECATED"
355  << std::endl;
356  }
357 
358 
359  for (std::vector<L1GtPsbQuad>::const_iterator
360  cIt = m_gtQuadInPsb.begin(); cIt != m_gtQuadInPsb.end(); ++cIt) {
361 
362  std::string objType;
363 
364  if ( *cIt == TechTr ) {
365  objType = "TechTr";
366  } else if ( *cIt == IsoEGQ ) {
367  objType = "IsoEGQ";
368  } else if ( *cIt == NoIsoEGQ ) {
369  objType = "NoIsoEGQ";
370  } else if ( *cIt == CenJetQ ) {
371  objType = "CenJetQ";
372  } else if ( *cIt == ForJetQ ) {
373  objType = "ForJetQ";
374  } else if ( *cIt == TauJetQ ) {
375  objType = "TauJetQ";
376  } else if ( *cIt == ESumsQ ) {
377  objType = "ESumsQ";
378  } else if ( *cIt == JetCountsQ ) {
379  objType = "JetCountsQ";
380  } else if ( *cIt == MQB1 ) {
381  objType = "MQB1";
382  } else if ( *cIt == MQB2 ) {
383  objType = "MQB2";
384  } else if ( *cIt == MQF3 ) {
385  objType = "MQF3";
386  } else if ( *cIt == MQF4 ) {
387  objType = "MQF4";
388  } else if ( *cIt == MQB5 ) {
389  objType = "MQB5";
390  } else if ( *cIt == MQB6 ) {
391  objType = "MQB6";
392  } else if ( *cIt == MQF7 ) {
393  objType = "MQF7";
394  } else if ( *cIt == MQF8 ) {
395  objType = "MQF8";
396  } else if ( *cIt == MQB9 ) {
397  objType = "MQB9";
398  } else if ( *cIt == MQB10 ) {
399  objType = "MQB10";
400  } else if ( *cIt == MQF11 ) {
401  objType = "MQF11";
402  } else if ( *cIt == MQF12 ) {
403  objType = "MQF12";
404  } else if ( *cIt == Free ) {
405  objType = "Free";
406  } else if ( *cIt == HfQ ) {
407  objType = "HfQ";
408  } else {
409  myCout << "\n\nError: no such member " << (*cIt)
410  << " in enum L1GtPsbQuad\n\n" << std::endl;
411  objType = "ERROR";
412  }
413 
414 
415  myCout << " " << objType << " ";
416  }
417  myCout << std::endl;
418 
419  if (m_gtBoardType == PSB) {
420  myCout
421  << "Input objects pro channel:";
422  }
423 
424  for (std::map<int, std::vector<L1GtObject> >::const_iterator cIt =
425  m_gtInputPsbChannels.begin(); cIt != m_gtInputPsbChannels.end(); ++cIt) {
426 
427  myCout << "\n Channel " << cIt->first << " (" << (cIt->second).size() << " objects): ";
428 
429  for (std::vector<L1GtObject>::const_iterator itObj =
430  (cIt->second).begin(); itObj != (cIt->second).end(); ++itObj) {
431 
432  switch (*itObj) {
433  case Mu: {
434  myCout << " Mu ";
435  }
436 
437  break;
438  case NoIsoEG: {
439  myCout << " NoIsoEG ";
440  }
441 
442  break;
443  case IsoEG: {
444  myCout << " IsoEG ";
445  }
446 
447  break;
448  case CenJet: {
449  myCout << " CenJet ";
450  }
451 
452  break;
453  case ForJet: {
454  myCout << " ForJet ";
455  }
456 
457  break;
458  case TauJet: {
459  myCout << " TauJet ";
460  }
461 
462  break;
463  case ETM: {
464  myCout << " ETM ";
465  }
466 
467  break;
468  case ETT: {
469  myCout << " ETT ";
470  }
471 
472  break;
473  case HTT: {
474  myCout << " HTT ";
475  }
476 
477  break;
478  case HTM: {
479  myCout << " HTM ";
480  }
481 
482  break;
483  case JetCounts: {
484  myCout << " JetCounts ";
485  }
486 
487  break;
488  case HfBitCounts: {
489  myCout << " HfBitCounts ";
490  }
491 
492  break;
493  case HfRingEtSums: {
494  myCout << " HfRingEtSums ";
495  }
496 
497  break;
498  case TechTrig: {
499  myCout << " TechTrig ";
500  }
501 
502  break;
503  case Castor: {
504  myCout << " Castor ";
505  }
506 
507  break;
508  case BPTX: {
509  myCout << " BPTX ";
510  }
511 
512  break;
513  case GtExternal: {
514  myCout << " GtExternal ";
515  }
516 
517  break;
518  default: {
519  myCout << " ERROR: Unknown type " << (*itObj);
520  }
521  break;
522  }
523  }
524 
525  }
526 
527 
528  myCout << std::endl;
529 }
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:184
Definition: L1GtObject.h:39
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
Definition: L1GtBoard.h:208
Definition: L1GtObject.h:36
int m_gtBoardHexName
Definition: L1GtBoard.h:199
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:178
const boost::uint16_t gtBoardId() const
get the board ID
Definition: L1GtBoard.cc:275
int m_gtPositionDaqRecord
the position of board data block in the GT DAQ readout record
Definition: L1GtBoard.h:181
std::string gtBoardName() const
return board name - it depends on L1GtBoardType enum!!!
Definition: L1GtBoard.cc:290
Definition: L1GtObject.h:38
#define end
Definition: vmac.h:37
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
Definition: L1GtObject.h:30
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:188
Definition: L1GtObject.h:37
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:203
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:192
tuple size
Write out results.
template<class Archive >
void L1GtBoard::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1GtBoard::setGtBitDaqActiveBoards ( const int &  gtBitDaqActiveBoardsValue)

Definition at line 235 of file L1GtBoard.cc.

References m_gtBitDaqActiveBoards.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

236 {
237  m_gtBitDaqActiveBoards = gtBitDaqActiveBoardsValue;
238 }
int m_gtBitDaqActiveBoards
Definition: L1GtBoard.h:188
void L1GtBoard::setGtBitEvmActiveBoards ( const int &  gtBitEvmActiveBoardsValue)

Definition at line 243 of file L1GtBoard.cc.

References m_gtBitEvmActiveBoards.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

244 {
245  m_gtBitEvmActiveBoards = gtBitEvmActiveBoardsValue;
246 }
int m_gtBitEvmActiveBoards
Definition: L1GtBoard.h:192
void L1GtBoard::setGtBoardHexName ( const int &  gtBoardHexNameValue)

Definition at line 255 of file L1GtBoard.cc.

References m_gtBoardHexName.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

256 {
257  m_gtBoardHexName = gtBoardHexNameValue;
258 }
int m_gtBoardHexName
Definition: L1GtBoard.h:199
void L1GtBoard::setGtBoardIndex ( const int &  gtBoardIndexValue)

Definition at line 214 of file L1GtBoard.cc.

References m_gtBoardIndex.

215 {
216  m_gtBoardIndex = gtBoardIndexValue;
217 }
int m_gtBoardIndex
board index
Definition: L1GtBoard.h:178
void L1GtBoard::setGtBoardSlot ( const int &  gtBoardSlotValue)

Definition at line 249 of file L1GtBoard.cc.

References m_gtBoardSlot.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

250 {
251  m_gtBoardSlot = gtBoardSlotValue;
252 }
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtBoard.h:195
void L1GtBoard::setGtBoardType ( const L1GtBoardType gtBoardTypeValue)

Definition at line 208 of file L1GtBoard.cc.

References m_gtBoardType.

209 {
210  m_gtBoardType = gtBoardTypeValue;
211 }
L1GtBoardType m_gtBoardType
board type (from L1GtBoardType enum)
Definition: L1GtBoard.h:175
void L1GtBoard::setGtInputPsbChannels ( const std::map< int, std::vector< L1GtObject > > &  gtInputPsbChannelsValue)

Definition at line 270 of file L1GtBoard.cc.

References m_gtInputPsbChannels.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

270  {
271  m_gtInputPsbChannels = gtInputPsbChannelsValue;
272 }
std::map< int, std::vector< L1GtObject > > m_gtInputPsbChannels
Definition: L1GtBoard.h:208
void L1GtBoard::setGtPositionDaqRecord ( const int &  gtPositionDaqRecordValue)

Definition at line 221 of file L1GtBoard.cc.

References m_gtPositionDaqRecord.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

222 {
223  m_gtPositionDaqRecord = gtPositionDaqRecordValue;
224 }
int m_gtPositionDaqRecord
the position of board data block in the GT DAQ readout record
Definition: L1GtBoard.h:181
void L1GtBoard::setGtPositionEvmRecord ( const int &  gtPositionEvmRecordValue)

Definition at line 228 of file L1GtBoard.cc.

References m_gtPositionEvmRecord.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

229 {
230  m_gtPositionEvmRecord = gtPositionEvmRecordValue;
231 }
int m_gtPositionEvmRecord
the position of board data block in the GT EVM readout record
Definition: L1GtBoard.h:184
void L1GtBoard::setGtQuadInPsb ( const std::vector< L1GtPsbQuad > &  gtQuadInPsbValue)

Definition at line 263 of file L1GtBoard.cc.

References m_gtQuadInPsb.

Referenced by L1GtBoardMapsTrivialProducer::L1GtBoardMapsTrivialProducer().

264 {
265  m_gtQuadInPsb = gtQuadInPsbValue;
266 }
std::vector< L1GtPsbQuad > m_gtQuadInPsb
Definition: L1GtBoard.h:203

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 211 of file L1GtBoard.h.

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

Definition at line 211 of file L1GtBoard.h.

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

output stream operator

Definition at line 532 of file L1GtBoard.cc.

533 {
534  result.print(os);
535  return os;
536 
537 }
void print(std::ostream &myCout) const
print board
Definition: L1GtBoard.cc:336

Member Data Documentation

int L1GtBoard::m_gtBitDaqActiveBoards
private

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

Definition at line 188 of file L1GtBoard.h.

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

int L1GtBoard::m_gtBitEvmActiveBoards
private

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

Definition at line 192 of file L1GtBoard.h.

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

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 199 of file L1GtBoard.h.

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

int L1GtBoard::m_gtBoardIndex
private

board index

Definition at line 178 of file L1GtBoard.h.

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

int L1GtBoard::m_gtBoardSlot
private

the slot of board (part of Board_Id)

Definition at line 195 of file L1GtBoard.h.

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

L1GtBoardType L1GtBoard::m_gtBoardType
private

board type (from L1GtBoardType enum)

Definition at line 175 of file L1GtBoard.h.

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

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 208 of file L1GtBoard.h.

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

int L1GtBoard::m_gtPositionDaqRecord
private

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

Definition at line 181 of file L1GtBoard.h.

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

int L1GtBoard::m_gtPositionEvmRecord
private

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

Definition at line 184 of file L1GtBoard.h.

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

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

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

Definition at line 203 of file L1GtBoard.h.

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

const int L1GtBoard::NumberCablesBoard = 4
static

number of InfiniCables per board

Definition at line 69 of file L1GtBoard.h.

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