#include <L1GtfeExtWord.h>
Public Member Functions | |
const cms_uint16_t | beamMode () const |
const cms_uint16_t | beamMomentum () const |
const std::vector< cms_uint16_t > & | bst () const |
get the full BST block More... | |
const cms_uint16_t | bst (int iB) const |
get/set BST block for index iB More... | |
const unsigned int | bstLengthBytes () const |
get the size of the BST block More... | |
const cms_uint16_t | bstMasterStatus () const |
const cms_uint16_t | bstSource () const |
get/set hex message indicating the source of BST message More... | |
const unsigned int | getSize () const |
get the size of the GTFE block in GT EVM record (in multiple of 8 bits) More... | |
const cms_uint64_t | gpsTime () const |
LHC-BOB-ES-0001 (EDMS 638899) More... | |
L1GtfeExtWord () | |
constructors More... | |
L1GtfeExtWord (int bstSizeBytes) | |
all members set to zero, m_bst has bstSizeBytes zero elements More... | |
L1GtfeExtWord (cms_uint16_t boardIdValue, cms_uint16_t recordLengthValue, cms_uint16_t recordLength1Value, cms_uint16_t bxNrValue, cms_uint32_t setupVersionValue, cms_uint16_t activeBoardsValue, cms_uint16_t altNrBxBoardValue, cms_uint32_t totalTriggerNrValue, const std::vector< cms_uint16_t > &bstValue, cms_uint16_t bstSourceValue) | |
constructor from unpacked values, m_bst size taken from bstValue More... | |
const cms_uint32_t | lhcFillNumber () const |
bool | operator!= (const L1GtfeExtWord &) const |
unequal operator More... | |
bool | operator== (const L1GtfeExtWord &) const |
equal operator More... | |
const cms_uint16_t | particleTypeBeam1 () const |
const cms_uint16_t | particleTypeBeam2 () const |
void | print (std::ostream &myCout) const override |
pretty print the content of a L1GtfeExtWord More... | |
void | reset () override |
reset the content of a L1GtfeExtWord More... | |
void | resize (int bstSizeBytes) |
resize the BST vector to get the right size of the block More... | |
void | setBst (const cms_uint16_t bstVal, const int iB) |
void | setBst (const cms_uint64_t &word64, const int iB) |
set the BST block for index iB from a 64-bits word More... | |
void | setBstSource (const cms_uint16_t bstSourceVal) |
void | setBstSource (const cms_uint64_t &word64) |
set the hex message indicating the source of BST message from a 64-bits word More... | |
void | setBstSourceWord64 (cms_uint64_t &word64, const int iWord) |
void | setBstWord64 (cms_uint64_t &word64, int iB, const int iWord) |
void | setGpsTime (const cms_uint64_t) |
const cms_uint32_t | totalIntensityBeam1 () const |
const cms_uint32_t | totalIntensityBeam2 () const |
const cms_uint32_t | turnCountNumber () const |
void | unpack (const unsigned char *gtfePtr) override |
~L1GtfeExtWord () override | |
destructor More... | |
Public Member Functions inherited from L1GtfeWord | |
const cms_uint16_t | activeBoards () const |
get/set boards contributing to EVM respectively DAQ record More... | |
const cms_uint16_t | altNrBxBoard () const |
get/set alternative for number of BX per board More... | |
const cms_uint16_t | boardId () const |
get/set board ID More... | |
const int | bstFlag () const |
get / set BST flag: 0 or 1 - via setup version (no private member) More... | |
const cms_uint16_t | bxNr () const |
get/set bunch cross number as counted in the GTFE board More... | |
const unsigned int | getSize () const |
get the size of the GTFE block in GT DAQ record (in multiple of 8 bits) More... | |
L1GtfeWord () | |
constructors More... | |
L1GtfeWord (cms_uint16_t boardIdValue, cms_uint16_t recordLength1Value, cms_uint16_t recordLengthValue, cms_uint16_t bxNrValue, cms_uint32_t setupVersionValue, cms_uint16_t activeBoardsValue, cms_uint16_t altNrBxBoardValue, cms_uint32_t totalTriggerNrValue) | |
constructor from unpacked values; More... | |
bool | operator!= (const L1GtfeWord &) const |
unequal operator More... | |
bool | operator== (const L1GtfeWord &) const |
equal operator More... | |
const cms_uint16_t | recordLength () const |
get/set record length for alternative 0 More... | |
const cms_uint16_t | recordLength1 () const |
get/set record length for alternative 1 More... | |
void | setActiveBoards (cms_uint16_t activeBoardsValue) |
void | setActiveBoards (const cms_uint64_t &word64) |
void | setActiveBoardsWord64 (cms_uint64_t &word64, int iWord) |
void | setActiveBoardsWord64 (cms_uint64_t &word64, int iWord, cms_int16_t activeBoardsValue) |
void | setAltNrBxBoard (cms_uint16_t altNrBxBoardValue) |
void | setAltNrBxBoard (const cms_uint64_t &word64) |
void | setAltNrBxBoardWord64 (cms_uint64_t &word64, int iWord) |
void | setAltNrBxBoardWord64 (cms_uint64_t &word64, int iWord, cms_int16_t altNrBxBoardValue) |
void | setBoardId (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 | setBstFlag (const int) |
void | setBxNr (cms_uint16_t bxNrValue) |
void | setBxNr (const cms_uint64_t &word64) |
void | setBxNrWord64 (cms_uint64_t &word64, int iWord) |
void | setRecordLength (cms_uint16_t recordLengthValue) |
void | setRecordLength (const cms_uint64_t &word64) |
void | setRecordLength1 (cms_uint16_t recordLengthValue) |
void | setRecordLength1 (const cms_uint64_t &word64) |
void | setRecordLength1Word64 (cms_uint64_t &word64, int iWord) |
void | setRecordLengthWord64 (cms_uint64_t &word64, int iWord) |
void | setSetupVersion (cms_uint32_t setupVersionValue) |
void | setSetupVersion (const cms_uint64_t &word64) |
void | setSetupVersionWord64 (cms_uint64_t &word64, int iWord) |
void | setTotalTriggerNr (cms_uint32_t totalTriggerNrValue) |
void | setTotalTriggerNr (const cms_uint64_t &word64) |
void | setTotalTriggerNrWord64 (cms_uint64_t &word64, int iWord) |
const cms_uint32_t | setupVersion () const |
get/set setup version More... | |
const cms_uint32_t | totalTriggerNr () const |
get/set total number of L1A sent since start of run More... | |
virtual | ~L1GtfeWord () |
destructor More... | |
Private Attributes | |
std::vector< cms_uint16_t > | m_bst |
BST message - each byte is an vector element. More... | |
cms_uint16_t | m_bstSource |
hex message indicating the source of BST message (beam or simulated) More... | |
Static Private Attributes | |
static const int | BeamModeFirstBlock = 26 |
static const int | BeamModeLastBlock = 27 |
static const int | BeamMomentumFirstBlock = 30 |
static const int | BeamMomentumLastBlock = 31 |
static const int | BstBitSize = 8 |
size in bits for a BST block More... | |
static const cms_uint64_t | BstBlockMask = 0xFFULL |
static const int | BstFirstWord = 2 |
block description in the raw GT record More... | |
static const int | BstMasterStatusFirstBlock = 17 |
static const int | BstMasterStatusLastBlock = 17 |
static const cms_uint64_t | BstSourceMask = 0xFFFF000000000000ULL |
static const int | BstSourceShift = 48 |
static const int | GpsTimeFirstBlock = 0 |
BST blocks: conversion to defined quantities (LHC-BOB-ES-0001) More... | |
static const int | GpsTimeLastBlock = 7 |
static const int | LhcFillNumberFirstBlock = 22 |
static const int | LhcFillNumberLastBlock = 25 |
static const int | ParticleTypeBeam1FirstBlock = 28 |
static const int | ParticleTypeBeam1LastBlock = 28 |
static const int | ParticleTypeBeam2FirstBlock = 29 |
static const int | ParticleTypeBeam2LastBlock = 29 |
static const int | TotalIntensityBeam1FirstBlock = 32 |
static const int | TotalIntensityBeam1LastBlock = 35 |
static const int | TotalIntensityBeam2FirstBlock = 36 |
static const int | TotalIntensityBeam2LastBlock = 39 |
static const int | TurnCountNumberFirstBlock = 18 |
static const int | TurnCountNumberLastBlock = 21 |
Description: L1 Global Trigger - extended GTFE block in the readout record.
Implementation: <TODO: enter implementation details>
Description: L1 Global Trigger - GTFE words in the readout record.
Implementation: <TODO: enter implementation details>
Definition at line 31 of file L1GtfeExtWord.h.
L1GtfeExtWord::L1GtfeExtWord | ( | ) |
constructors
Definition at line 34 of file L1GtfeExtWord.cc.
L1GtfeExtWord::L1GtfeExtWord | ( | int | bstSizeBytes | ) |
all members set to zero, m_bst has bstSizeBytes zero elements
Definition at line 39 of file L1GtfeExtWord.cc.
References m_bst.
L1GtfeExtWord::L1GtfeExtWord | ( | cms_uint16_t | boardIdValue, |
cms_uint16_t | recordLengthValue, | ||
cms_uint16_t | recordLength1Value, | ||
cms_uint16_t | bxNrValue, | ||
cms_uint32_t | setupVersionValue, | ||
cms_uint16_t | activeBoardsValue, | ||
cms_uint16_t | altNrBxBoardValue, | ||
cms_uint32_t | totalTriggerNrValue, | ||
const std::vector< cms_uint16_t > & | bstValue, | ||
cms_uint16_t | bstSourceValue | ||
) |
constructor from unpacked values, m_bst size taken from bstValue
Definition at line 42 of file L1GtfeExtWord.cc.
|
override |
const cms_uint16_t L1GtfeExtWord::beamMode | ( | ) | const |
Definition at line 215 of file L1GtfeExtWord.cc.
References BeamModeFirstBlock, BeamModeLastBlock, BstBitSize, and m_bst.
Referenced by SiStripMonitorDigi::analyze(), L1TGT::analyze(), L1TSync::analyze(), L1TSync_Offline::analyze(), L1TBPTX::analyze(), ConditionDumperInEdm::produce(), and L1Analysis::L1AnalysisGT::SetEvm().
const cms_uint16_t L1GtfeExtWord::beamMomentum | ( | ) | const |
Definition at line 275 of file L1GtfeExtWord.cc.
References BeamMomentumFirstBlock, BeamMomentumLastBlock, BstBitSize, and m_bst.
Referenced by L1TGT::analyze(), ConditionDumperInEdm::produce(), and L1Analysis::L1AnalysisGT::SetEvm().
|
inline |
get the full BST block
Definition at line 62 of file L1GtfeExtWord.h.
References m_bst.
const uint16_t L1GtfeExtWord::bst | ( | int | iB | ) | const |
get/set BST block for index iB
Definition at line 336 of file L1GtfeExtWord.cc.
References Exception, and m_bst.
|
inline |
get the size of the BST block
Definition at line 65 of file L1GtfeExtWord.h.
References m_bst.
Referenced by L1GTEvmDigiToRaw::produce().
const cms_uint16_t L1GtfeExtWord::bstMasterStatus | ( | ) | const |
Definition at line 155 of file L1GtfeExtWord.cc.
References BstBitSize, BstMasterStatusFirstBlock, BstMasterStatusLastBlock, and m_bst.
Referenced by L1TGT::analyze(), ConditionDumperInEdm::produce(), and L1Analysis::L1AnalysisGT::SetEvm().
|
inline |
get/set hex message indicating the source of BST message
Definition at line 96 of file L1GtfeExtWord.h.
References m_bstSource.
const unsigned int L1GtfeExtWord::getSize | ( | ) | const |
get the size of the GTFE block in GT EVM record (in multiple of 8 bits)
Definition at line 402 of file L1GtfeExtWord.cc.
References L1GtfeWord::getSize(), and m_bst.
Referenced by L1GTEvmDigiToRaw::packGTFE(), L1GTEvmDigiToRaw::produce(), L1GlobalTriggerEvmRawToDigi::produce(), setBstSourceWord64(), and unpack().
const cms_uint64_t L1GtfeExtWord::gpsTime | ( | ) | const |
LHC-BOB-ES-0001 (EDMS 638899)
Definition at line 104 of file L1GtfeExtWord.cc.
References BstBitSize, GpsTimeFirstBlock, GpsTimeLastBlock, and m_bst.
Referenced by L1TGT::analyze(), and L1Analysis::L1AnalysisGT::SetEvm().
const cms_uint32_t L1GtfeExtWord::lhcFillNumber | ( | ) | const |
Definition at line 195 of file L1GtfeExtWord.cc.
References BstBitSize, LhcFillNumberFirstBlock, LhcFillNumberLastBlock, and m_bst.
Referenced by L1TGT::analyze(), L1TSync::analyze(), L1TSync_Offline::analyze(), L1TBPTX::analyze(), ConditionDumperInEdm::produce(), and L1Analysis::L1AnalysisGT::SetEvm().
bool L1GtfeExtWord::operator!= | ( | const L1GtfeExtWord & | result | ) | const |
unequal operator
Definition at line 100 of file L1GtfeExtWord.cc.
bool L1GtfeExtWord::operator== | ( | const L1GtfeExtWord & | result | ) | const |
equal operator
Definition at line 73 of file L1GtfeExtWord.cc.
References m_bst, m_bstSource, and mps_fire::result.
const cms_uint16_t L1GtfeExtWord::particleTypeBeam1 | ( | ) | const |
Definition at line 235 of file L1GtfeExtWord.cc.
References BstBitSize, m_bst, ParticleTypeBeam1FirstBlock, and ParticleTypeBeam1LastBlock.
Referenced by L1Analysis::L1AnalysisGT::SetEvm().
const cms_uint16_t L1GtfeExtWord::particleTypeBeam2 | ( | ) | const |
Definition at line 255 of file L1GtfeExtWord.cc.
References BstBitSize, m_bst, ParticleTypeBeam2FirstBlock, and ParticleTypeBeam2LastBlock.
Referenced by L1Analysis::L1AnalysisGT::SetEvm().
|
overridevirtual |
pretty print the content of a L1GtfeExtWord
Reimplemented from L1GtfeWord.
Definition at line 434 of file L1GtfeExtWord.cc.
References TauDecayModes::dec, m_bst, m_bstSource, and L1GtfeWord::print().
Referenced by L1GlobalTriggerEvmReadoutRecord::print(), L1GTEvmDigiToRaw::produce(), and L1GlobalTriggerEvmRawToDigi::produce().
|
overridevirtual |
reset the content of a L1GtfeExtWord
Reimplemented from L1GtfeWord.
Definition at line 428 of file L1GtfeExtWord.cc.
References m_bst, and L1GtfeWord::reset().
Referenced by L1GlobalTriggerEvmRawToDigi::produce().
void L1GtfeExtWord::resize | ( | int | bstSizeBytes | ) |
resize the BST vector to get the right size of the block
Definition at line 425 of file L1GtfeExtWord.cc.
References m_bst.
Referenced by L1GlobalTriggerEvmRawToDigi::produce().
void L1GtfeExtWord::setBst | ( | const cms_uint16_t | bstVal, |
const int | iB | ||
) |
Referenced by unpack().
void L1GtfeExtWord::setBst | ( | const cms_uint64_t & | word64, |
const int | iB | ||
) |
set the BST block for index iB from a 64-bits word
Definition at line 361 of file L1GtfeExtWord.cc.
References BstBitSize, BstBlockMask, and m_bst.
|
inline |
Definition at line 98 of file L1GtfeExtWord.h.
References m_bstSource.
Referenced by L1GlobalTrigger::produce().
void L1GtfeExtWord::setBstSource | ( | const cms_uint64_t & | word64 | ) |
set the hex message indicating the source of BST message from a 64-bits word
Definition at line 384 of file L1GtfeExtWord.cc.
References BstSourceMask, BstSourceShift, and m_bstSource.
void L1GtfeExtWord::setBstSourceWord64 | ( | cms_uint64_t & | word64, |
const int | iWord | ||
) |
set hex message indicating the source of BST message in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 390 of file L1GtfeExtWord.cc.
References BstSourceShift, getSize(), and m_bstSource.
void L1GtfeExtWord::setBstWord64 | ( | cms_uint64_t & | word64, |
int | iB, | ||
const int | iWord | ||
) |
set the BST block in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 372 of file L1GtfeExtWord.cc.
References BstBitSize, BstFirstWord, and m_bst.
Referenced by L1GTEvmDigiToRaw::packGTFE().
void L1GtfeExtWord::setGpsTime | ( | const cms_uint64_t | gpsTimeValue | ) |
Definition at line 124 of file L1GtfeExtWord.cc.
References BstBitSize, BstBlockMask, GpsTimeFirstBlock, GpsTimeLastBlock, and m_bst.
Referenced by L1GlobalTrigger::produce().
const cms_uint32_t L1GtfeExtWord::totalIntensityBeam1 | ( | ) | const |
Definition at line 295 of file L1GtfeExtWord.cc.
References BstBitSize, m_bst, TotalIntensityBeam1FirstBlock, and TotalIntensityBeam1LastBlock.
Referenced by L1TGT::analyze(), ConditionDumperInEdm::produce(), and L1Analysis::L1AnalysisGT::SetEvm().
const cms_uint32_t L1GtfeExtWord::totalIntensityBeam2 | ( | ) | const |
Definition at line 315 of file L1GtfeExtWord.cc.
References BstBitSize, m_bst, TotalIntensityBeam2FirstBlock, and TotalIntensityBeam2LastBlock.
Referenced by L1TGT::analyze(), ConditionDumperInEdm::produce(), and L1Analysis::L1AnalysisGT::SetEvm().
const cms_uint32_t L1GtfeExtWord::turnCountNumber | ( | ) | const |
Definition at line 175 of file L1GtfeExtWord.cc.
References BstBitSize, m_bst, TurnCountNumberFirstBlock, and TurnCountNumberLastBlock.
Referenced by L1TGT::analyze(), ConditionDumperInEdm::produce(), and L1Analysis::L1AnalysisGT::SetEvm().
|
overridevirtual |
unpack GTFE gtfePtr pointer to the beginning of the GTFE block in the raw data
Reimplemented from L1GtfeWord.
Definition at line 481 of file L1GtfeExtWord.cc.
References BstBitSize, BstFirstWord, runTheMatrix::const, TauDecayModes::dec, getSize(), L1GtfeWord::getSize(), edm::isDebugEnabled(), LogDebug, LogTrace, m_bst, jetCorrFactors_cfi::payload, setBst(), and L1GtfeWord::unpack().
Referenced by L1GlobalTriggerEvmRawToDigi::produce().
|
staticprivate |
Definition at line 152 of file L1GtfeExtWord.h.
Referenced by beamMode().
|
staticprivate |
Definition at line 153 of file L1GtfeExtWord.h.
Referenced by beamMode().
|
staticprivate |
Definition at line 161 of file L1GtfeExtWord.h.
Referenced by beamMomentum().
|
staticprivate |
Definition at line 162 of file L1GtfeExtWord.h.
Referenced by beamMomentum().
|
staticprivate |
size in bits for a BST block
Definition at line 132 of file L1GtfeExtWord.h.
Referenced by beamMode(), beamMomentum(), bstMasterStatus(), gpsTime(), lhcFillNumber(), particleTypeBeam1(), particleTypeBeam2(), setBst(), setBstWord64(), setGpsTime(), totalIntensityBeam1(), totalIntensityBeam2(), turnCountNumber(), and unpack().
|
staticprivate |
BST block mask, correlated with the number of bits of a block 8 bit = 0xFF
Definition at line 136 of file L1GtfeExtWord.h.
Referenced by setBst(), and setGpsTime().
|
staticprivate |
block description in the raw GT record
index of first word for BST blocks
Definition at line 129 of file L1GtfeExtWord.h.
Referenced by setBstWord64(), and unpack().
|
staticprivate |
Definition at line 143 of file L1GtfeExtWord.h.
Referenced by bstMasterStatus().
|
staticprivate |
Definition at line 144 of file L1GtfeExtWord.h.
Referenced by bstMasterStatus().
|
staticprivate |
Definition at line 171 of file L1GtfeExtWord.h.
Referenced by setBstSource().
|
staticprivate |
Definition at line 173 of file L1GtfeExtWord.h.
Referenced by setBstSource(), and setBstSourceWord64().
|
staticprivate |
BST blocks: conversion to defined quantities (LHC-BOB-ES-0001)
Definition at line 140 of file L1GtfeExtWord.h.
Referenced by gpsTime(), and setGpsTime().
|
staticprivate |
Definition at line 141 of file L1GtfeExtWord.h.
Referenced by gpsTime(), and setGpsTime().
|
staticprivate |
Definition at line 149 of file L1GtfeExtWord.h.
Referenced by lhcFillNumber().
|
staticprivate |
Definition at line 150 of file L1GtfeExtWord.h.
Referenced by lhcFillNumber().
|
private |
BST message - each byte is an vector element.
Definition at line 177 of file L1GtfeExtWord.h.
Referenced by beamMode(), beamMomentum(), bst(), bstLengthBytes(), bstMasterStatus(), getSize(), gpsTime(), L1GtfeExtWord(), lhcFillNumber(), operator==(), particleTypeBeam1(), particleTypeBeam2(), print(), reset(), resize(), setBst(), setBstWord64(), setGpsTime(), totalIntensityBeam1(), totalIntensityBeam2(), turnCountNumber(), and unpack().
|
private |
hex message indicating the source of BST message (beam or simulated)
Definition at line 180 of file L1GtfeExtWord.h.
Referenced by bstSource(), operator==(), print(), setBstSource(), and setBstSourceWord64().
|
staticprivate |
Definition at line 155 of file L1GtfeExtWord.h.
Referenced by particleTypeBeam1().
|
staticprivate |
Definition at line 156 of file L1GtfeExtWord.h.
Referenced by particleTypeBeam1().
|
staticprivate |
Definition at line 158 of file L1GtfeExtWord.h.
Referenced by particleTypeBeam2().
|
staticprivate |
Definition at line 159 of file L1GtfeExtWord.h.
Referenced by particleTypeBeam2().
|
staticprivate |
Definition at line 164 of file L1GtfeExtWord.h.
Referenced by totalIntensityBeam1().
|
staticprivate |
Definition at line 165 of file L1GtfeExtWord.h.
Referenced by totalIntensityBeam1().
|
staticprivate |
Definition at line 167 of file L1GtfeExtWord.h.
Referenced by totalIntensityBeam2().
|
staticprivate |
Definition at line 168 of file L1GtfeExtWord.h.
Referenced by totalIntensityBeam2().
|
staticprivate |
Definition at line 146 of file L1GtfeExtWord.h.
Referenced by turnCountNumber().
|
staticprivate |
Definition at line 147 of file L1GtfeExtWord.h.
Referenced by turnCountNumber().