CMS 3D CMS Logo

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

Description: see header file.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 29 of file L1TcsWord.h.

Constructor & Destructor Documentation

L1TcsWord::L1TcsWord ( )

constructors

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

31 {
32 
33  m_boardId = 0;
34  m_bxNr = 0;
35  m_daqNr = 0;
36  m_triggerType = 0;
37  m_status = 0;
39  m_partRunNr = 0;
41  m_partTrigNr = 0;
42  m_eventNr = 0;
43  m_orbitNr = 0;
44 
45 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:388
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:399
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:410
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:382
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:385
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:413
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:379
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:418
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:394
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:391
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:404
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 48 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.

60 {
61 
62  m_boardId = boardIdValue;
63  m_bxNr = bxNrValue;
64  m_daqNr = daqNrValue;
65  m_triggerType = triggerTypeValue;
66  m_status = statusValue;
67  m_luminositySegmentNr = luminositySegmentNrValue;
68  m_partRunNr = partRunNrValue;
69  m_assignedPartitions = assignedPartitionsValue;
70  m_partTrigNr = partTrigNrValue;
71  m_eventNr = eventNrValue;
72  m_orbitNr = orbitNrValue;
73 
74 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:388
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:399
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:410
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:382
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:385
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:413
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:379
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:418
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:394
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:391
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:404
L1TcsWord::~L1TcsWord ( )
virtual

destructor

Definition at line 77 of file L1TcsWord.cc.

78 {
79 
80  // empty
81 
82 }

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 206 of file L1TcsWord.h.

References m_assignedPartitions.

207  {
208  return m_assignedPartitions;
209  }
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:404
const cms_uint16_t L1TcsWord::boardId ( ) const
inline

get/set board ID

get BoardId value

Definition at line 66 of file L1TcsWord.h.

References m_boardId.

67  {
68  return m_boardId;
69  }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:379
const cms_uint16_t L1TcsWord::bxNr ( ) const
inline

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

Definition at line 87 of file L1TcsWord.h.

References m_bxNr.

Referenced by L1TGT::analyze().

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

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

Definition at line 107 of file L1TcsWord.h.

References m_daqNr.

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

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

Definition at line 246 of file L1TcsWord.h.

References m_eventNr.

Referenced by L1TGT::analyze().

247  {
248  return m_eventNr;
249  }
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:413
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 285 of file L1TcsWord.h.

References BlockSize, print(), reset(), L1GlobalTriggerReadoutSetup::UnitLength, and unpack().

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

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

get/set luminosity segment number

Definition at line 166 of file L1TcsWord.h.

References m_luminositySegmentNr.

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

167  {
168  return m_luminositySegmentNr;
169  }
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:394
bool L1TcsWord::operator!= ( const L1TcsWord result) const

unequal operator

Definition at line 138 of file L1TcsWord.cc.

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

equal operator

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

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

get/set orbit number since start of run

Definition at line 266 of file L1TcsWord.h.

References m_orbitNr.

Referenced by L1TGT::analyze().

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

get/set partition run number

Definition at line 186 of file L1TcsWord.h.

References m_partRunNr.

187  {
188  return m_partRunNr;
189  }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:399
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 226 of file L1TcsWord.h.

References m_partTrigNr.

Referenced by L1TGT::analyze(), and L1Analysis::L1AnalysisGT::SetEvm().

227  {
228  return m_partTrigNr;
229  }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:410
void L1TcsWord::print ( std::ostream &  myCout) const

pretty print the content of a L1TcsWord

Definition at line 403 of file L1TcsWord.cc.

References TauDecayModes::dec, 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 getSize(), L1GlobalTriggerEvmReadoutRecord::print(), L1GTEvmDigiToRaw::produce(), and L1GlobalTriggerEvmRawToDigi::produce().

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

reset the content of a L1TcsWord

Definition at line 383 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 getSize(), and L1GlobalTriggerEvmRawToDigi::produce().

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

Definition at line 211 of file L1TcsWord.h.

References m_assignedPartitions, and setAssignedPartitionsWord64().

Referenced by unpack().

212  {
213  m_assignedPartitions = assignedPartitionsValue;
214  }
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:404
void L1TcsWord::setAssignedPartitions ( const cms_uint64_t word64)

set the AssignedPartitions value from a 64-bits word

Definition at line 295 of file L1TcsWord.cc.

References AssignedPartitionsMask, AssignedPartitionsShift, and m_assignedPartitions.

296 {
297 
300 
301 }
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:404
static const cms_uint64_t AssignedPartitionsMask
Definition: L1TcsWord.h:345
static const int AssignedPartitionsShift
Definition: L1TcsWord.h:348
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 305 of file L1TcsWord.cc.

References AssignedPartitionsShift, AssignedPartitionsWord, and m_assignedPartitions.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setAssignedPartitions().

306 {
307 
308  if (iWord == AssignedPartitionsWord) {
309  word64 = word64 |
310  (static_cast<cms_uint64_t> (m_assignedPartitions)
312  }
313 
314 }
static const int AssignedPartitionsWord
Definition: L1TcsWord.h:342
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:404
unsigned long long cms_uint64_t
Definition: typedefs.h:17
static const int AssignedPartitionsShift
Definition: L1TcsWord.h:348
void L1TcsWord::setBoardId ( const cms_uint16_t  boardIdValue)
inline

set BoardId from a BoardId value

Definition at line 72 of file L1TcsWord.h.

References m_boardId, and setBoardIdWord64().

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

73  {
74  m_boardId = boardIdValue;
75  }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:379
void L1TcsWord::setBoardId ( const cms_uint64_t word64)

set the BoardId value from a 64-bits word

Definition at line 148 of file L1TcsWord.cc.

References BoardIdMask, BoardIdShift, and m_boardId.

149 {
150  m_boardId = (word64 & BoardIdMask) >> BoardIdShift;
151 
152 }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:379
static const cms_uint64_t BoardIdMask
Definition: L1TcsWord.h:324
static const int BoardIdShift
Definition: L1TcsWord.h:332
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 156 of file L1TcsWord.cc.

References BoardIdShift, BoardIdWord, and m_boardId.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setBoardId().

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

Definition at line 92 of file L1TcsWord.h.

References m_bxNr, and setBxNrWord64().

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

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

set the BxNr value from a 64-bits word

Definition at line 167 of file L1TcsWord.cc.

References BxNrMask, BxNrShift, and m_bxNr.

168 {
169 
170  m_bxNr = (word64 & BxNrMask) >> BxNrShift;
171 
172 }
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:382
static const int BxNrShift
Definition: L1TcsWord.h:333
static const cms_uint64_t BxNrMask
Definition: L1TcsWord.h:325
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 176 of file L1TcsWord.cc.

References BxNrShift, BxNrWord, and m_bxNr.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setBxNr().

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

Definition at line 112 of file L1TcsWord.h.

References m_daqNr, and setDaqNrWord64().

Referenced by unpack().

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

set the DaqNr value from a 64-bits word

Definition at line 188 of file L1TcsWord.cc.

References DaqNrMask, DaqNrShift, and m_daqNr.

189 {
190 
191  m_daqNr = (word64 & DaqNrMask) >> DaqNrShift;
192 
193 }
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:385
static const int DaqNrShift
Definition: L1TcsWord.h:334
static const cms_uint64_t DaqNrMask
Definition: L1TcsWord.h:326
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 197 of file L1TcsWord.cc.

References DaqNrShift, DaqNrWord, and m_daqNr.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setDaqNr().

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

Definition at line 251 of file L1TcsWord.h.

References m_eventNr, and setEventNrWord64().

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

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

set the EventNr value from a 64-bits word

Definition at line 341 of file L1TcsWord.cc.

References EventNrMask, EventNrShift, and m_eventNr.

342 {
343 
344  m_eventNr = (word64 & EventNrMask) >> EventNrShift;
345 
346 }
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:413
static const cms_uint64_t EventNrMask
Definition: L1TcsWord.h:356
static const int EventNrShift
Definition: L1TcsWord.h:359
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 350 of file L1TcsWord.cc.

References EventNrShift, EventNrWord, and m_eventNr.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setEventNr().

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

Definition at line 171 of file L1TcsWord.h.

References m_luminositySegmentNr, and setLuminositySegmentNrWord64().

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

172  {
173  m_luminositySegmentNr = luminositySegmentNrValue;
174  }
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:394
void L1TcsWord::setLuminositySegmentNr ( const cms_uint64_t word64)

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

Definition at line 250 of file L1TcsWord.cc.

References LuminositySegmentNrMask, LuminositySegmentNrShift, and m_luminositySegmentNr.

251 {
252 
255 
256 }
static const cms_uint64_t LuminositySegmentNrMask
Definition: L1TcsWord.h:329
static const int LuminositySegmentNrShift
Definition: L1TcsWord.h:337
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:394
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 260 of file L1TcsWord.cc.

References LuminositySegmentNrShift, LuminositySegmentNrWord, and m_luminositySegmentNr.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setLuminositySegmentNr().

261 {
262 
263  if (iWord == LuminositySegmentNrWord) {
264  word64 = word64 |
266  }
267 
268 }
static const int LuminositySegmentNrWord
Definition: L1TcsWord.h:321
static const int LuminositySegmentNrShift
Definition: L1TcsWord.h:337
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:394
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setOrbitNr ( const cms_uint64_t  orbitNrValue)
inline

Definition at line 271 of file L1TcsWord.h.

References m_orbitNr, setOrbitNrFrom(), and setOrbitNrWord64().

Referenced by L1GlobalTrigger::produce().

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

set the OrbitNr value from a 64-bits word

Definition at line 363 of file L1TcsWord.cc.

References m_orbitNr, OrbitNrMask, and OrbitNrShift.

Referenced by setOrbitNr(), and unpack().

364 {
365 
366  m_orbitNr = (word64 & OrbitNrMask) >> OrbitNrShift;
367 
368 }
static const int OrbitNrShift
Definition: L1TcsWord.h:367
static const cms_uint64_t OrbitNrMask
Definition: L1TcsWord.h:365
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:418
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 372 of file L1TcsWord.cc.

References m_orbitNr, OrbitNrShift, and OrbitNrWord.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setOrbitNr().

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

Definition at line 191 of file L1TcsWord.h.

References m_partRunNr, and setPartRunNrWord64().

Referenced by unpack().

192  {
193  m_partRunNr = partRunNrValue;
194  }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:399
void L1TcsWord::setPartRunNr ( const cms_uint64_t word64)

set the PartRunNr value from a 64-bits word

Definition at line 273 of file L1TcsWord.cc.

References m_partRunNr, PartRunNrMask, and PartRunNrShift.

274 {
275 
276  m_partRunNr = (word64 & PartRunNrMask) >> PartRunNrShift;
277 
278 }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:399
static const int PartRunNrShift
Definition: L1TcsWord.h:347
static const cms_uint64_t PartRunNrMask
Definition: L1TcsWord.h:344
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 282 of file L1TcsWord.cc.

References m_partRunNr, PartRunNrShift, and PartRunNrWord.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setPartRunNr().

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

Definition at line 231 of file L1TcsWord.h.

References m_partTrigNr, and setPartTrigNrWord64().

Referenced by unpack().

232  {
233  m_partTrigNr = partTrigNrValue;
234  }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:410
void L1TcsWord::setPartTrigNr ( const cms_uint64_t word64)

set the PartTrigNr value from a 64-bits word

Definition at line 319 of file L1TcsWord.cc.

References m_partTrigNr, PartTrigNrMask, and PartTrigNrShift.

320 {
321 
323 
324 }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:410
static const cms_uint64_t PartTrigNrMask
Definition: L1TcsWord.h:355
static const int PartTrigNrShift
Definition: L1TcsWord.h:358
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 328 of file L1TcsWord.cc.

References m_partTrigNr, PartTrigNrShift, and PartTrigNrWord.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setPartTrigNr().

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

Definition at line 152 of file L1TcsWord.h.

References m_status, and setStatusWord64().

Referenced by unpack().

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

set the Status value from a 64-bits word

Definition at line 229 of file L1TcsWord.cc.

References m_status, StatusMask, and StatusShift.

230 {
231 
232  m_status = (word64 & StatusMask) >> StatusShift;
233 
234 }
static const cms_uint64_t StatusMask
Definition: L1TcsWord.h:328
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:391
static const int StatusShift
Definition: L1TcsWord.h:336
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 238 of file L1TcsWord.cc.

References m_status, StatusShift, and StatusWord.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setStatus().

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

Definition at line 132 of file L1TcsWord.h.

References m_triggerType, and setTriggerTypeWord64().

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

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

set the TriggerType value from a 64-bits word

Definition at line 208 of file L1TcsWord.cc.

References m_triggerType, TriggerTypeMask, and TriggerTypeShift.

209 {
210 
212 
213 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:388
static const cms_uint64_t TriggerTypeMask
Definition: L1TcsWord.h:327
static const int TriggerTypeShift
Definition: L1TcsWord.h:335
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 217 of file L1TcsWord.cc.

References m_triggerType, TriggerTypeShift, and TriggerTypeWord.

Referenced by L1GTEvmDigiToRaw::packTCS(), and setTriggerType().

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

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

Definition at line 147 of file L1TcsWord.h.

References m_status.

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

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

Definition at line 127 of file L1TcsWord.h.

References m_triggerType.

Referenced by L1TGT::analyze().

128  {
129  return m_triggerType;
130  }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:388
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 500 of file L1TcsWord.cc.

References AssignedPartitionsMask, AssignedPartitionsShift, AssignedPartitionsWord, BlockSize, BoardIdMask, BoardIdShift, BoardIdWord, BxNrMask, BxNrShift, BxNrWord, DaqNrMask, DaqNrShift, DaqNrWord, TauDecayModes::dec, EventNrMask, EventNrShift, EventNrWord, edm::isDebugEnabled(), LogDebug, LogTrace, LuminositySegmentNrMask, LuminositySegmentNrShift, LuminositySegmentNrWord, OrbitNrMask, OrbitNrShift, OrbitNrWord, PartRunNrMask, PartRunNrShift, PartRunNrWord, PartTrigNrMask, PartTrigNrShift, PartTrigNrWord, jets_cff::payload, setAssignedPartitions(), setBoardId(), setBxNr(), setDaqNr(), setEventNr(), setLuminositySegmentNr(), setOrbitNrFrom(), setPartRunNr(), setPartTrigNr(), setStatus(), setTriggerType(), StatusMask, StatusShift, StatusWord, TriggerTypeMask, TriggerTypeShift, and TriggerTypeWord.

Referenced by getSize(), and L1GlobalTriggerEvmRawToDigi::produce().

501 {
502  LogDebug("L1GtTcsWord")
503  << "\nUnpacking TCS block.\n"
504  << std::endl;
505 
506  const cms_uint64_t* payload =
507  reinterpret_cast<cms_uint64_t const*>(tcsPtr);
508 
509  setBoardId(payload[BoardIdWord]);
510  setBxNr(payload[BxNrWord]);
511  setDaqNr(payload[DaqNrWord]);
513  setStatus(payload[StatusWord]);
515 
516  setPartRunNr(payload[PartRunNrWord]);
518 
519  setPartTrigNr(payload[PartTrigNrWord]);
520  setEventNr(payload[EventNrWord]);
521 
522  setOrbitNrFrom(payload[OrbitNrWord]);
523 
524  if ( edm::isDebugEnabled() ) {
525 
526  for (int iWord = 0; iWord < BlockSize; ++iWord) {
527  LogTrace("L1GtTcsWord")
528  << std::setw(4) << iWord << " "
529  << std::hex << std::setfill('0')
530  << std::setw(16) << payload[iWord]
531  << std::dec << std::setfill(' ')
532  << std::endl;
533  }
534 
535  }
536 
537 }
#define LogDebug(id)
bool isDebugEnabled()
static const int OrbitNrWord
Definition: L1TcsWord.h:363
void setBxNr(const cms_uint16_t bxNrValue)
Definition: L1TcsWord.h:92
void setAssignedPartitions(const cms_uint32_t assignedPartitionsValue)
Definition: L1TcsWord.h:211
void setOrbitNrFrom(const cms_uint64_t &word64)
set the OrbitNr value from a 64-bits word
Definition: L1TcsWord.cc:363
void setLuminositySegmentNr(const cms_uint16_t luminositySegmentNrValue)
Definition: L1TcsWord.h:171
static const int EventNrWord
Definition: L1TcsWord.h:353
void setStatus(const cms_uint16_t statusValue)
Definition: L1TcsWord.h:152
static const int PartRunNrWord
Definition: L1TcsWord.h:341
void setPartRunNr(const cms_uint32_t partRunNrValue)
Definition: L1TcsWord.h:191
static const int LuminositySegmentNrWord
Definition: L1TcsWord.h:321
void setPartTrigNr(const cms_uint32_t partTrigNrValue)
Definition: L1TcsWord.h:231
static const int PartTrigNrWord
Definition: L1TcsWord.h:352
static const int BxNrWord
Definition: L1TcsWord.h:317
#define LogTrace(id)
static const int StatusWord
Definition: L1TcsWord.h:320
static const int AssignedPartitionsWord
Definition: L1TcsWord.h:342
void setBoardId(const cms_uint16_t boardIdValue)
set BoardId from a BoardId value
Definition: L1TcsWord.h:72
static const int BoardIdWord
Definition: L1TcsWord.h:316
static const int DaqNrWord
Definition: L1TcsWord.h:318
static const int BlockSize
Definition: L1TcsWord.h:311
void setTriggerType(const cms_uint16_t triggerTypeValue)
Definition: L1TcsWord.h:132
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void setEventNr(const cms_uint32_t eventNrValue)
Definition: L1TcsWord.h:251
static const int TriggerTypeWord
Definition: L1TcsWord.h:319
void setDaqNr(const cms_uint16_t daqNrValue)
Definition: L1TcsWord.h:112

Member Data Documentation

const cms_uint64_t L1TcsWord::AssignedPartitionsMask = 0x00000000FFFFFFFFULL
staticprivate

Definition at line 345 of file L1TcsWord.h.

Referenced by setAssignedPartitions(), and unpack().

const int L1TcsWord::AssignedPartitionsShift = 0
staticprivate

Definition at line 348 of file L1TcsWord.h.

Referenced by setAssignedPartitions(), setAssignedPartitionsWord64(), and unpack().

const int L1TcsWord::AssignedPartitionsWord = 1
staticprivate

Definition at line 342 of file L1TcsWord.h.

Referenced by setAssignedPartitionsWord64(), and unpack().

const int L1TcsWord::BlockSize = 5
staticprivate

Definition at line 311 of file L1TcsWord.h.

Referenced by getSize(), and unpack().

const cms_uint64_t L1TcsWord::BoardIdMask = 0xFFFF000000000000ULL
staticprivate

Definition at line 324 of file L1TcsWord.h.

Referenced by setBoardId(), and unpack().

const int L1TcsWord::BoardIdShift = 48
staticprivate

Definition at line 332 of file L1TcsWord.h.

Referenced by setBoardId(), setBoardIdWord64(), and unpack().

const int L1TcsWord::BoardIdWord = 0
staticprivate

Definition at line 316 of file L1TcsWord.h.

Referenced by setBoardIdWord64(), and unpack().

const cms_uint64_t L1TcsWord::BxNrMask = 0x00000FFF00000000ULL
staticprivate

Definition at line 325 of file L1TcsWord.h.

Referenced by setBxNr(), and unpack().

const int L1TcsWord::BxNrShift = 32
staticprivate

Definition at line 333 of file L1TcsWord.h.

Referenced by setBxNr(), setBxNrWord64(), and unpack().

const int L1TcsWord::BxNrWord = 0
staticprivate

Definition at line 317 of file L1TcsWord.h.

Referenced by setBxNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::DaqNrMask = 0x000000000F000000ULL
staticprivate

Definition at line 326 of file L1TcsWord.h.

Referenced by setDaqNr(), and unpack().

const int L1TcsWord::DaqNrShift = 24
staticprivate

Definition at line 334 of file L1TcsWord.h.

Referenced by setDaqNr(), setDaqNrWord64(), and unpack().

const int L1TcsWord::DaqNrWord = 0
staticprivate

Definition at line 318 of file L1TcsWord.h.

Referenced by setDaqNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::EventNrMask = 0x00000000FFFFFFFFULL
staticprivate

Definition at line 356 of file L1TcsWord.h.

Referenced by setEventNr(), and unpack().

const int L1TcsWord::EventNrShift = 0
staticprivate

Definition at line 359 of file L1TcsWord.h.

Referenced by setEventNr(), setEventNrWord64(), and unpack().

const int L1TcsWord::EventNrWord = 2
staticprivate

Definition at line 353 of file L1TcsWord.h.

Referenced by setEventNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::LuminositySegmentNrMask = 0x000000000000FFFFULL
staticprivate

Definition at line 329 of file L1TcsWord.h.

Referenced by setLuminositySegmentNr(), and unpack().

const int L1TcsWord::LuminositySegmentNrShift = 0
staticprivate

Definition at line 337 of file L1TcsWord.h.

Referenced by setLuminositySegmentNr(), setLuminositySegmentNrWord64(), and unpack().

const int L1TcsWord::LuminositySegmentNrWord = 0
staticprivate

Definition at line 321 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 404 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 379 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 382 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 385 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 413 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 394 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 418 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 399 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 410 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 391 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 388 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 365 of file L1TcsWord.h.

Referenced by setOrbitNrFrom(), and unpack().

const int L1TcsWord::OrbitNrShift = 0
staticprivate

Definition at line 367 of file L1TcsWord.h.

Referenced by setOrbitNrFrom(), setOrbitNrWord64(), and unpack().

const int L1TcsWord::OrbitNrWord = 3
staticprivate

Definition at line 363 of file L1TcsWord.h.

Referenced by setOrbitNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::PartRunNrMask = 0xFFFFFFFF00000000ULL
staticprivate

Definition at line 344 of file L1TcsWord.h.

Referenced by setPartRunNr(), and unpack().

const int L1TcsWord::PartRunNrShift = 32
staticprivate

Definition at line 347 of file L1TcsWord.h.

Referenced by setPartRunNr(), setPartRunNrWord64(), and unpack().

const int L1TcsWord::PartRunNrWord = 1
staticprivate

Definition at line 341 of file L1TcsWord.h.

Referenced by setPartRunNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::PartTrigNrMask = 0xFFFFFFFF00000000ULL
staticprivate

Definition at line 355 of file L1TcsWord.h.

Referenced by setPartTrigNr(), and unpack().

const int L1TcsWord::PartTrigNrShift = 32
staticprivate

Definition at line 358 of file L1TcsWord.h.

Referenced by setPartTrigNr(), setPartTrigNrWord64(), and unpack().

const int L1TcsWord::PartTrigNrWord = 2
staticprivate

Definition at line 352 of file L1TcsWord.h.

Referenced by setPartTrigNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::StatusMask = 0x00000000000F0000ULL
staticprivate

Definition at line 328 of file L1TcsWord.h.

Referenced by setStatus(), and unpack().

const int L1TcsWord::StatusShift = 16
staticprivate

Definition at line 336 of file L1TcsWord.h.

Referenced by setStatus(), setStatusWord64(), and unpack().

const int L1TcsWord::StatusWord = 0
staticprivate

Definition at line 320 of file L1TcsWord.h.

Referenced by setStatusWord64(), and unpack().

const cms_uint64_t L1TcsWord::TriggerTypeMask = 0x0000000000F00000ULL
staticprivate

Definition at line 327 of file L1TcsWord.h.

Referenced by setTriggerType(), and unpack().

const int L1TcsWord::TriggerTypeShift = 20
staticprivate

Definition at line 335 of file L1TcsWord.h.

Referenced by setTriggerType(), setTriggerTypeWord64(), and unpack().

const int L1TcsWord::TriggerTypeWord = 0
staticprivate

Definition at line 319 of file L1TcsWord.h.

Referenced by setTriggerTypeWord64(), and unpack().