CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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

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.

30  {
31  m_boardId = 0;
32  m_bxNr = 0;
33  m_daqNr = 0;
34  m_triggerType = 0;
35  m_status = 0;
37  m_partRunNr = 0;
39  m_partTrigNr = 0;
40  m_eventNr = 0;
41  m_orbitNr = 0;
42 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:291
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:302
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:313
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:285
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:288
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:316
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:282
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:321
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:297
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:294
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:307
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 45 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.

55  {
56  m_boardId = boardIdValue;
57  m_bxNr = bxNrValue;
58  m_daqNr = daqNrValue;
59  m_triggerType = triggerTypeValue;
60  m_status = statusValue;
61  m_luminositySegmentNr = luminositySegmentNrValue;
62  m_partRunNr = partRunNrValue;
63  m_assignedPartitions = assignedPartitionsValue;
64  m_partTrigNr = partTrigNrValue;
65  m_eventNr = eventNrValue;
66  m_orbitNr = orbitNrValue;
67 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:291
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:302
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:313
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:285
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:288
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:316
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:282
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:321
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:297
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:294
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:307
L1TcsWord::~L1TcsWord ( )
virtual

destructor

Definition at line 70 of file L1TcsWord.cc.

70  {
71  // empty
72 }

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

References m_assignedPartitions.

147 { return m_assignedPartitions; }
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:307
const cms_uint16_t L1TcsWord::boardId ( ) const
inline

get/set board ID

get BoardId value

Definition at line 60 of file L1TcsWord.h.

References m_boardId.

60 { return m_boardId; }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:282
const cms_uint16_t L1TcsWord::bxNr ( ) const
inline

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

Definition at line 73 of file L1TcsWord.h.

References m_bxNr.

Referenced by L1TGT::analyze().

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

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

Definition at line 85 of file L1TcsWord.h.

References m_daqNr.

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

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

Definition at line 173 of file L1TcsWord.h.

References m_eventNr.

Referenced by L1TGT::analyze().

173 { return m_eventNr; }
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:316
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 197 of file L1TcsWord.h.

References BlockSize, and L1GlobalTriggerReadoutSetup::UnitLength.

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

197  {
198  int unitLengthBits = L1GlobalTriggerReadoutSetup::UnitLength;
199 
200  return BlockSize * unitLengthBits;
201  }
static const int UnitLength
one unit in the word is UnitLength bits
static const int BlockSize
Definition: L1TcsWord.h:218
const cms_uint16_t L1TcsWord::luminositySegmentNr ( ) const
inline

get/set luminosity segment number

Definition at line 121 of file L1TcsWord.h.

References m_luminositySegmentNr.

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

121 { return m_luminositySegmentNr; }
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:297
bool L1TcsWord::operator!= ( const L1TcsWord result) const

unequal operator

Definition at line 125 of file L1TcsWord.cc.

125 { return !(result == *this); }
bool L1TcsWord::operator== ( const L1TcsWord result) const

equal operator

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

75  {
76  if (m_boardId != result.m_boardId) {
77  return false;
78  }
79 
80  if (m_bxNr != result.m_bxNr) {
81  return false;
82  }
83 
84  if (m_daqNr != result.m_daqNr) {
85  return false;
86  }
87 
88  if (m_triggerType != result.m_triggerType) {
89  return false;
90  }
91 
92  if (m_status != result.m_status) {
93  return false;
94  }
95 
97  return false;
98  }
99 
100  if (m_partRunNr != result.m_partRunNr) {
101  return false;
102  }
103 
105  return false;
106  }
107 
108  if (m_partTrigNr != result.m_partTrigNr) {
109  return false;
110  }
111 
112  if (m_eventNr != result.m_eventNr) {
113  return false;
114  }
115 
116  if (m_orbitNr != result.m_orbitNr) {
117  return false;
118  }
119 
120  // all members identical
121  return true;
122 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:291
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:302
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:313
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:285
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:288
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:316
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:282
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:321
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:297
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:294
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:307
const cms_uint64_t L1TcsWord::orbitNr ( ) const
inline

get/set orbit number since start of run

Definition at line 185 of file L1TcsWord.h.

References m_orbitNr.

Referenced by L1TGT::analyze().

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

get/set partition run number

Definition at line 135 of file L1TcsWord.h.

References m_partRunNr.

135 { return m_partRunNr; }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:302
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 161 of file L1TcsWord.h.

References m_partTrigNr.

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

161 { return m_partTrigNr; }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:313
void L1TcsWord::print ( std::ostream &  myCout) const

pretty print the content of a L1TcsWord

Definition at line 274 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 L1GlobalTriggerEvmReadoutRecord::print(), L1GTEvmDigiToRaw::produce(), and L1GlobalTriggerEvmRawToDigi::produce().

274  {
275  myCout << "\n L1TcsWord::print \n" << std::endl;
276 
277  int iWord = 0;
278 
279  myCout << "\n Word " << iWord << std::endl;
280 
281  myCout << " Board Id: " << std::hex << " hex: "
282  << " " << std::setw(4) << std::setfill('0') << m_boardId << std::setfill(' ') << std::dec
283  << " dec: " << m_boardId << std::endl;
284 
285  myCout << " BxNr: " << std::hex << " hex: "
286  << " " << std::setw(3) << std::setfill('0') << m_bxNr << std::setfill(' ') << std::dec
287  << " dec: " << m_bxNr << std::endl;
288 
289  myCout << " DaqNr: " << std::hex << " hex: "
290  << " " << std::setw(1) << m_daqNr << std::dec << " dec: " << m_daqNr << std::endl;
291 
292  myCout << " TriggerType: " << std::hex << " hex: "
293  << " " << std::setw(1) << m_triggerType << std::dec << " dec: " << m_triggerType << std::endl;
294 
295  myCout << " Status: " << std::hex << " hex: "
296  << " " << std::setw(1) << m_status << std::dec << " dec: " << m_status << std::endl;
297 
298  myCout << " LuminositySegmentNr: " << std::hex << " hex: "
299  << " " << std::setw(4) << m_luminositySegmentNr << std::dec << " dec: " << m_luminositySegmentNr
300  << std::endl;
301 
302  iWord++;
303  myCout << "\n Word " << iWord << std::endl;
304 
305  myCout << " PartRunNr: " << std::hex << " hex: "
306  << " " << std::setw(8) << std::setfill('0') << m_partRunNr << std::setfill(' ') << std::dec
307  << " dec: " << m_partRunNr << std::endl;
308 
309  myCout << " AssignedPartitions: " << std::hex << " hex: "
310  << " " << std::setw(8) << std::setfill('0') << m_assignedPartitions << std::setfill(' ') << std::dec
311  << " dec: " << m_assignedPartitions << std::endl;
312 
313  iWord++;
314  myCout << "\n Word " << iWord << std::endl;
315 
316  myCout << " PartTrigNr: " << std::hex << " hex: "
317  << " " << std::setw(8) << std::setfill('0') << m_partTrigNr << std::setfill(' ') << std::dec
318  << " dec: " << m_partTrigNr << std::endl;
319 
320  myCout << " EventNr: " << std::hex << " hex: "
321  << " " << std::setw(8) << std::setfill('0') << m_eventNr << std::setfill(' ') << std::dec
322  << " dec: " << m_eventNr << std::endl;
323 
324  iWord++;
325  myCout << "\n Word " << iWord << std::endl;
326 
327  myCout << " OrbitNr: " << std::hex << " hex: "
328  << "" << std::setw(12) << std::setfill('0') << m_orbitNr << std::setfill(' ') << std::dec
329  << " dec: " << m_orbitNr << std::endl;
330 
331  iWord++;
332  myCout << "\n Word " << iWord << std::endl;
333 
334  myCout << " Empty word " << std::endl;
335 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:291
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:302
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:313
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:285
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:288
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:316
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:282
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:321
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:297
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:294
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:307
void L1TcsWord::reset ( void  )

reset the content of a L1TcsWord

Definition at line 259 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().

259  {
260  m_boardId = 0;
261  m_bxNr = 0;
262  m_daqNr = 0;
263  m_triggerType = 0;
264  m_status = 0;
266  m_partRunNr = 0;
268  m_partTrigNr = 0;
269  m_eventNr = 0;
270  m_orbitNr = 0;
271 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:291
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:302
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:313
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:285
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:288
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:316
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:282
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:321
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:297
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:294
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:307
void L1TcsWord::setAssignedPartitions ( const cms_uint32_t  assignedPartitionsValue)
inline

Definition at line 149 of file L1TcsWord.h.

References m_assignedPartitions.

Referenced by unpack().

149  {
150  m_assignedPartitions = assignedPartitionsValue;
151  }
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:307
void L1TcsWord::setAssignedPartitions ( const cms_uint64_t word64)

set the AssignedPartitions value from a 64-bits word

Definition at line 211 of file L1TcsWord.cc.

References AssignedPartitionsMask, AssignedPartitionsShift, and m_assignedPartitions.

211  {
213 }
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:307
static const cms_uint64_t AssignedPartitionsMask
Definition: L1TcsWord.h:252
static const int AssignedPartitionsShift
Definition: L1TcsWord.h:255
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 217 of file L1TcsWord.cc.

References AssignedPartitionsShift, AssignedPartitionsWord, and m_assignedPartitions.

Referenced by L1GTEvmDigiToRaw::packTCS().

217  {
218  if (iWord == AssignedPartitionsWord) {
219  word64 = word64 | (static_cast<cms_uint64_t>(m_assignedPartitions) << AssignedPartitionsShift);
220  }
221 }
static const int AssignedPartitionsWord
Definition: L1TcsWord.h:249
cms_uint32_t m_assignedPartitions
Definition: L1TcsWord.h:307
unsigned long long cms_uint64_t
Definition: typedefs.h:17
static const int AssignedPartitionsShift
Definition: L1TcsWord.h:255
void L1TcsWord::setBoardId ( const cms_uint16_t  boardIdValue)
inline

set BoardId from a BoardId value

Definition at line 63 of file L1TcsWord.h.

References m_boardId.

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

63 { m_boardId = boardIdValue; }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:282
void L1TcsWord::setBoardId ( const cms_uint64_t word64)

set the BoardId value from a 64-bits word

Definition at line 130 of file L1TcsWord.cc.

References BoardIdMask, BoardIdShift, and m_boardId.

130 { m_boardId = (word64 & BoardIdMask) >> BoardIdShift; }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:282
static const cms_uint64_t BoardIdMask
Definition: L1TcsWord.h:231
static const int BoardIdShift
Definition: L1TcsWord.h:239
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 134 of file L1TcsWord.cc.

References BoardIdShift, BoardIdWord, and m_boardId.

Referenced by L1GTEvmDigiToRaw::packTCS().

134  {
135  if (iWord == BoardIdWord) {
136  word64 = word64 | (static_cast<cms_uint64_t>(m_boardId) << BoardIdShift);
137  }
138 }
cms_uint16_t m_boardId
board identifier
Definition: L1TcsWord.h:282
static const int BoardIdShift
Definition: L1TcsWord.h:239
static const int BoardIdWord
Definition: L1TcsWord.h:223
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setBxNr ( const cms_uint16_t  bxNrValue)
inline

Definition at line 75 of file L1TcsWord.h.

References m_bxNr.

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

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

set the BxNr value from a 64-bits word

Definition at line 141 of file L1TcsWord.cc.

References BxNrMask, BxNrShift, and m_bxNr.

141 { m_bxNr = (word64 & BxNrMask) >> BxNrShift; }
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:285
static const int BxNrShift
Definition: L1TcsWord.h:240
static const cms_uint64_t BxNrMask
Definition: L1TcsWord.h:232
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 145 of file L1TcsWord.cc.

References BxNrShift, BxNrWord, and m_bxNr.

Referenced by L1GTEvmDigiToRaw::packTCS().

145  {
146  if (iWord == BxNrWord) {
147  word64 = word64 | (static_cast<cms_uint64_t>(m_bxNr) << BxNrShift);
148  }
149 }
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:285
static const int BxNrShift
Definition: L1TcsWord.h:240
static const int BxNrWord
Definition: L1TcsWord.h:224
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setDaqNr ( const cms_uint16_t  daqNrValue)
inline

Definition at line 87 of file L1TcsWord.h.

References m_daqNr.

Referenced by unpack().

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

set the DaqNr value from a 64-bits word

Definition at line 152 of file L1TcsWord.cc.

References DaqNrMask, DaqNrShift, and m_daqNr.

152 { m_daqNr = (word64 & DaqNrMask) >> DaqNrShift; }
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:288
static const int DaqNrShift
Definition: L1TcsWord.h:241
static const cms_uint64_t DaqNrMask
Definition: L1TcsWord.h:233
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 156 of file L1TcsWord.cc.

References DaqNrShift, DaqNrWord, and m_daqNr.

Referenced by L1GTEvmDigiToRaw::packTCS().

156  {
157  if (iWord == DaqNrWord) {
158  word64 = word64 | (static_cast<cms_uint64_t>(m_daqNr) << DaqNrShift);
159  }
160 }
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
Definition: L1TcsWord.h:288
static const int DaqNrShift
Definition: L1TcsWord.h:241
static const int DaqNrWord
Definition: L1TcsWord.h:225
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setEventNr ( const cms_uint32_t  eventNrValue)
inline

Definition at line 175 of file L1TcsWord.h.

References m_eventNr.

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

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

set the EventNr value from a 64-bits word

Definition at line 237 of file L1TcsWord.cc.

References EventNrMask, EventNrShift, and m_eventNr.

237 { m_eventNr = (word64 & EventNrMask) >> EventNrShift; }
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:316
static const cms_uint64_t EventNrMask
Definition: L1TcsWord.h:263
static const int EventNrShift
Definition: L1TcsWord.h:266
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 241 of file L1TcsWord.cc.

References EventNrShift, EventNrWord, and m_eventNr.

Referenced by L1GTEvmDigiToRaw::packTCS().

241  {
242  if (iWord == EventNrWord) {
243  word64 = word64 | (static_cast<cms_uint64_t>(m_eventNr) << EventNrShift);
244  }
245 }
static const int EventNrWord
Definition: L1TcsWord.h:260
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:316
static const int EventNrShift
Definition: L1TcsWord.h:266
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setLuminositySegmentNr ( const cms_uint16_t  luminositySegmentNrValue)
inline

Definition at line 123 of file L1TcsWord.h.

References m_luminositySegmentNr.

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

123  {
124  m_luminositySegmentNr = luminositySegmentNrValue;
125  }
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:297
void L1TcsWord::setLuminositySegmentNr ( const cms_uint64_t word64)

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

Definition at line 187 of file L1TcsWord.cc.

References LuminositySegmentNrMask, LuminositySegmentNrShift, and m_luminositySegmentNr.

187  {
189 }
static const cms_uint64_t LuminositySegmentNrMask
Definition: L1TcsWord.h:236
static const int LuminositySegmentNrShift
Definition: L1TcsWord.h:244
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:297
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 193 of file L1TcsWord.cc.

References LuminositySegmentNrShift, LuminositySegmentNrWord, and m_luminositySegmentNr.

Referenced by L1GTEvmDigiToRaw::packTCS().

193  {
194  if (iWord == LuminositySegmentNrWord) {
195  word64 = word64 | (static_cast<cms_uint64_t>(m_luminositySegmentNr) << LuminositySegmentNrShift);
196  }
197 }
static const int LuminositySegmentNrWord
Definition: L1TcsWord.h:228
static const int LuminositySegmentNrShift
Definition: L1TcsWord.h:244
cms_uint16_t m_luminositySegmentNr
luminosity segment number
Definition: L1TcsWord.h:297
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setOrbitNr ( const cms_uint64_t  orbitNrValue)
inline

Definition at line 187 of file L1TcsWord.h.

References m_orbitNr.

Referenced by L1GlobalTrigger::produce().

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

set the OrbitNr value from a 64-bits word

Definition at line 248 of file L1TcsWord.cc.

References m_orbitNr, OrbitNrMask, and OrbitNrShift.

Referenced by unpack().

248 { m_orbitNr = (word64 & OrbitNrMask) >> OrbitNrShift; }
static const int OrbitNrShift
Definition: L1TcsWord.h:274
static const cms_uint64_t OrbitNrMask
Definition: L1TcsWord.h:272
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:321
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 252 of file L1TcsWord.cc.

References m_orbitNr, OrbitNrShift, and OrbitNrWord.

Referenced by L1GTEvmDigiToRaw::packTCS().

252  {
253  if (iWord == OrbitNrWord) {
254  word64 = word64 | (static_cast<cms_uint64_t>(m_orbitNr) << OrbitNrShift);
255  }
256 }
static const int OrbitNrWord
Definition: L1TcsWord.h:270
static const int OrbitNrShift
Definition: L1TcsWord.h:274
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
Definition: L1TcsWord.h:321
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setPartRunNr ( const cms_uint32_t  partRunNrValue)
inline

Definition at line 137 of file L1TcsWord.h.

References m_partRunNr.

Referenced by unpack().

137 { m_partRunNr = partRunNrValue; }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:302
void L1TcsWord::setPartRunNr ( const cms_uint64_t word64)

set the PartRunNr value from a 64-bits word

Definition at line 200 of file L1TcsWord.cc.

References m_partRunNr, PartRunNrMask, and PartRunNrShift.

200 { m_partRunNr = (word64 & PartRunNrMask) >> PartRunNrShift; }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:302
static const int PartRunNrShift
Definition: L1TcsWord.h:254
static const cms_uint64_t PartRunNrMask
Definition: L1TcsWord.h:251
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 204 of file L1TcsWord.cc.

References m_partRunNr, PartRunNrShift, and PartRunNrWord.

Referenced by L1GTEvmDigiToRaw::packTCS().

204  {
205  if (iWord == PartRunNrWord) {
206  word64 = word64 | (static_cast<cms_uint64_t>(m_partRunNr) << PartRunNrShift);
207  }
208 }
cms_uint32_t m_partRunNr
partition run number
Definition: L1TcsWord.h:302
static const int PartRunNrShift
Definition: L1TcsWord.h:254
static const int PartRunNrWord
Definition: L1TcsWord.h:248
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setPartTrigNr ( const cms_uint32_t  partTrigNrValue)
inline

Definition at line 163 of file L1TcsWord.h.

References m_partTrigNr.

Referenced by unpack().

163 { m_partTrigNr = partTrigNrValue; }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:313
void L1TcsWord::setPartTrigNr ( const cms_uint64_t word64)

set the PartTrigNr value from a 64-bits word

Definition at line 224 of file L1TcsWord.cc.

References m_partTrigNr, PartTrigNrMask, and PartTrigNrShift.

224  {
226 }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:313
static const cms_uint64_t PartTrigNrMask
Definition: L1TcsWord.h:262
static const int PartTrigNrShift
Definition: L1TcsWord.h:265
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 230 of file L1TcsWord.cc.

References m_partTrigNr, PartTrigNrShift, and PartTrigNrWord.

Referenced by L1GTEvmDigiToRaw::packTCS().

230  {
231  if (iWord == PartTrigNrWord) {
232  word64 = word64 | (static_cast<cms_uint64_t>(m_partTrigNr) << PartTrigNrShift);
233  }
234 }
cms_uint32_t m_partTrigNr
Definition: L1TcsWord.h:313
static const int PartTrigNrWord
Definition: L1TcsWord.h:259
static const int PartTrigNrShift
Definition: L1TcsWord.h:265
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setStatus ( const cms_uint16_t  statusValue)
inline

Definition at line 111 of file L1TcsWord.h.

References m_status.

Referenced by unpack().

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

set the Status value from a 64-bits word

Definition at line 176 of file L1TcsWord.cc.

References m_status, StatusMask, and StatusShift.

176 { m_status = (word64 & StatusMask) >> StatusShift; }
static const cms_uint64_t StatusMask
Definition: L1TcsWord.h:235
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:294
static const int StatusShift
Definition: L1TcsWord.h:243
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 180 of file L1TcsWord.cc.

References m_status, StatusShift, and StatusWord.

Referenced by L1GTEvmDigiToRaw::packTCS().

180  {
181  if (iWord == StatusWord) {
182  word64 = word64 | (static_cast<cms_uint64_t>(m_status) << StatusShift);
183  }
184 }
static const int StatusWord
Definition: L1TcsWord.h:227
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:294
static const int StatusShift
Definition: L1TcsWord.h:243
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void L1TcsWord::setTriggerType ( const cms_uint16_t  triggerTypeValue)
inline

Definition at line 99 of file L1TcsWord.h.

References m_triggerType.

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

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

set the TriggerType value from a 64-bits word

Definition at line 163 of file L1TcsWord.cc.

References m_triggerType, TriggerTypeMask, and TriggerTypeShift.

163  {
165 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:291
static const cms_uint64_t TriggerTypeMask
Definition: L1TcsWord.h:234
static const int TriggerTypeShift
Definition: L1TcsWord.h:242
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 169 of file L1TcsWord.cc.

References m_triggerType, TriggerTypeShift, and TriggerTypeWord.

Referenced by L1GTEvmDigiToRaw::packTCS().

169  {
170  if (iWord == TriggerTypeWord) {
171  word64 = word64 | (static_cast<cms_uint64_t>(m_triggerType) << TriggerTypeShift);
172  }
173 }
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
Definition: L1TcsWord.h:291
static const int TriggerTypeShift
Definition: L1TcsWord.h:242
unsigned long long cms_uint64_t
Definition: typedefs.h:17
static const int TriggerTypeWord
Definition: L1TcsWord.h:226
const cms_uint16_t L1TcsWord::status ( ) const
inline

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

Definition at line 109 of file L1TcsWord.h.

References m_status.

109 { return m_status; }
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
Definition: L1TcsWord.h:294
const cms_uint16_t L1TcsWord::triggerType ( ) const
inline

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

Definition at line 97 of file L1TcsWord.h.

References m_triggerType.

Referenced by L1TGT::analyze().

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

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

Referenced by L1GlobalTriggerEvmRawToDigi::produce().

339  {
340  LogDebug("L1GtTcsWord") << "\nUnpacking TCS block.\n" << std::endl;
341 
342  const cms_uint64_t* payload = reinterpret_cast<cms_uint64_t const*>(tcsPtr);
343 
344  setBoardId(payload[BoardIdWord]);
345  setBxNr(payload[BxNrWord]);
346  setDaqNr(payload[DaqNrWord]);
348  setStatus(payload[StatusWord]);
350 
351  setPartRunNr(payload[PartRunNrWord]);
353 
354  setPartTrigNr(payload[PartTrigNrWord]);
355  setEventNr(payload[EventNrWord]);
356 
357  setOrbitNrFrom(payload[OrbitNrWord]);
358 
359  if (edm::isDebugEnabled()) {
360  for (int iWord = 0; iWord < BlockSize; ++iWord) {
361  LogTrace("L1GtTcsWord") << std::setw(4) << iWord << " " << std::hex << std::setfill('0') << std::setw(16)
362  << payload[iWord] << std::dec << std::setfill(' ') << std::endl;
363  }
364  }
365 }
bool isDebugEnabled()
static const int OrbitNrWord
Definition: L1TcsWord.h:270
void setBxNr(const cms_uint16_t bxNrValue)
Definition: L1TcsWord.h:75
void setAssignedPartitions(const cms_uint32_t assignedPartitionsValue)
Definition: L1TcsWord.h:149
void setOrbitNrFrom(const cms_uint64_t &word64)
set the OrbitNr value from a 64-bits word
Definition: L1TcsWord.cc:248
void setLuminositySegmentNr(const cms_uint16_t luminositySegmentNrValue)
Definition: L1TcsWord.h:123
#define LogTrace(id)
static const int EventNrWord
Definition: L1TcsWord.h:260
void setStatus(const cms_uint16_t statusValue)
Definition: L1TcsWord.h:111
static const int PartRunNrWord
Definition: L1TcsWord.h:248
void setPartRunNr(const cms_uint32_t partRunNrValue)
Definition: L1TcsWord.h:137
static const int LuminositySegmentNrWord
Definition: L1TcsWord.h:228
void setPartTrigNr(const cms_uint32_t partTrigNrValue)
Definition: L1TcsWord.h:163
static const int PartTrigNrWord
Definition: L1TcsWord.h:259
static const int BxNrWord
Definition: L1TcsWord.h:224
static const int StatusWord
Definition: L1TcsWord.h:227
static const int AssignedPartitionsWord
Definition: L1TcsWord.h:249
void setBoardId(const cms_uint16_t boardIdValue)
set BoardId from a BoardId value
Definition: L1TcsWord.h:63
static const int BoardIdWord
Definition: L1TcsWord.h:223
static const int DaqNrWord
Definition: L1TcsWord.h:225
static const int BlockSize
Definition: L1TcsWord.h:218
void setTriggerType(const cms_uint16_t triggerTypeValue)
Definition: L1TcsWord.h:99
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void setEventNr(const cms_uint32_t eventNrValue)
Definition: L1TcsWord.h:175
static const int TriggerTypeWord
Definition: L1TcsWord.h:226
void setDaqNr(const cms_uint16_t daqNrValue)
Definition: L1TcsWord.h:87
#define LogDebug(id)

Member Data Documentation

const cms_uint64_t L1TcsWord::AssignedPartitionsMask = 0x00000000FFFFFFFFULL
staticprivate

Definition at line 252 of file L1TcsWord.h.

Referenced by setAssignedPartitions().

const int L1TcsWord::AssignedPartitionsShift = 0
staticprivate

Definition at line 255 of file L1TcsWord.h.

Referenced by setAssignedPartitions(), and setAssignedPartitionsWord64().

const int L1TcsWord::AssignedPartitionsWord = 1
staticprivate

Definition at line 249 of file L1TcsWord.h.

Referenced by setAssignedPartitionsWord64(), and unpack().

const int L1TcsWord::BlockSize = 5
staticprivate

Definition at line 218 of file L1TcsWord.h.

Referenced by getSize(), and unpack().

const cms_uint64_t L1TcsWord::BoardIdMask = 0xFFFF000000000000ULL
staticprivate

Definition at line 231 of file L1TcsWord.h.

Referenced by setBoardId().

const int L1TcsWord::BoardIdShift = 48
staticprivate

Definition at line 239 of file L1TcsWord.h.

Referenced by setBoardId(), and setBoardIdWord64().

const int L1TcsWord::BoardIdWord = 0
staticprivate

Definition at line 223 of file L1TcsWord.h.

Referenced by setBoardIdWord64(), and unpack().

const cms_uint64_t L1TcsWord::BxNrMask = 0x00000FFF00000000ULL
staticprivate

Definition at line 232 of file L1TcsWord.h.

Referenced by setBxNr().

const int L1TcsWord::BxNrShift = 32
staticprivate

Definition at line 240 of file L1TcsWord.h.

Referenced by setBxNr(), and setBxNrWord64().

const int L1TcsWord::BxNrWord = 0
staticprivate

Definition at line 224 of file L1TcsWord.h.

Referenced by setBxNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::DaqNrMask = 0x000000000F000000ULL
staticprivate

Definition at line 233 of file L1TcsWord.h.

Referenced by setDaqNr().

const int L1TcsWord::DaqNrShift = 24
staticprivate

Definition at line 241 of file L1TcsWord.h.

Referenced by setDaqNr(), and setDaqNrWord64().

const int L1TcsWord::DaqNrWord = 0
staticprivate

Definition at line 225 of file L1TcsWord.h.

Referenced by setDaqNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::EventNrMask = 0x00000000FFFFFFFFULL
staticprivate

Definition at line 263 of file L1TcsWord.h.

Referenced by setEventNr().

const int L1TcsWord::EventNrShift = 0
staticprivate

Definition at line 266 of file L1TcsWord.h.

Referenced by setEventNr(), and setEventNrWord64().

const int L1TcsWord::EventNrWord = 2
staticprivate

Definition at line 260 of file L1TcsWord.h.

Referenced by setEventNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::LuminositySegmentNrMask = 0x000000000000FFFFULL
staticprivate

Definition at line 236 of file L1TcsWord.h.

Referenced by setLuminositySegmentNr().

const int L1TcsWord::LuminositySegmentNrShift = 0
staticprivate

Definition at line 244 of file L1TcsWord.h.

Referenced by setLuminositySegmentNr(), and setLuminositySegmentNrWord64().

const int L1TcsWord::LuminositySegmentNrWord = 0
staticprivate

Definition at line 228 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 307 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 282 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 285 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 288 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 316 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 297 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 321 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 302 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 313 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 294 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 291 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 272 of file L1TcsWord.h.

Referenced by setOrbitNrFrom().

const int L1TcsWord::OrbitNrShift = 0
staticprivate

Definition at line 274 of file L1TcsWord.h.

Referenced by setOrbitNrFrom(), and setOrbitNrWord64().

const int L1TcsWord::OrbitNrWord = 3
staticprivate

Definition at line 270 of file L1TcsWord.h.

Referenced by setOrbitNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::PartRunNrMask = 0xFFFFFFFF00000000ULL
staticprivate

Definition at line 251 of file L1TcsWord.h.

Referenced by setPartRunNr().

const int L1TcsWord::PartRunNrShift = 32
staticprivate

Definition at line 254 of file L1TcsWord.h.

Referenced by setPartRunNr(), and setPartRunNrWord64().

const int L1TcsWord::PartRunNrWord = 1
staticprivate

Definition at line 248 of file L1TcsWord.h.

Referenced by setPartRunNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::PartTrigNrMask = 0xFFFFFFFF00000000ULL
staticprivate

Definition at line 262 of file L1TcsWord.h.

Referenced by setPartTrigNr().

const int L1TcsWord::PartTrigNrShift = 32
staticprivate

Definition at line 265 of file L1TcsWord.h.

Referenced by setPartTrigNr(), and setPartTrigNrWord64().

const int L1TcsWord::PartTrigNrWord = 2
staticprivate

Definition at line 259 of file L1TcsWord.h.

Referenced by setPartTrigNrWord64(), and unpack().

const cms_uint64_t L1TcsWord::StatusMask = 0x00000000000F0000ULL
staticprivate

Definition at line 235 of file L1TcsWord.h.

Referenced by setStatus().

const int L1TcsWord::StatusShift = 16
staticprivate

Definition at line 243 of file L1TcsWord.h.

Referenced by setStatus(), and setStatusWord64().

const int L1TcsWord::StatusWord = 0
staticprivate

Definition at line 227 of file L1TcsWord.h.

Referenced by setStatusWord64(), and unpack().

const cms_uint64_t L1TcsWord::TriggerTypeMask = 0x0000000000F00000ULL
staticprivate

Definition at line 234 of file L1TcsWord.h.

Referenced by setTriggerType().

const int L1TcsWord::TriggerTypeShift = 20
staticprivate

Definition at line 242 of file L1TcsWord.h.

Referenced by setTriggerType(), and setTriggerTypeWord64().

const int L1TcsWord::TriggerTypeWord = 0
staticprivate

Definition at line 226 of file L1TcsWord.h.

Referenced by setTriggerTypeWord64(), and unpack().