CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Static Private Attributes
L1TcsWord Class Reference

#include <L1TcsWord.h>

Public Member Functions

const cms_uint32_t assignedPartitions () const
 get/set assigned partition: bit "i" correspond to detector partition "i" More...
 
const cms_uint16_t boardId () const
 get/set board ID More...
 
const cms_uint16_t bxNr () const
 get/set bunch cross number as counted in the TCS chip More...
 
const cms_uint16_t daqNr () const
 get/set number of DAQ partition to which the L1A has been sent More...
 
const cms_uint32_t eventNr () const
 get/set event number since last L1 reset generated in TCS chip More...
 
const unsigned int getSize () const
 get the size of the TCS block in GT EVM record (in multiple of 8 bits) More...
 
 L1TcsWord ()
 constructors More...
 
 L1TcsWord (cms_uint16_t boardIdValue, cms_uint16_t bxNrValue, cms_uint16_t daqNrValue, cms_uint16_t triggerTypeValue, cms_uint16_t statusValue, cms_uint16_t luminositySegmentNrValue, cms_uint32_t partRunNrValue, cms_uint32_t assignedPartitionsValue, cms_uint32_t partTrigNrValue, cms_uint32_t eventNrValue, cms_uint64_t orbitNrValue)
 constructor from unpacked values; More...
 
const cms_uint16_t luminositySegmentNr () const
 get/set luminosity segment number More...
 
bool operator!= (const L1TcsWord &) const
 unequal operator More...
 
bool operator== (const L1TcsWord &) const
 equal operator More...
 
const cms_uint64_t orbitNr () const
 get/set orbit number since start of run More...
 
const cms_uint32_t partRunNr () const
 get/set partition run number More...
 
const cms_uint32_t partTrigNr () const
 get/set total number of L1A sent since start of the run to this DAQ partition More...
 
void print (std::ostream &myCout) const
 pretty print the content of a L1TcsWord More...
 
void reset ()
 reset the content of a L1TcsWord More...
 
void setAssignedPartitions (const cms_uint32_t assignedPartitionsValue)
 
void setAssignedPartitions (const cms_uint64_t &word64)
 set the AssignedPartitions value from a 64-bits word More...
 
void setAssignedPartitionsWord64 (cms_uint64_t &word64, int iWord)
 
void setBoardId (const cms_uint16_t boardIdValue)
 set BoardId from a BoardId value More...
 
void setBoardId (const cms_uint64_t &word64)
 set the BoardId value from a 64-bits word More...
 
void setBoardIdWord64 (cms_uint64_t &word64, int iWord)
 
void setBxNr (const cms_uint16_t bxNrValue)
 
void setBxNr (const cms_uint64_t &word64)
 set the BxNr value from a 64-bits word More...
 
void setBxNrWord64 (cms_uint64_t &word64, int iWord)
 
void setDaqNr (const cms_uint16_t daqNrValue)
 
void setDaqNr (const cms_uint64_t &word64)
 set the DaqNr value from a 64-bits word More...
 
void setDaqNrWord64 (cms_uint64_t &word64, int iWord)
 
void setEventNr (const cms_uint32_t eventNrValue)
 
void setEventNr (const cms_uint64_t &word64)
 set the EventNr value from a 64-bits word More...
 
void setEventNrWord64 (cms_uint64_t &word64, int iWord)
 
void setLuminositySegmentNr (const cms_uint16_t luminositySegmentNrValue)
 
void setLuminositySegmentNr (const cms_uint64_t &word64)
 set the luminosity segment number value from a 64-bits word More...
 
void setLuminositySegmentNrWord64 (cms_uint64_t &word64, int iWord)
 
void setOrbitNr (const cms_uint64_t orbitNrValue)
 
void setOrbitNrFrom (const cms_uint64_t &word64)
 set the OrbitNr value from a 64-bits word More...
 
void setOrbitNrWord64 (cms_uint64_t &word64, int iWord)
 
void setPartRunNr (const cms_uint32_t partRunNrValue)
 
void setPartRunNr (const cms_uint64_t &word64)
 set the PartRunNr value from a 64-bits word More...
 
void setPartRunNrWord64 (cms_uint64_t &word64, int iWord)
 
void setPartTrigNr (const cms_uint32_t partTrigNrValue)
 
void setPartTrigNr (const cms_uint64_t &word64)
 set the PartTrigNr value from a 64-bits word More...
 
void setPartTrigNrWord64 (cms_uint64_t &word64, int iWord)
 
void setStatus (const cms_uint16_t statusValue)
 
void setStatus (const cms_uint64_t &word64)
 set the Status value from a 64-bits word More...
 
void setStatusWord64 (cms_uint64_t &word64, int iWord)
 
void setTriggerType (const cms_uint16_t triggerTypeValue)
 
void setTriggerType (const cms_uint64_t &word64)
 set the TriggerType value from a 64-bits word More...
 
void setTriggerTypeWord64 (cms_uint64_t &word64, int iWord)
 
const cms_uint16_t status () const
 get/set status: 0000 = normal rate; 1000 = low rate = warning More...
 
const cms_uint16_t triggerType () const
 get/set trigger type, identical with event type in CMS header More...
 
void unpack (const unsigned char *tcsPtr)
 
virtual ~L1TcsWord ()
 destructor More...
 

Private Attributes

cms_uint32_t m_assignedPartitions
 
cms_uint16_t m_boardId
 board identifier More...
 
cms_uint16_t m_bxNr
 bunch cross number as counted in the TCS chip More...
 
cms_uint16_t m_daqNr
 number of DAQ partition to which the L1A has been sent More...
 
cms_uint32_t m_eventNr
 event number since last L1 reset generated in TCS chip More...
 
cms_uint16_t m_luminositySegmentNr
 luminosity segment number More...
 
cms_uint64_t m_orbitNr
 orbit number since start of run (48 bits, in fact) More...
 
cms_uint32_t m_partRunNr
 partition run number More...
 
cms_uint32_t m_partTrigNr
 
cms_uint16_t m_status
 0000 = normal rate; 1000 = low rate = warning More...
 
cms_uint16_t m_triggerType
 trigger type, identical with event type in CMS header (event type) More...
 

Static Private Attributes

static const cms_uint64_t AssignedPartitionsMask = 0x00000000FFFFFFFFULL
 
static const int AssignedPartitionsShift = 0
 
static const int AssignedPartitionsWord = 1
 
static const int BlockSize = 5
 
static const cms_uint64_t BoardIdMask = 0xFFFF000000000000ULL
 
static const int BoardIdShift = 48
 
static const int BoardIdWord = 0
 
static const cms_uint64_t BxNrMask = 0x00000FFF00000000ULL
 
static const int BxNrShift = 32
 
static const int BxNrWord = 0
 
static const cms_uint64_t DaqNrMask = 0x000000000F000000ULL
 
static const int DaqNrShift = 24
 
static const int DaqNrWord = 0
 
static const cms_uint64_t EventNrMask = 0x00000000FFFFFFFFULL
 
static const int EventNrShift = 0
 
static const int EventNrWord = 2
 
static const cms_uint64_t LuminositySegmentNrMask = 0x000000000000FFFFULL
 
static const int LuminositySegmentNrShift = 0
 
static const int LuminositySegmentNrWord = 0
 
static const cms_uint64_t OrbitNrMask = 0x0000FFFFFFFFFFFFULL
 
static const int OrbitNrShift = 0
 
static const int OrbitNrWord = 3
 
static const cms_uint64_t PartRunNrMask = 0xFFFFFFFF00000000ULL
 
static const int PartRunNrShift = 32
 
static const int PartRunNrWord = 1
 
static const cms_uint64_t PartTrigNrMask = 0xFFFFFFFF00000000ULL
 
static const int PartTrigNrShift = 32
 
static const int PartTrigNrWord = 2
 
static const cms_uint64_t StatusMask = 0x00000000000F0000ULL
 
static const int StatusShift = 16
 
static const int StatusWord = 0
 
static const cms_uint64_t TriggerTypeMask = 0x0000000000F00000ULL
 
static const int TriggerTypeShift = 20
 
static const int TriggerTypeWord = 0
 

Detailed Description

Description: L1 Global Trigger - TCS words in the readout record.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Description: see header file.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 31 of file L1TcsWord.h.

Constructor & Destructor Documentation

L1TcsWord::L1TcsWord ( )

constructors

Definition at line 32 of file L1TcsWord.cc.

References m_assignedPartitions, m_boardId, m_bxNr, m_daqNr, m_eventNr, m_luminositySegmentNr, m_orbitNr, m_partRunNr, m_partTrigNr, m_status, and m_triggerType.

33 {
34 
35  m_boardId = 0;
36  m_bxNr = 0;
37  m_daqNr = 0;
38  m_triggerType = 0;
39  m_status = 0;
41  m_partRunNr = 0;
43  m_partTrigNr = 0;
44  m_eventNr = 0;
45  m_orbitNr = 0;
46 
47 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:390
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:401
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:412
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:384
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:387
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:415
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:381
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:420
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:396
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:393
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:406
L1TcsWord::L1TcsWord ( cms_uint16_t  boardIdValue,
cms_uint16_t  bxNrValue,
cms_uint16_t  daqNrValue,
cms_uint16_t  triggerTypeValue,
cms_uint16_t  statusValue,
cms_uint16_t  luminositySegmentNrValue,
cms_uint32_t  partRunNrValue,
cms_uint32_t  assignedPartitionsValue,
cms_uint32_t  partTrigNrValue,
cms_uint32_t  eventNrValue,
cms_uint64_t  orbitNrValue 
)

constructor from unpacked values;

Definition at line 50 of file L1TcsWord.cc.

References m_assignedPartitions, m_boardId, m_bxNr, m_daqNr, m_eventNr, m_luminositySegmentNr, m_orbitNr, m_partRunNr, m_partTrigNr, m_status, and m_triggerType.

62 {
63 
64  m_boardId = boardIdValue;
65  m_bxNr = bxNrValue;
66  m_daqNr = daqNrValue;
67  m_triggerType = triggerTypeValue;
68  m_status = statusValue;
69  m_luminositySegmentNr = luminositySegmentNrValue;
70  m_partRunNr = partRunNrValue;
71  m_assignedPartitions = assignedPartitionsValue;
72  m_partTrigNr = partTrigNrValue;
73  m_eventNr = eventNrValue;
74  m_orbitNr = orbitNrValue;
75 
76 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:390
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:401
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:412
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:384
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:387
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:415
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:381
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:420
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:396
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:393
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:406
L1TcsWord::~L1TcsWord ( )
virtual

destructor

Definition at line 79 of file L1TcsWord.cc.

80 {
81 
82  // empty
83 
84 }

Member Function Documentation

const cms_uint32_t L1TcsWord::assignedPartitions ( ) const
inline

get/set assigned partition: bit "i" correspond to detector partition "i"

Definition at line 208 of file L1TcsWord.h.

References m_assignedPartitions.

209  {
210  return m_assignedPartitions;
211  }
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:406
const cms_uint16_t L1TcsWord::boardId ( ) const
inline

get/set board ID

get BoardId value

Definition at line 68 of file L1TcsWord.h.

References m_boardId.

69  {
70  return m_boardId;
71  }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:381
const cms_uint16_t L1TcsWord::bxNr ( ) const
inline

get/set bunch cross number as counted in the TCS chip

Definition at line 89 of file L1TcsWord.h.

References m_bxNr.

Referenced by L1TGT::analyze().

90  {
91  return m_bxNr;
92  }
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:384
const cms_uint16_t L1TcsWord::daqNr ( ) const
inline

get/set number of DAQ partition to which the L1A has been sent

Definition at line 109 of file L1TcsWord.h.

References m_daqNr.

110  {
111  return m_daqNr;
112  }
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:387
const cms_uint32_t L1TcsWord::eventNr ( ) const
inline

get/set event number since last L1 reset generated in TCS chip

Definition at line 248 of file L1TcsWord.h.

References m_eventNr.

Referenced by L1TGT::analyze().

249  {
250  return m_eventNr;
251  }
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:415
const unsigned int L1TcsWord::getSize ( ) const
inline

get the size of the TCS block in GT EVM record (in multiple of 8 bits)

Definition at line 287 of file L1TcsWord.h.

References BlockSize, and L1GlobalTriggerReadoutSetup::UnitLength.

Referenced by L1GTEvmDigiToRaw::packTCS(), L1GTEvmDigiToRaw::produce(), L1GlobalTriggerEvmRawToDigi::produce(), and L1GTDigiToRaw::produce().

288  {
289  int unitLengthBits = L1GlobalTriggerReadoutSetup::UnitLength;
290 
291  return BlockSize*unitLengthBits;
292  }
static const int UnitLength
one unit in the word is UnitLength bits
static const int BlockSize
Definition: L1TcsWord.h:313
const cms_uint16_t L1TcsWord::luminositySegmentNr ( ) const
inline

get/set luminosity segment number

Definition at line 168 of file L1TcsWord.h.

References m_luminositySegmentNr.

Referenced by L1TGT::analyze(), and L1GlobalTriggerEvmRawToDigi::produce().

169  {
170  return m_luminositySegmentNr;
171  }
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:396
bool L1TcsWord::operator!= ( const L1TcsWord result) const

unequal operator

Definition at line 140 of file L1TcsWord.cc.

141 {
142 
143  return !( result == *this);
144 
145 }
bool L1TcsWord::operator== ( const L1TcsWord result) const

equal operator

Definition at line 87 of file L1TcsWord.cc.

References m_assignedPartitions, m_boardId, m_bxNr, m_daqNr, m_eventNr, m_luminositySegmentNr, m_orbitNr, m_partRunNr, m_partTrigNr, m_status, and m_triggerType.

88 {
89 
90  if (m_boardId != result.m_boardId) {
91  return false;
92  }
93 
94  if (m_bxNr != result.m_bxNr) {
95  return false;
96  }
97 
98  if (m_daqNr != result.m_daqNr) {
99  return false;
100  }
101 
102  if (m_triggerType != result.m_triggerType) {
103  return false;
104  }
105 
106  if (m_status != result.m_status) {
107  return false;
108  }
109 
111  return false;
112  }
113 
114  if (m_partRunNr != result.m_partRunNr) {
115  return false;
116  }
117 
119  return false;
120  }
121 
122  if (m_partTrigNr != result.m_partTrigNr) {
123  return false;
124  }
125 
126  if (m_eventNr != result.m_eventNr) {
127  return false;
128  }
129 
130  if (m_orbitNr != result.m_orbitNr) {
131  return false;
132  }
133 
134  // all members identical
135  return true;
136 
137 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:390
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:401
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:412
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:384
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:387
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:415
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:381
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:420
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:396
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:393
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:406
const cms_uint64_t L1TcsWord::orbitNr ( ) const
inline

get/set orbit number since start of run

Definition at line 268 of file L1TcsWord.h.

References m_orbitNr.

Referenced by L1TGT::analyze().

269  {
270  return m_orbitNr;
271  }
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:420
const cms_uint32_t L1TcsWord::partRunNr ( ) const
inline

get/set partition run number

Definition at line 188 of file L1TcsWord.h.

References m_partRunNr.

189  {
190  return m_partRunNr;
191  }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:401
const cms_uint32_t L1TcsWord::partTrigNr ( ) const
inline

get/set total number of L1A sent since start of the run to this DAQ partition

Definition at line 228 of file L1TcsWord.h.

References m_partTrigNr.

Referenced by L1TGT::analyze().

229  {
230  return m_partTrigNr;
231  }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:412
void L1TcsWord::print ( std::ostream &  myCout) const

pretty print the content of a L1TcsWord

Definition at line 405 of file L1TcsWord.cc.

References m_assignedPartitions, m_boardId, m_bxNr, m_daqNr, m_eventNr, m_luminositySegmentNr, m_orbitNr, m_partRunNr, m_partTrigNr, m_status, and m_triggerType.

Referenced by L1GlobalTriggerEvmReadoutRecord::print(), L1GTEvmDigiToRaw::produce(), and L1GlobalTriggerEvmRawToDigi::produce().

406 {
407 
408  myCout << "\n L1TcsWord::print \n" << std::endl;
409 
410  int iWord = 0;
411 
412  myCout << "\n Word " << iWord << std::endl;
413 
414  myCout << " Board Id: "
415  << std::hex << " hex: " << " "<< std::setw(4) << std::setfill('0') << m_boardId
416  << std::setfill(' ')
417  << std::dec << " dec: " << m_boardId
418  << std::endl;
419 
420 
421  myCout << " BxNr: "
422  << std::hex << " hex: " << " " << std::setw(3) << std::setfill('0') << m_bxNr
423  << std::setfill(' ')
424  << std::dec << " dec: " << m_bxNr
425  << std::endl;
426 
427 
428  myCout << " DaqNr: "
429  << std::hex << " hex: " << " " << std::setw(1) << m_daqNr
430  << std::dec << " dec: " << m_daqNr
431  << std::endl;
432 
433  myCout << " TriggerType: "
434  << std::hex << " hex: " << " " << std::setw(1) << m_triggerType
435  << std::dec << " dec: " << m_triggerType
436  << std::endl;
437 
438  myCout << " Status: "
439  << std::hex << " hex: " << " " << std::setw(1) << m_status
440  << std::dec << " dec: " << m_status
441  << std::endl;
442 
443  myCout << " LuminositySegmentNr: "
444  << std::hex << " hex: " << " " << std::setw(4) << m_luminositySegmentNr
445  << std::dec << " dec: " << m_luminositySegmentNr
446  << std::endl;
447 
448 
449  iWord++;
450  myCout << "\n Word " << iWord << std::endl;
451 
452  myCout << " PartRunNr: "
453  << std::hex << " hex: " << " " << std::setw(8) << std::setfill('0') << m_partRunNr
454  << std::setfill(' ')
455  << std::dec << " dec: " << m_partRunNr
456  << std::endl;
457 
458  myCout << " AssignedPartitions: "
459  << std::hex << " hex: " << " " << std::setw(8) << std::setfill('0')
461  << std::setfill(' ')
462  << std::dec << " dec: " << m_assignedPartitions
463  << std::endl;
464 
465 
466  iWord++;
467  myCout << "\n Word " << iWord << std::endl;
468 
469  myCout << " PartTrigNr: "
470  << std::hex << " hex: " << " " << std::setw(8) << std::setfill('0') << m_partTrigNr
471  << std::setfill(' ')
472  << std::dec << " dec: " << m_partTrigNr
473  << std::endl;
474 
475 
476  myCout << " EventNr: "
477  << std::hex << " hex: " << " " << std::setw(8) << std::setfill('0') << m_eventNr
478  << std::setfill(' ')
479  << std::dec << " dec: " << m_eventNr
480  << std::endl;
481 
482  iWord++;
483  myCout << "\n Word " << iWord << std::endl;
484 
485  myCout << " OrbitNr: "
486  << std::hex << " hex: " << "" << std::setw(12) << std::setfill('0') << m_orbitNr
487  << std::setfill(' ')
488  << std::dec << " dec: " << m_orbitNr
489  << std::endl;
490 
491  iWord++;
492  myCout << "\n Word " << iWord << std::endl;
493 
494  myCout << " Empty word "
495  << std::endl;
496 
497 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:390
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:401
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:412
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:384
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:387
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:415
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:381
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:420
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:396
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:393
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:406
void L1TcsWord::reset ( void  )

reset the content of a L1TcsWord

Definition at line 385 of file L1TcsWord.cc.

References m_assignedPartitions, m_boardId, m_bxNr, m_daqNr, m_eventNr, m_luminositySegmentNr, m_orbitNr, m_partRunNr, m_partTrigNr, m_status, and m_triggerType.

Referenced by L1GlobalTriggerEvmRawToDigi::produce().

386 {
387 
388  m_boardId = 0;
389  m_bxNr = 0;
390  m_daqNr = 0;
391  m_triggerType = 0;
392  m_status = 0;
394  m_partRunNr = 0;
396  m_partTrigNr = 0;
397  m_eventNr = 0;
398  m_orbitNr = 0;
399 
400 
401 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:390
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:401
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:412
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:384
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:387
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:415
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:381
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:420
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:396
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:393
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:406
void L1TcsWord::setAssignedPartitions ( const cms_uint32_t  assignedPartitionsValue)
inline

Definition at line 213 of file L1TcsWord.h.

References m_assignedPartitions.

Referenced by unpack().

214  {
215  m_assignedPartitions = assignedPartitionsValue;
216  }
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:406
void L1TcsWord::setAssignedPartitions ( const cms_uint64_t word64)

set the AssignedPartitions value from a 64-bits word

Definition at line 297 of file L1TcsWord.cc.

References AssignedPartitionsMask, AssignedPartitionsShift, and m_assignedPartitions.

298 {
299 
302 
303 }
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:406
static const cms_uint64_t AssignedPartitionsMask
Definition: L1TcsWord.h:347
static const int AssignedPartitionsShift
Definition: L1TcsWord.h:350
void L1TcsWord::setAssignedPartitionsWord64 ( cms_uint64_t word64,
int  iWord 
)

set the AssignedPartitions value in a 64-bits word, having the index iWord in the GTFE EVM raw record

Definition at line 307 of file L1TcsWord.cc.

References AssignedPartitionsShift, AssignedPartitionsWord, and m_assignedPartitions.

Referenced by L1GTEvmDigiToRaw::packTCS().

308 {
309 
310  if (iWord == AssignedPartitionsWord) {
311  word64 = word64 |
312  (static_cast<cms_uint64_t> (m_assignedPartitions)
314  }
315 
316 }
static const int AssignedPartitionsWord
Definition: L1TcsWord.h:344
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:406
unsigned long long cms_uint64_t
Definition: typedefs.h:17
static const int AssignedPartitionsShift
Definition: L1TcsWord.h:350
void L1TcsWord::setBoardId ( const cms_uint16_t  boardIdValue)
inline

set BoardId from a BoardId value

Definition at line 74 of file L1TcsWord.h.

References m_boardId.

Referenced by L1GlobalTrigger::produce(), and unpack().

75  {
76  m_boardId = boardIdValue;
77  }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:381
void L1TcsWord::setBoardId ( const cms_uint64_t word64)

set the BoardId value from a 64-bits word

Definition at line 150 of file L1TcsWord.cc.

References BoardIdMask, BoardIdShift, and m_boardId.

151 {
152  m_boardId = (word64 & BoardIdMask) >> BoardIdShift;
153 
154 }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:381
static const cms_uint64_t BoardIdMask
Definition: L1TcsWord.h:326
static const int BoardIdShift
Definition: L1TcsWord.h:334
void L1TcsWord::setBoardIdWord64 ( cms_uint64_t word64,
int  iWord 
)

set the BoardId value in a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 158 of file L1TcsWord.cc.

References BoardIdShift, BoardIdWord, and m_boardId.

Referenced by L1GTEvmDigiToRaw::packTCS().

159 {
160 
161  if (iWord == BoardIdWord) {
162  word64 = word64 | (static_cast<cms_uint64_t> (m_boardId) << BoardIdShift);
163  }
164 
165 }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:381
static const int BoardIdShift
Definition: L1TcsWord.h:334
static const int BoardIdWord
Definition: L1TcsWord.h:318
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setBxNr ( const cms_uint16_t  bxNrValue)
inline

Definition at line 94 of file L1TcsWord.h.

References m_bxNr.

Referenced by L1GlobalTrigger::produce(), and unpack().

95  {
96  m_bxNr = bxNrValue;
97  }
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:384
void L1TcsWord::setBxNr ( const cms_uint64_t word64)

set the BxNr value from a 64-bits word

Definition at line 169 of file L1TcsWord.cc.

References BxNrMask, BxNrShift, and m_bxNr.

170 {
171 
172  m_bxNr = (word64 & BxNrMask) >> BxNrShift;
173 
174 }
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:384
static const int BxNrShift
Definition: L1TcsWord.h:335
static const cms_uint64_t BxNrMask
Definition: L1TcsWord.h:327
void L1TcsWord::setBxNrWord64 ( cms_uint64_t word64,
int  iWord 
)

set the BxNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record

Definition at line 178 of file L1TcsWord.cc.

References BxNrShift, BxNrWord, and m_bxNr.

Referenced by L1GTEvmDigiToRaw::packTCS().

179 {
180 
181  if (iWord == BxNrWord) {
182  word64 = word64 | (static_cast<cms_uint64_t> (m_bxNr) << BxNrShift);
183  }
184 
185 }
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:384
static const int BxNrShift
Definition: L1TcsWord.h:335
static const int BxNrWord
Definition: L1TcsWord.h:319
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setDaqNr ( const cms_uint16_t  daqNrValue)
inline

Definition at line 114 of file L1TcsWord.h.

References m_daqNr.

Referenced by unpack().

115  {
116  m_daqNr = daqNrValue;
117  }
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:387
void L1TcsWord::setDaqNr ( const cms_uint64_t word64)

set the DaqNr value from a 64-bits word

Definition at line 190 of file L1TcsWord.cc.

References DaqNrMask, DaqNrShift, and m_daqNr.

191 {
192 
193  m_daqNr = (word64 & DaqNrMask) >> DaqNrShift;
194 
195 }
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:387
static const int DaqNrShift
Definition: L1TcsWord.h:336
static const cms_uint64_t DaqNrMask
Definition: L1TcsWord.h:328
void L1TcsWord::setDaqNrWord64 ( cms_uint64_t word64,
int  iWord 
)

set the DaqNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record

Definition at line 199 of file L1TcsWord.cc.

References DaqNrShift, DaqNrWord, and m_daqNr.

Referenced by L1GTEvmDigiToRaw::packTCS().

200 {
201 
202  if (iWord == DaqNrWord) {
203  word64 = word64 | (static_cast<cms_uint64_t> (m_daqNr) << DaqNrShift);
204  }
205 
206 }
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:387
static const int DaqNrShift
Definition: L1TcsWord.h:336
static const int DaqNrWord
Definition: L1TcsWord.h:320
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setEventNr ( const cms_uint32_t  eventNrValue)
inline

Definition at line 253 of file L1TcsWord.h.

References m_eventNr.

Referenced by L1GlobalTrigger::produce(), and unpack().

254  {
255  m_eventNr = eventNrValue;
256  }
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:415
void L1TcsWord::setEventNr ( const cms_uint64_t word64)

set the EventNr value from a 64-bits word

Definition at line 343 of file L1TcsWord.cc.

References EventNrMask, EventNrShift, and m_eventNr.

344 {
345 
346  m_eventNr = (word64 & EventNrMask) >> EventNrShift;
347 
348 }
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:415
static const cms_uint64_t EventNrMask
Definition: L1TcsWord.h:358
static const int EventNrShift
Definition: L1TcsWord.h:361
void L1TcsWord::setEventNrWord64 ( cms_uint64_t word64,
int  iWord 
)

set the EventNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record

Definition at line 352 of file L1TcsWord.cc.

References EventNrShift, EventNrWord, and m_eventNr.

Referenced by L1GTEvmDigiToRaw::packTCS().

353 {
354 
355  if (iWord == EventNrWord) {
356  word64 = word64 |
357  (static_cast<cms_uint64_t> (m_eventNr) << EventNrShift);
358  }
359 
360 }
static const int EventNrWord
Definition: L1TcsWord.h:355
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:415
static const int EventNrShift
Definition: L1TcsWord.h:361
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setLuminositySegmentNr ( const cms_uint16_t  luminositySegmentNrValue)
inline

Definition at line 173 of file L1TcsWord.h.

References m_luminositySegmentNr.

Referenced by L1GlobalTriggerEvmRawToDigi::produce(), L1GlobalTrigger::produce(), and unpack().

174  {
175  m_luminositySegmentNr = luminositySegmentNrValue;
176  }
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:396
void L1TcsWord::setLuminositySegmentNr ( const cms_uint64_t word64)

set the luminosity segment number value from a 64-bits word

Definition at line 252 of file L1TcsWord.cc.

References LuminositySegmentNrMask, LuminositySegmentNrShift, and m_luminositySegmentNr.

253 {
254 
257 
258 }
static const cms_uint64_t LuminositySegmentNrMask
Definition: L1TcsWord.h:331
static const int LuminositySegmentNrShift
Definition: L1TcsWord.h:339
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:396
void L1TcsWord::setLuminositySegmentNrWord64 ( cms_uint64_t word64,
int  iWord 
)

set the luminosity segment number value in a 64-bits word, having the index iWord in the GTFE EVM raw record

Definition at line 262 of file L1TcsWord.cc.

References LuminositySegmentNrShift, LuminositySegmentNrWord, and m_luminositySegmentNr.

Referenced by L1GTEvmDigiToRaw::packTCS().

263 {
264 
265  if (iWord == LuminositySegmentNrWord) {
266  word64 = word64 |
268  }
269 
270 }
static const int LuminositySegmentNrWord
Definition: L1TcsWord.h:323
static const int LuminositySegmentNrShift
Definition: L1TcsWord.h:339
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:396
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setOrbitNr ( const cms_uint64_t  orbitNrValue)
inline

Definition at line 273 of file L1TcsWord.h.

References m_orbitNr.

Referenced by L1GlobalTrigger::produce().

274  {
275  m_orbitNr = orbitNrValue;
276  }
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:420
void L1TcsWord::setOrbitNrFrom ( const cms_uint64_t word64)

set the OrbitNr value from a 64-bits word

Definition at line 365 of file L1TcsWord.cc.

References m_orbitNr, OrbitNrMask, and OrbitNrShift.

Referenced by unpack().

366 {
367 
368  m_orbitNr = (word64 & OrbitNrMask) >> OrbitNrShift;
369 
370 }
static const int OrbitNrShift
Definition: L1TcsWord.h:369
static const cms_uint64_t OrbitNrMask
Definition: L1TcsWord.h:367
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:420
void L1TcsWord::setOrbitNrWord64 ( cms_uint64_t word64,
int  iWord 
)

set the OrbitNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record

Definition at line 374 of file L1TcsWord.cc.

References m_orbitNr, OrbitNrShift, and OrbitNrWord.

Referenced by L1GTEvmDigiToRaw::packTCS().

375 {
376 
377  if (iWord == OrbitNrWord) {
378  word64 = word64 | (static_cast<cms_uint64_t> (m_orbitNr) << OrbitNrShift);
379  }
380 
381 }
static const int OrbitNrWord
Definition: L1TcsWord.h:365
static const int OrbitNrShift
Definition: L1TcsWord.h:369
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:420
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setPartRunNr ( const cms_uint32_t  partRunNrValue)
inline

Definition at line 193 of file L1TcsWord.h.

References m_partRunNr.

Referenced by unpack().

194  {
195  m_partRunNr = partRunNrValue;
196  }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:401
void L1TcsWord::setPartRunNr ( const cms_uint64_t word64)

set the PartRunNr value from a 64-bits word

Definition at line 275 of file L1TcsWord.cc.

References m_partRunNr, PartRunNrMask, and PartRunNrShift.

276 {
277 
278  m_partRunNr = (word64 & PartRunNrMask) >> PartRunNrShift;
279 
280 }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:401
static const int PartRunNrShift
Definition: L1TcsWord.h:349
static const cms_uint64_t PartRunNrMask
Definition: L1TcsWord.h:346
void L1TcsWord::setPartRunNrWord64 ( cms_uint64_t word64,
int  iWord 
)

set the PartRunNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record

Definition at line 284 of file L1TcsWord.cc.

References m_partRunNr, PartRunNrShift, and PartRunNrWord.

Referenced by L1GTEvmDigiToRaw::packTCS().

285 {
286 
287  if (iWord == PartRunNrWord) {
288  word64 = word64 |
289  (static_cast<cms_uint64_t> (m_partRunNr) << PartRunNrShift);
290  }
291 
292 }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:401
static const int PartRunNrShift
Definition: L1TcsWord.h:349
static const int PartRunNrWord
Definition: L1TcsWord.h:343
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setPartTrigNr ( const cms_uint32_t  partTrigNrValue)
inline

Definition at line 233 of file L1TcsWord.h.

References m_partTrigNr.

Referenced by unpack().

234  {
235  m_partTrigNr = partTrigNrValue;
236  }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:412
void L1TcsWord::setPartTrigNr ( const cms_uint64_t word64)

set the PartTrigNr value from a 64-bits word

Definition at line 321 of file L1TcsWord.cc.

References m_partTrigNr, PartTrigNrMask, and PartTrigNrShift.

322 {
323 
325 
326 }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:412
static const cms_uint64_t PartTrigNrMask
Definition: L1TcsWord.h:357
static const int PartTrigNrShift
Definition: L1TcsWord.h:360
void L1TcsWord::setPartTrigNrWord64 ( cms_uint64_t word64,
int  iWord 
)

set the PartTrigNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record

Definition at line 330 of file L1TcsWord.cc.

References m_partTrigNr, PartTrigNrShift, and PartTrigNrWord.

Referenced by L1GTEvmDigiToRaw::packTCS().

331 {
332 
333  if (iWord == PartTrigNrWord) {
334  word64 = word64 |
335  (static_cast<cms_uint64_t> (m_partTrigNr) << PartTrigNrShift);
336  }
337 
338 }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:412
static const int PartTrigNrWord
Definition: L1TcsWord.h:354
static const int PartTrigNrShift
Definition: L1TcsWord.h:360
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setStatus ( const cms_uint16_t  statusValue)
inline

Definition at line 154 of file L1TcsWord.h.

References m_status.

Referenced by unpack().

155  {
156  m_status = statusValue;
157  }
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:393
void L1TcsWord::setStatus ( const cms_uint64_t word64)

set the Status value from a 64-bits word

Definition at line 231 of file L1TcsWord.cc.

References m_status, StatusMask, and StatusShift.

232 {
233 
234  m_status = (word64 & StatusMask) >> StatusShift;
235 
236 }
static const cms_uint64_t StatusMask
Definition: L1TcsWord.h:330
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:393
static const int StatusShift
Definition: L1TcsWord.h:338
void L1TcsWord::setStatusWord64 ( cms_uint64_t word64,
int  iWord 
)

set the Status value in a 64-bits word, having the index iWord in the GTFE EVM raw record

Definition at line 240 of file L1TcsWord.cc.

References m_status, StatusShift, and StatusWord.

Referenced by L1GTEvmDigiToRaw::packTCS().

241 {
242 
243  if (iWord == StatusWord) {
244  word64 = word64 | (static_cast<cms_uint64_t> (m_status) << StatusShift);
245  }
246 
247 }
static const int StatusWord
Definition: L1TcsWord.h:322
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:393
static const int StatusShift
Definition: L1TcsWord.h:338
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setTriggerType ( const cms_uint16_t  triggerTypeValue)
inline

Definition at line 134 of file L1TcsWord.h.

References m_triggerType.

Referenced by L1GlobalTrigger::produce(), and unpack().

135  {
136  m_triggerType = triggerTypeValue;
137  }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:390
void L1TcsWord::setTriggerType ( const cms_uint64_t word64)

set the TriggerType value from a 64-bits word

Definition at line 210 of file L1TcsWord.cc.

References m_triggerType, TriggerTypeMask, and TriggerTypeShift.

211 {
212 
214 
215 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:390
static const cms_uint64_t TriggerTypeMask
Definition: L1TcsWord.h:329
static const int TriggerTypeShift
Definition: L1TcsWord.h:337
void L1TcsWord::setTriggerTypeWord64 ( cms_uint64_t word64,
int  iWord 
)

set the TriggerType value in a 64-bits word, having the index iWord in the GTFE EVM raw record

Definition at line 219 of file L1TcsWord.cc.

References m_triggerType, TriggerTypeShift, and TriggerTypeWord.

Referenced by L1GTEvmDigiToRaw::packTCS().

220 {
221 
222  if (iWord == TriggerTypeWord) {
223  word64 = word64 |
224  (static_cast<cms_uint64_t> (m_triggerType) << TriggerTypeShift);
225  }
226 
227 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:390
static const int TriggerTypeShift
Definition: L1TcsWord.h:337
unsigned long long cms_uint64_t
Definition: typedefs.h:17
static const int TriggerTypeWord
Definition: L1TcsWord.h:321
const cms_uint16_t L1TcsWord::status ( ) const
inline

get/set status: 0000 = normal rate; 1000 = low rate = warning

Definition at line 149 of file L1TcsWord.h.

References m_status.

150  {
151  return m_status;
152  }
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:393
const cms_uint16_t L1TcsWord::triggerType ( ) const
inline

get/set trigger type, identical with event type in CMS header

Definition at line 129 of file L1TcsWord.h.

References m_triggerType.

Referenced by L1TGT::analyze().

130  {
131  return m_triggerType;
132  }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:390
void L1TcsWord::unpack ( const unsigned char *  tcsPtr)

unpack TCS tcsPtr pointer to the beginning of the TCS block in the raw data

Definition at line 502 of file L1TcsWord.cc.

References AssignedPartitionsWord, BlockSize, BoardIdWord, BxNrWord, DaqNrWord, EventNrWord, edm::isDebugEnabled(), LogDebug, LogTrace, LuminositySegmentNrWord, OrbitNrWord, PartRunNrWord, PartTrigNrWord, setAssignedPartitions(), setBoardId(), setBxNr(), setDaqNr(), setEventNr(), setLuminositySegmentNr(), setOrbitNrFrom(), setPartRunNr(), setPartTrigNr(), setStatus(), setTriggerType(), StatusWord, and TriggerTypeWord.

Referenced by L1GlobalTriggerEvmRawToDigi::produce().

503 {
504  LogDebug("L1GtTcsWord")
505  << "\nUnpacking TCS block.\n"
506  << std::endl;
507 
508  const cms_uint64_t* payload =
509  reinterpret_cast<cms_uint64_t*>(const_cast<unsigned char*>(tcsPtr));
510 
511  setBoardId(payload[BoardIdWord]);
512  setBxNr(payload[BxNrWord]);
513  setDaqNr(payload[DaqNrWord]);
515  setStatus(payload[StatusWord]);
517 
518  setPartRunNr(payload[PartRunNrWord]);
520 
521  setPartTrigNr(payload[PartTrigNrWord]);
522  setEventNr(payload[EventNrWord]);
523 
524  setOrbitNrFrom(payload[OrbitNrWord]);
525 
526  if ( edm::isDebugEnabled() ) {
527 
528  for (int iWord = 0; iWord < BlockSize; ++iWord) {
529  LogTrace("L1GtTcsWord")
530  << std::setw(4) << iWord << " "
531  << std::hex << std::setfill('0')
532  << std::setw(16) << payload[iWord]
533  << std::dec << std::setfill(' ')
534  << std::endl;
535  }
536 
537  }
538 
539 }
#define LogDebug(id)
bool isDebugEnabled()
static const int OrbitNrWord
Definition: L1TcsWord.h:365
void setBxNr(const cms_uint16_t bxNrValue)
Definition: L1TcsWord.h:94
void setAssignedPartitions(const cms_uint32_t assignedPartitionsValue)
Definition: L1TcsWord.h:213
void setOrbitNrFrom(const cms_uint64_t &word64)
set the OrbitNr value from a 64-bits word
Definition: L1TcsWord.cc:365
void setLuminositySegmentNr(const cms_uint16_t luminositySegmentNrValue)
Definition: L1TcsWord.h:173
static const int EventNrWord
Definition: L1TcsWord.h:355
void setStatus(const cms_uint16_t statusValue)
Definition: L1TcsWord.h:154
static const int PartRunNrWord
Definition: L1TcsWord.h:343
void setPartRunNr(const cms_uint32_t partRunNrValue)
Definition: L1TcsWord.h:193
static const int LuminositySegmentNrWord
Definition: L1TcsWord.h:323
void setPartTrigNr(const cms_uint32_t partTrigNrValue)
Definition: L1TcsWord.h:233
static const int PartTrigNrWord
Definition: L1TcsWord.h:354
static const int BxNrWord
Definition: L1TcsWord.h:319
#define LogTrace(id)
static const int StatusWord
Definition: L1TcsWord.h:322
static const int AssignedPartitionsWord
Definition: L1TcsWord.h:344
void setBoardId(const cms_uint16_t boardIdValue)
set BoardId from a BoardId value
Definition: L1TcsWord.h:74
static const int BoardIdWord
Definition: L1TcsWord.h:318
static const int DaqNrWord
Definition: L1TcsWord.h:320
static const int BlockSize
Definition: L1TcsWord.h:313
void setTriggerType(const cms_uint16_t triggerTypeValue)
Definition: L1TcsWord.h:134
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void setEventNr(const cms_uint32_t eventNrValue)
Definition: L1TcsWord.h:253
static const int TriggerTypeWord
Definition: L1TcsWord.h:321
void setDaqNr(const cms_uint16_t daqNrValue)
Definition: L1TcsWord.h:114

Member Data Documentation

const cms_uint64_t L1TcsWord::AssignedPartitionsMask = 0x00000000FFFFFFFFULL
staticprivate

Definition at line 347 of file L1TcsWord.h.

Referenced by setAssignedPartitions().

const int L1TcsWord::AssignedPartitionsShift = 0
staticprivate

Definition at line 350 of file L1TcsWord.h.

Referenced by setAssignedPartitions(), and setAssignedPartitionsWord64().

const int L1TcsWord::AssignedPartitionsWord = 1
staticprivate

Definition at line 344 of file L1TcsWord.h.

Referenced by setAssignedPartitionsWord64(), and unpack().

const int L1TcsWord::BlockSize = 5
staticprivate

Definition at line 313 of file L1TcsWord.h.

Referenced by getSize(), and unpack().

const cms_uint64_t L1TcsWord::BoardIdMask = 0xFFFF000000000000ULL
staticprivate

Definition at line 326 of file L1TcsWord.h.

Referenced by setBoardId().

const int L1TcsWord::BoardIdShift = 48
staticprivate

Definition at line 334 of file L1TcsWord.h.

Referenced by setBoardId(), and setBoardIdWord64().

const int L1TcsWord::BoardIdWord = 0
staticprivate

Definition at line 318 of file L1TcsWord.h.

Referenced by setBoardIdWord64(), and unpack().

const cms_uint64_t L1TcsWord::BxNrMask = 0x00000FFF00000000ULL
staticprivate

Definition at line 327 of file L1TcsWord.h.

Referenced by setBxNr().

const int L1TcsWord::BxNrShift = 32
staticprivate

Definition at line 335 of file L1TcsWord.h.

Referenced by setBxNr(), and setBxNrWord64().

const int L1TcsWord::BxNrWord = 0
staticprivate

Definition at line 319 of file L1TcsWord.h.

Referenced by setBxNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::DaqNrMask = 0x000000000F000000ULL
staticprivate

Definition at line 328 of file L1TcsWord.h.

Referenced by setDaqNr().

const int L1TcsWord::DaqNrShift = 24
staticprivate

Definition at line 336 of file L1TcsWord.h.

Referenced by setDaqNr(), and setDaqNrWord64().

const int L1TcsWord::DaqNrWord = 0
staticprivate

Definition at line 320 of file L1TcsWord.h.

Referenced by setDaqNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::EventNrMask = 0x00000000FFFFFFFFULL
staticprivate

Definition at line 358 of file L1TcsWord.h.

Referenced by setEventNr().

const int L1TcsWord::EventNrShift = 0
staticprivate

Definition at line 361 of file L1TcsWord.h.

Referenced by setEventNr(), and setEventNrWord64().

const int L1TcsWord::EventNrWord = 2
staticprivate

Definition at line 355 of file L1TcsWord.h.

Referenced by setEventNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::LuminositySegmentNrMask = 0x000000000000FFFFULL
staticprivate

Definition at line 331 of file L1TcsWord.h.

Referenced by setLuminositySegmentNr().

const int L1TcsWord::LuminositySegmentNrShift = 0
staticprivate

Definition at line 339 of file L1TcsWord.h.

Referenced by setLuminositySegmentNr(), and setLuminositySegmentNrWord64().

const int L1TcsWord::LuminositySegmentNrWord = 0
staticprivate

Definition at line 323 of file L1TcsWord.h.

Referenced by setLuminositySegmentNrWord64(), and unpack().

cms_uint32_t L1TcsWord::m_assignedPartitions
private

bit "i" correspond to detector partition "i" if bit = 1, detection partition connected to actual DAQ partition

Definition at line 406 of file L1TcsWord.h.

Referenced by assignedPartitions(), L1TcsWord(), operator==(), print(), reset(), setAssignedPartitions(), and setAssignedPartitionsWord64().

cms_uint16_t L1TcsWord::m_boardId
private

board identifier

Definition at line 381 of file L1TcsWord.h.

Referenced by boardId(), L1TcsWord(), operator==(), print(), reset(), setBoardId(), and setBoardIdWord64().

cms_uint16_t L1TcsWord::m_bxNr
private

bunch cross number as counted in the TCS chip

Definition at line 384 of file L1TcsWord.h.

Referenced by bxNr(), L1TcsWord(), operator==(), print(), reset(), setBxNr(), and setBxNrWord64().

cms_uint16_t L1TcsWord::m_daqNr
private

number of DAQ partition to which the L1A has been sent

Definition at line 387 of file L1TcsWord.h.

Referenced by daqNr(), L1TcsWord(), operator==(), print(), reset(), setDaqNr(), and setDaqNrWord64().

cms_uint32_t L1TcsWord::m_eventNr
private

event number since last L1 reset generated in TCS chip

Definition at line 415 of file L1TcsWord.h.

Referenced by eventNr(), L1TcsWord(), operator==(), print(), reset(), setEventNr(), and setEventNrWord64().

cms_uint16_t L1TcsWord::m_luminositySegmentNr
private

luminosity segment number

Definition at line 396 of file L1TcsWord.h.

Referenced by L1TcsWord(), luminositySegmentNr(), operator==(), print(), reset(), setLuminositySegmentNr(), and setLuminositySegmentNrWord64().

cms_uint64_t L1TcsWord::m_orbitNr
private

orbit number since start of run (48 bits, in fact)

Definition at line 420 of file L1TcsWord.h.

Referenced by L1TcsWord(), operator==(), orbitNr(), print(), reset(), setOrbitNr(), setOrbitNrFrom(), and setOrbitNrWord64().

cms_uint32_t L1TcsWord::m_partRunNr
private

partition run number

Definition at line 401 of file L1TcsWord.h.

Referenced by L1TcsWord(), operator==(), partRunNr(), print(), reset(), setPartRunNr(), and setPartRunNrWord64().

cms_uint32_t L1TcsWord::m_partTrigNr
private

total number of L1A sent since start of the run to this DAQ partition

Definition at line 412 of file L1TcsWord.h.

Referenced by L1TcsWord(), operator==(), partTrigNr(), print(), reset(), setPartTrigNr(), and setPartTrigNrWord64().

cms_uint16_t L1TcsWord::m_status
private

0000 = normal rate; 1000 = low rate = warning

Definition at line 393 of file L1TcsWord.h.

Referenced by L1TcsWord(), operator==(), print(), reset(), setStatus(), setStatusWord64(), and status().

cms_uint16_t L1TcsWord::m_triggerType
private

trigger type, identical with event type in CMS header (event type)

Definition at line 390 of file L1TcsWord.h.

Referenced by L1TcsWord(), operator==(), print(), reset(), setTriggerType(), setTriggerTypeWord64(), and triggerType().

const cms_uint64_t L1TcsWord::OrbitNrMask = 0x0000FFFFFFFFFFFFULL
staticprivate

Definition at line 367 of file L1TcsWord.h.

Referenced by setOrbitNrFrom().

const int L1TcsWord::OrbitNrShift = 0
staticprivate

Definition at line 369 of file L1TcsWord.h.

Referenced by setOrbitNrFrom(), and setOrbitNrWord64().

const int L1TcsWord::OrbitNrWord = 3
staticprivate

Definition at line 365 of file L1TcsWord.h.

Referenced by setOrbitNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::PartRunNrMask = 0xFFFFFFFF00000000ULL
staticprivate

Definition at line 346 of file L1TcsWord.h.

Referenced by setPartRunNr().

const int L1TcsWord::PartRunNrShift = 32
staticprivate

Definition at line 349 of file L1TcsWord.h.

Referenced by setPartRunNr(), and setPartRunNrWord64().

const int L1TcsWord::PartRunNrWord = 1
staticprivate

Definition at line 343 of file L1TcsWord.h.

Referenced by setPartRunNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::PartTrigNrMask = 0xFFFFFFFF00000000ULL
staticprivate

Definition at line 357 of file L1TcsWord.h.

Referenced by setPartTrigNr().

const int L1TcsWord::PartTrigNrShift = 32
staticprivate

Definition at line 360 of file L1TcsWord.h.

Referenced by setPartTrigNr(), and setPartTrigNrWord64().

const int L1TcsWord::PartTrigNrWord = 2
staticprivate

Definition at line 354 of file L1TcsWord.h.

Referenced by setPartTrigNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::StatusMask = 0x00000000000F0000ULL
staticprivate

Definition at line 330 of file L1TcsWord.h.

Referenced by setStatus().

const int L1TcsWord::StatusShift = 16
staticprivate

Definition at line 338 of file L1TcsWord.h.

Referenced by setStatus(), and setStatusWord64().

const int L1TcsWord::StatusWord = 0
staticprivate

Definition at line 322 of file L1TcsWord.h.

Referenced by setStatusWord64(), and unpack().

const cms_uint64_t L1TcsWord::TriggerTypeMask = 0x0000000000F00000ULL
staticprivate

Definition at line 329 of file L1TcsWord.h.

Referenced by setTriggerType().

const int L1TcsWord::TriggerTypeShift = 20
staticprivate

Definition at line 337 of file L1TcsWord.h.

Referenced by setTriggerType(), and setTriggerTypeWord64().

const int L1TcsWord::TriggerTypeWord = 0
staticprivate

Definition at line 321 of file L1TcsWord.h.

Referenced by setTriggerTypeWord64(), and unpack().