#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 |
virtual void | print (std::ostream &myCout) const |
pretty print the content of a L1GtfeExtWord More... | |
void | reset () |
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 |
virtual void | unpack (const unsigned char *gtfePtr) |
virtual | ~L1GtfeExtWord () |
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 35 of file L1GtfeExtWord.cc.
L1GtfeExtWord::L1GtfeExtWord | ( | int | bstSizeBytes | ) |
all members set to zero, m_bst has bstSizeBytes zero elements
Definition at line 43 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 52 of file L1GtfeExtWord.cc.
|
virtual |
const cms_uint16_t L1GtfeExtWord::beamMode | ( | ) | const |
Definition at line 252 of file L1GtfeExtWord.cc.
References BeamModeFirstBlock, BeamModeLastBlock, BstBitSize, and m_bst.
Referenced by HcalDeadCellMonitor::analyze(), SiStripMonitorDigi::analyze(), L1TGT::analyze(), L1TSync::analyze(), L1TSync_Offline::analyze(), L1TBPTX::analyze(), DQMProvInfo::makeGtInfo(), and ConditionDumperInEdm::produce().
const cms_uint16_t L1GtfeExtWord::beamMomentum | ( | ) | const |
Definition at line 325 of file L1GtfeExtWord.cc.
References BeamMomentumFirstBlock, BeamMomentumLastBlock, BstBitSize, and m_bst.
Referenced by L1TGT::analyze(), DQMProvInfo::makeGtInfo(), and ConditionDumperInEdm::produce().
|
inline |
get the full BST block
Definition at line 69 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 401 of file L1GtfeExtWord.cc.
References edm::hlt::Exception, and m_bst.
|
inline |
get the size of the BST block
Definition at line 74 of file L1GtfeExtWord.h.
References m_bst.
Referenced by L1GTEvmDigiToRaw::produce().
const cms_uint16_t L1GtfeExtWord::bstMasterStatus | ( | ) | const |
Definition at line 177 of file L1GtfeExtWord.cc.
References BstBitSize, BstMasterStatusFirstBlock, BstMasterStatusLastBlock, and m_bst.
Referenced by L1TGT::analyze(), and ConditionDumperInEdm::produce().
|
inline |
get/set hex message indicating the source of BST message
Definition at line 112 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 490 of file L1GtfeExtWord.cc.
References L1GtfeWord::getSize(), and m_bst.
Referenced by L1GTEvmDigiToRaw::packGTFE(), L1GlobalTriggerEvmRawToDigi::produce(), L1GTEvmDigiToRaw::produce(), setBstSourceWord64(), and unpack().
const cms_uint64_t L1GtfeExtWord::gpsTime | ( | ) | const |
LHC-BOB-ES-0001 (EDMS 638899)
Definition at line 116 of file L1GtfeExtWord.cc.
References BstBitSize, GpsTimeFirstBlock, GpsTimeLastBlock, and m_bst.
Referenced by L1TGT::analyze().
const cms_uint32_t L1GtfeExtWord::lhcFillNumber | ( | ) | const |
Definition at line 227 of file L1GtfeExtWord.cc.
References BstBitSize, LhcFillNumberFirstBlock, LhcFillNumberLastBlock, and m_bst.
Referenced by L1TGT::analyze(), L1TSync::analyze(), L1TSync_Offline::analyze(), L1TBPTX::analyze(), DQMProvInfo::makeGtInfo(), and ConditionDumperInEdm::produce().
bool L1GtfeExtWord::operator!= | ( | const L1GtfeExtWord & | result | ) | const |
unequal operator
Definition at line 107 of file L1GtfeExtWord.cc.
bool L1GtfeExtWord::operator== | ( | const L1GtfeExtWord & | result | ) | const |
equal operator
Definition at line 76 of file L1GtfeExtWord.cc.
References m_bst, m_bstSource, and query::result.
const cms_uint16_t L1GtfeExtWord::particleTypeBeam1 | ( | ) | const |
Definition at line 276 of file L1GtfeExtWord.cc.
References BstBitSize, m_bst, ParticleTypeBeam1FirstBlock, and ParticleTypeBeam1LastBlock.
const cms_uint16_t L1GtfeExtWord::particleTypeBeam2 | ( | ) | const |
Definition at line 300 of file L1GtfeExtWord.cc.
References BstBitSize, m_bst, ParticleTypeBeam2FirstBlock, and ParticleTypeBeam2LastBlock.
|
virtual |
pretty print the content of a L1GtfeExtWord
Reimplemented from L1GtfeWord.
Definition at line 533 of file L1GtfeExtWord.cc.
References m_bst, m_bstSource, and L1GtfeWord::print().
Referenced by L1GlobalTriggerEvmReadoutRecord::print(), L1GlobalTriggerEvmRawToDigi::produce(), and L1GTEvmDigiToRaw::produce().
|
virtual |
reset the content of a L1GtfeExtWord
Reimplemented from L1GtfeWord.
Definition at line 524 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 517 of file L1GtfeExtWord.cc.
References m_bst.
Referenced by Vispa.Gui.TextDialog.TextDialog::__init__(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::__init__(), Vispa.Main.MainWindow.MainWindow::_loadIni(), L1GlobalTriggerEvmRawToDigi::produce(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
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 434 of file L1GtfeExtWord.cc.
References BstBitSize, BstBlockMask, and m_bst.
|
inline |
Definition at line 116 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 466 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 474 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 448 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 141 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 349 of file L1GtfeExtWord.cc.
References BstBitSize, m_bst, TotalIntensityBeam1FirstBlock, and TotalIntensityBeam1LastBlock.
Referenced by HcalDeadCellMonitor::analyze(), L1TGT::analyze(), DQMProvInfo::makeGtInfo(), and ConditionDumperInEdm::produce().
const cms_uint32_t L1GtfeExtWord::totalIntensityBeam2 | ( | ) | const |
Definition at line 374 of file L1GtfeExtWord.cc.
References BstBitSize, m_bst, TotalIntensityBeam2FirstBlock, and TotalIntensityBeam2LastBlock.
Referenced by HcalDeadCellMonitor::analyze(), L1TGT::analyze(), DQMProvInfo::makeGtInfo(), and ConditionDumperInEdm::produce().
const cms_uint32_t L1GtfeExtWord::turnCountNumber | ( | ) | const |
Definition at line 202 of file L1GtfeExtWord.cc.
References BstBitSize, m_bst, TurnCountNumberFirstBlock, and TurnCountNumberLastBlock.
Referenced by L1TGT::analyze(), and ConditionDumperInEdm::produce().
|
virtual |
unpack GTFE gtfePtr pointer to the beginning of the GTFE block in the raw data
Reimplemented from L1GtfeWord.
Definition at line 591 of file L1GtfeExtWord.cc.
References BstBitSize, BstFirstWord, getSize(), L1GtfeWord::getSize(), edm::isDebugEnabled(), LogDebug, LogTrace, m_bst, setBst(), and L1GtfeWord::unpack().
Referenced by L1GlobalTriggerEvmRawToDigi::produce().
|
staticprivate |
Definition at line 175 of file L1GtfeExtWord.h.
Referenced by beamMode().
|
staticprivate |
Definition at line 176 of file L1GtfeExtWord.h.
Referenced by beamMode().
|
staticprivate |
Definition at line 184 of file L1GtfeExtWord.h.
Referenced by beamMomentum().
|
staticprivate |
Definition at line 185 of file L1GtfeExtWord.h.
Referenced by beamMomentum().
|
staticprivate |
size in bits for a BST block
Definition at line 155 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 159 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 152 of file L1GtfeExtWord.h.
Referenced by setBstWord64(), and unpack().
|
staticprivate |
Definition at line 166 of file L1GtfeExtWord.h.
Referenced by bstMasterStatus().
|
staticprivate |
Definition at line 167 of file L1GtfeExtWord.h.
Referenced by bstMasterStatus().
|
staticprivate |
Definition at line 194 of file L1GtfeExtWord.h.
Referenced by setBstSource().
|
staticprivate |
Definition at line 196 of file L1GtfeExtWord.h.
Referenced by setBstSource(), and setBstSourceWord64().
|
staticprivate |
BST blocks: conversion to defined quantities (LHC-BOB-ES-0001)
Definition at line 163 of file L1GtfeExtWord.h.
Referenced by gpsTime(), and setGpsTime().
|
staticprivate |
Definition at line 164 of file L1GtfeExtWord.h.
Referenced by gpsTime(), and setGpsTime().
|
staticprivate |
Definition at line 172 of file L1GtfeExtWord.h.
Referenced by lhcFillNumber().
|
staticprivate |
Definition at line 173 of file L1GtfeExtWord.h.
Referenced by lhcFillNumber().
|
private |
BST message - each byte is an vector element.
Definition at line 203 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 206 of file L1GtfeExtWord.h.
Referenced by bstSource(), operator==(), print(), setBstSource(), and setBstSourceWord64().
|
staticprivate |
Definition at line 178 of file L1GtfeExtWord.h.
Referenced by particleTypeBeam1().
|
staticprivate |
Definition at line 179 of file L1GtfeExtWord.h.
Referenced by particleTypeBeam1().
|
staticprivate |
Definition at line 181 of file L1GtfeExtWord.h.
Referenced by particleTypeBeam2().
|
staticprivate |
Definition at line 182 of file L1GtfeExtWord.h.
Referenced by particleTypeBeam2().
|
staticprivate |
Definition at line 187 of file L1GtfeExtWord.h.
Referenced by totalIntensityBeam1().
|
staticprivate |
Definition at line 188 of file L1GtfeExtWord.h.
Referenced by totalIntensityBeam1().
|
staticprivate |
Definition at line 190 of file L1GtfeExtWord.h.
Referenced by totalIntensityBeam2().
|
staticprivate |
Definition at line 191 of file L1GtfeExtWord.h.
Referenced by totalIntensityBeam2().
|
staticprivate |
Definition at line 169 of file L1GtfeExtWord.h.
Referenced by turnCountNumber().
|
staticprivate |
Definition at line 170 of file L1GtfeExtWord.h.
Referenced by turnCountNumber().