CMS 3D CMS Logo

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

#include <L1GtfeExtWord.h>

Inheritance diagram for L1GtfeExtWord:
L1GtfeWord

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_tm_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
 

Detailed Description

Description: L1 Global Trigger - extended GTFE block in the readout record.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

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

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 31 of file L1GtfeExtWord.h.

Constructor & Destructor Documentation

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.

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.

L1GtfeExtWord::~L1GtfeExtWord ( )
virtual

destructor

Definition at line 69 of file L1GtfeExtWord.cc.

Member Function Documentation

const cms_uint16_t L1GtfeExtWord::beamMode ( ) const

Definition at line 252 of file L1GtfeExtWord.cc.

Referenced by ConditionDumperInEdm::produce().

const cms_uint16_t L1GtfeExtWord::beamMomentum ( ) const

Definition at line 325 of file L1GtfeExtWord.cc.

Referenced by ConditionDumperInEdm::produce().

const std::vector<cms_uint16_t>& L1GtfeExtWord::bst ( ) const
inline

get the full BST block

Definition at line 69 of file L1GtfeExtWord.h.

References m_bst.

69  {
70  return m_bst;
71  }
std::vector< cms_uint16_t > m_bst
BST message - each byte is an vector element.
const uint16_t L1GtfeExtWord::bst ( int  iB) const

get/set BST block for index iB

Definition at line 401 of file L1GtfeExtWord.cc.

const unsigned int L1GtfeExtWord::bstLengthBytes ( ) const
inline

get the size of the BST block

Definition at line 74 of file L1GtfeExtWord.h.

References m_bst.

74  {
75  return m_bst.size();
76  }
std::vector< cms_uint16_t > m_bst
BST message - each byte is an vector element.
const cms_uint16_t L1GtfeExtWord::bstMasterStatus ( ) const

Definition at line 177 of file L1GtfeExtWord.cc.

Referenced by ConditionDumperInEdm::produce().

const cms_uint16_t L1GtfeExtWord::bstSource ( ) const
inline

get/set hex message indicating the source of BST message

Definition at line 112 of file L1GtfeExtWord.h.

References m_bstSource.

112  {
113  return m_bstSource;
114  }
cms_uint16_t m_bstSource
hex message indicating the source of BST message (beam or simulated)
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.

const cms_uint64_t L1GtfeExtWord::gpsTime ( ) const

LHC-BOB-ES-0001 (EDMS 638899)

Definition at line 116 of file L1GtfeExtWord.cc.

const cms_uint32_t L1GtfeExtWord::lhcFillNumber ( ) const

Definition at line 227 of file L1GtfeExtWord.cc.

Referenced by 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.

const cms_uint16_t L1GtfeExtWord::particleTypeBeam1 ( ) const

Definition at line 276 of file L1GtfeExtWord.cc.

const cms_uint16_t L1GtfeExtWord::particleTypeBeam2 ( ) const

Definition at line 300 of file L1GtfeExtWord.cc.

void L1GtfeExtWord::print ( std::ostream &  myCout) const
virtual

pretty print the content of a L1GtfeExtWord

Reimplemented from L1GtfeWord.

Definition at line 533 of file L1GtfeExtWord.cc.

void L1GtfeExtWord::reset ( void  )
virtual

reset the content of a L1GtfeExtWord

Reimplemented from L1GtfeWord.

Definition at line 524 of file L1GtfeExtWord.cc.

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.

Referenced by Vispa.Gui.TextDialog.TextDialog::__init__().

void L1GtfeExtWord::setBst ( const cms_uint16_t  bstVal,
const int  iB 
)
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.

void L1GtfeExtWord::setBstSource ( const cms_uint16_t  bstSourceVal)
inline

Definition at line 116 of file L1GtfeExtWord.h.

References m_bstSource.

116  {
117  m_bstSource = bstSourceVal;
118  }
cms_uint16_t m_bstSource
hex message indicating the source of BST message (beam or simulated)
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.

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.

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.

void L1GtfeExtWord::setGpsTime ( const cms_uint64_t  gpsTimeValue)

Definition at line 141 of file L1GtfeExtWord.cc.

const cms_uint32_t L1GtfeExtWord::totalIntensityBeam1 ( ) const

Definition at line 349 of file L1GtfeExtWord.cc.

Referenced by ConditionDumperInEdm::produce().

const cms_uint32_t L1GtfeExtWord::totalIntensityBeam2 ( ) const

Definition at line 374 of file L1GtfeExtWord.cc.

Referenced by ConditionDumperInEdm::produce().

const cms_uint32_t L1GtfeExtWord::turnCountNumber ( ) const

Definition at line 202 of file L1GtfeExtWord.cc.

Referenced by ConditionDumperInEdm::produce().

void L1GtfeExtWord::unpack ( const unsigned char *  gtfePtr)
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.

Member Data Documentation

const int L1GtfeExtWord::BeamModeFirstBlock = 26
staticprivate

Definition at line 175 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::BeamModeLastBlock = 27
staticprivate

Definition at line 176 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::BeamMomentumFirstBlock = 30
staticprivate

Definition at line 184 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::BeamMomentumLastBlock = 31
staticprivate

Definition at line 185 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::BstBitSize = 8
staticprivate

size in bits for a BST block

Definition at line 155 of file L1GtfeExtWord.h.

const cms_uint64_t L1GtfeExtWord::BstBlockMask = 0xFFULL
staticprivate

BST block mask, correlated with the number of bits of a block 8 bit = 0xFF

Definition at line 159 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::BstFirstWord = 2
staticprivate

block description in the raw GT record

index of first word for BST blocks

Definition at line 152 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::BstMasterStatusFirstBlock = 17
staticprivate

Definition at line 166 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::BstMasterStatusLastBlock = 17
staticprivate

Definition at line 167 of file L1GtfeExtWord.h.

const cms_uint64_t L1GtfeExtWord::BstSourceMask = 0xFFFF000000000000ULL
staticprivate

Definition at line 194 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::BstSourceShift = 48
staticprivate

Definition at line 196 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::GpsTimeFirstBlock = 0
staticprivate

BST blocks: conversion to defined quantities (LHC-BOB-ES-0001)

Definition at line 163 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::GpsTimeLastBlock = 7
staticprivate

Definition at line 164 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::LhcFillNumberFirstBlock = 22
staticprivate

Definition at line 172 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::LhcFillNumberLastBlock = 25
staticprivate

Definition at line 173 of file L1GtfeExtWord.h.

std::vector<cms_uint16_t> L1GtfeExtWord::m_bst
private

BST message - each byte is an vector element.

Definition at line 203 of file L1GtfeExtWord.h.

Referenced by bst(), and bstLengthBytes().

cms_uint16_t L1GtfeExtWord::m_bstSource
private

hex message indicating the source of BST message (beam or simulated)

Definition at line 206 of file L1GtfeExtWord.h.

Referenced by bstSource(), and setBstSource().

const int L1GtfeExtWord::ParticleTypeBeam1FirstBlock = 28
staticprivate

Definition at line 178 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::ParticleTypeBeam1LastBlock = 28
staticprivate

Definition at line 179 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::ParticleTypeBeam2FirstBlock = 29
staticprivate

Definition at line 181 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::ParticleTypeBeam2LastBlock = 29
staticprivate

Definition at line 182 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::TotalIntensityBeam1FirstBlock = 32
staticprivate

Definition at line 187 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::TotalIntensityBeam1LastBlock = 35
staticprivate

Definition at line 188 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::TotalIntensityBeam2FirstBlock = 36
staticprivate

Definition at line 190 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::TotalIntensityBeam2LastBlock = 39
staticprivate

Definition at line 191 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::TurnCountNumberFirstBlock = 18
staticprivate

Definition at line 169 of file L1GtfeExtWord.h.

const int L1GtfeExtWord::TurnCountNumberLastBlock = 21
staticprivate

Definition at line 170 of file L1GtfeExtWord.h.