CMS 3D CMS Logo

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

#include <L1GtPsbWord.h>

Public Member Functions

const cms_uint16_t aData (int iA) const
 get/set A_DATA_CH_IA More...
 
const cms_uint16_t bData (int iB) const
 get/set B_DATA_CH_IB More...
 
const cms_uint16_t boardId () const
 get/set board ID More...
 
const int bxInEvent () const
 get/set bunch cross in the GT event record More...
 
const cms_uint16_t bxNr () const
 get/set bunch cross number of the actual bx More...
 
const cms_uint32_t eventNr () const
 get/set event number since last L1 reset generated in PSB More...
 
const unsigned int getSize () const
 get the size of the PSB block in GT DAQ record (in multiple of 8 bits) More...
 
 L1GtPsbWord ()
 constructors More...
 
 L1GtPsbWord (cms_uint16_t boardIdValue, int bxInEventValue, cms_uint16_t bxNrValue, cms_uint32_t eventNrValue, cms_uint16_t aDataValue[NumberAData], cms_uint16_t bDataValue[NumberBData], cms_uint16_t localBxNrValue)
 constructor from unpacked values; More...
 
const cms_uint16_t localBxNr () const
 get/set local bunch cross number of the actual bx More...
 
bool operator!= (const L1GtPsbWord &) const
 unequal operator More...
 
bool operator== (const L1GtPsbWord &) const
 equal operator More...
 
void print (std::ostream &myCout) const
 pretty print More...
 
void reset ()
 reset the content of a L1GtPsbWord More...
 
void setAData (cms_uint16_t aDataVal, int iA)
 
void setAData (const cms_uint64_t &word64, int iWord)
 
void setADataWord64 (cms_uint64_t &word64, int iWord)
 
void setBData (cms_uint16_t bDataVal, int iB)
 
void setBData (const cms_uint64_t &word64, int iWord)
 
void setBDataWord64 (cms_uint64_t &word64, int iWord)
 
void setBoardId (cms_uint16_t boardIdValue)
 
void setBoardId (const cms_uint64_t &word64, int iWord)
 
void setBoardIdWord64 (cms_uint64_t &word64, int iWord)
 
void setBxInEvent (int bxInEventValue)
 
void setBxInEvent (const cms_uint64_t &word64, int iWord)
 
void setBxInEventWord64 (cms_uint64_t &word64, int iWord)
 
void setBxNr (cms_uint16_t bxNrValue)
 
void setBxNr (const cms_uint64_t &word64, int iWord)
 
void setBxNrWord64 (cms_uint64_t &word64, int iWord)
 
void setEventNr (cms_uint32_t eventNrValue)
 
void setEventNr (const cms_uint64_t &word64, int iWord)
 
void setEventNrWord64 (cms_uint64_t &word64, int iWord)
 
void setLocalBxNr (cms_uint16_t localBxNrValue)
 
void setLocalBxNr (const cms_uint64_t &word64, int iWord)
 
void setLocalBxNrWord64 (cms_uint64_t &word64, int iWord)
 
virtual ~L1GtPsbWord ()
 destructor More...
 

Static Public Attributes

static const int NumberAData = 8
 
static const int NumberBData = 8
 

Private Attributes

cms_uint16_t m_aData [NumberAData]
 
cms_uint16_t m_bData [NumberBData]
 
cms_uint16_t m_boardId
 
int m_bxInEvent
 
cms_uint16_t m_bxNr
 
cms_uint32_t m_eventNr
 
cms_uint16_t m_localBxNr
 

Static Private Attributes

static const int ADataCH0Word = 1
 
static const int ADataCH4Word = 2
 
static const int BDataCH0Word = 3
 
static const int BDataCH4Word = 4
 
static const int BlockSize = 6
 
static const cms_uint64_t BoardIdMask = 0xFFFF000000000000ULL
 
static const int BoardIdShift = 48
 
static const int BoardIdWord = 0
 
static const cms_uint64_t BxInEventMask = 0x0000F00000000000ULL
 
static const int BxInEventShift = 44
 
static const int BxInEventWord = 0
 
static const cms_uint64_t BxNrMask = 0x00000FFF00000000ULL
 
static const int BxNrShift = 32
 
static const int BxNrWord = 0
 
static const cms_uint64_t DataCHMask = 0x000000000000FFFFULL
 
static const int DataCHSize = 16
 
static const cms_uint64_t EventNrMask = 0x0000000000FFFFFFULL
 
static const int EventNrShift = 0
 
static const int EventNrWord = 0
 
static const cms_uint64_t LocalBxNrMask = 0x0000000000000FFFULL
 
static const int LocalBxNrShift = 0
 
static const int LocalBxNrWord = 5
 

Detailed Description

Description: PSB block in the L1 GT readout record.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 29 of file L1GtPsbWord.h.

Constructor & Destructor Documentation

L1GtPsbWord::L1GtPsbWord ( )

constructors

Definition at line 28 of file L1GtPsbWord.cc.

L1GtPsbWord::L1GtPsbWord ( cms_uint16_t  boardIdValue,
int  bxInEventValue,
cms_uint16_t  bxNrValue,
cms_uint32_t  eventNrValue,
cms_uint16_t  aDataValue[NumberAData],
cms_uint16_t  bDataValue[NumberBData],
cms_uint16_t  localBxNrValue 
)

constructor from unpacked values;

Definition at line 49 of file L1GtPsbWord.cc.

L1GtPsbWord::~L1GtPsbWord ( )
virtual

destructor

Definition at line 78 of file L1GtPsbWord.cc.

Member Function Documentation

const cms_uint16_t L1GtPsbWord::aData ( int  iA) const

get/set A_DATA_CH_IA

Definition at line 228 of file L1GtPsbWord.cc.

const cms_uint16_t L1GtPsbWord::bData ( int  iB) const

get/set B_DATA_CH_IB

Definition at line 323 of file L1GtPsbWord.cc.

const cms_uint16_t L1GtPsbWord::boardId ( ) const
inline

get/set board ID

Definition at line 66 of file L1GtPsbWord.h.

const int L1GtPsbWord::bxInEvent ( ) const
inline

get/set bunch cross in the GT event record

Definition at line 87 of file L1GtPsbWord.h.

const cms_uint16_t L1GtPsbWord::bxNr ( ) const
inline

get/set bunch cross number of the actual bx

Definition at line 108 of file L1GtPsbWord.h.

const cms_uint32_t L1GtPsbWord::eventNr ( ) const
inline

get/set event number since last L1 reset generated in PSB

Definition at line 129 of file L1GtPsbWord.h.

const unsigned int L1GtPsbWord::getSize ( ) const
inline

get the size of the PSB block in GT DAQ record (in multiple of 8 bits)

Definition at line 198 of file L1GtPsbWord.h.

const cms_uint16_t L1GtPsbWord::localBxNr ( ) const
inline

get/set local bunch cross number of the actual bx

Definition at line 178 of file L1GtPsbWord.h.

bool L1GtPsbWord::operator!= ( const L1GtPsbWord result) const

unequal operator

Definition at line 124 of file L1GtPsbWord.cc.

bool L1GtPsbWord::operator== ( const L1GtPsbWord result) const

equal operator

Definition at line 86 of file L1GtPsbWord.cc.

void L1GtPsbWord::print ( std::ostream &  myCout) const

pretty print

Definition at line 453 of file L1GtPsbWord.cc.

void L1GtPsbWord::reset ( void  )

reset the content of a L1GtPsbWord

Definition at line 432 of file L1GtPsbWord.cc.

void L1GtPsbWord::setAData ( cms_uint16_t  aDataVal,
int  iA 
)

Definition at line 242 of file L1GtPsbWord.cc.

void L1GtPsbWord::setAData ( const cms_uint64_t word64,
int  iWord 
)

set the AData value from a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 258 of file L1GtPsbWord.cc.

void L1GtPsbWord::setADataWord64 ( cms_uint64_t word64,
int  iWord 
)

set the AData value in a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 295 of file L1GtPsbWord.cc.

void L1GtPsbWord::setBData ( cms_uint16_t  bDataVal,
int  iB 
)

Definition at line 337 of file L1GtPsbWord.cc.

void L1GtPsbWord::setBData ( const cms_uint64_t word64,
int  iWord 
)

set the BData value from a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 353 of file L1GtPsbWord.cc.

void L1GtPsbWord::setBDataWord64 ( cms_uint64_t word64,
int  iWord 
)

set the BData value in a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 379 of file L1GtPsbWord.cc.

void L1GtPsbWord::setBoardId ( cms_uint16_t  boardIdValue)
inline

Definition at line 71 of file L1GtPsbWord.h.

void L1GtPsbWord::setBoardId ( const cms_uint64_t word64,
int  iWord 
)

set the BoardId value from a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 136 of file L1GtPsbWord.cc.

void L1GtPsbWord::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 146 of file L1GtPsbWord.cc.

void L1GtPsbWord::setBxInEvent ( int  bxInEventValue)
inline

Definition at line 92 of file L1GtPsbWord.h.

void L1GtPsbWord::setBxInEvent ( const cms_uint64_t word64,
int  iWord 
)

set the BxInEvent value from a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 158 of file L1GtPsbWord.cc.

void L1GtPsbWord::setBxInEventWord64 ( cms_uint64_t word64,
int  iWord 
)

set the BxInEvent value in a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 170 of file L1GtPsbWord.cc.

void L1GtPsbWord::setBxNr ( cms_uint16_t  bxNrValue)
inline

Definition at line 113 of file L1GtPsbWord.h.

void L1GtPsbWord::setBxNr ( const cms_uint64_t word64,
int  iWord 
)

set the BxNr value from a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 184 of file L1GtPsbWord.cc.

void L1GtPsbWord::setBxNrWord64 ( cms_uint64_t word64,
int  iWord 
)

set the BxNr value in a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 195 of file L1GtPsbWord.cc.

void L1GtPsbWord::setEventNr ( cms_uint32_t  eventNrValue)
inline

Definition at line 134 of file L1GtPsbWord.h.

void L1GtPsbWord::setEventNr ( const cms_uint64_t word64,
int  iWord 
)

set the EventNr value from a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 206 of file L1GtPsbWord.cc.

void L1GtPsbWord::setEventNrWord64 ( cms_uint64_t word64,
int  iWord 
)

set the EventNr value in a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 216 of file L1GtPsbWord.cc.

void L1GtPsbWord::setLocalBxNr ( cms_uint16_t  localBxNrValue)
inline

Definition at line 183 of file L1GtPsbWord.h.

void L1GtPsbWord::setLocalBxNr ( const cms_uint64_t word64,
int  iWord 
)

set the local bunch cross number bits from a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 408 of file L1GtPsbWord.cc.

void L1GtPsbWord::setLocalBxNrWord64 ( cms_uint64_t word64,
int  iWord 
)

set the local bunch cross number bits in a 64-bits word, having the index iWord in the GTFE raw record

Definition at line 418 of file L1GtPsbWord.cc.

Member Data Documentation

const int L1GtPsbWord::ADataCH0Word = 1
staticprivate

Definition at line 246 of file L1GtPsbWord.h.

const int L1GtPsbWord::ADataCH4Word = 2
staticprivate

Definition at line 249 of file L1GtPsbWord.h.

const int L1GtPsbWord::BDataCH0Word = 3
staticprivate

Definition at line 252 of file L1GtPsbWord.h.

const int L1GtPsbWord::BDataCH4Word = 4
staticprivate

Definition at line 255 of file L1GtPsbWord.h.

const int L1GtPsbWord::BlockSize = 6
staticprivate

Definition at line 219 of file L1GtPsbWord.h.

const cms_uint64_t L1GtPsbWord::BoardIdMask = 0xFFFF000000000000ULL
staticprivate

Definition at line 230 of file L1GtPsbWord.h.

const int L1GtPsbWord::BoardIdShift = 48
staticprivate

Definition at line 236 of file L1GtPsbWord.h.

const int L1GtPsbWord::BoardIdWord = 0
staticprivate

Definition at line 224 of file L1GtPsbWord.h.

const cms_uint64_t L1GtPsbWord::BxInEventMask = 0x0000F00000000000ULL
staticprivate

Definition at line 231 of file L1GtPsbWord.h.

const int L1GtPsbWord::BxInEventShift = 44
staticprivate

Definition at line 237 of file L1GtPsbWord.h.

const int L1GtPsbWord::BxInEventWord = 0
staticprivate

Definition at line 225 of file L1GtPsbWord.h.

const cms_uint64_t L1GtPsbWord::BxNrMask = 0x00000FFF00000000ULL
staticprivate

Definition at line 232 of file L1GtPsbWord.h.

const int L1GtPsbWord::BxNrShift = 32
staticprivate

Definition at line 238 of file L1GtPsbWord.h.

const int L1GtPsbWord::BxNrWord = 0
staticprivate

Definition at line 226 of file L1GtPsbWord.h.

const cms_uint64_t L1GtPsbWord::DataCHMask = 0x000000000000FFFFULL
staticprivate

Definition at line 243 of file L1GtPsbWord.h.

const int L1GtPsbWord::DataCHSize = 16
staticprivate

Definition at line 242 of file L1GtPsbWord.h.

const cms_uint64_t L1GtPsbWord::EventNrMask = 0x0000000000FFFFFFULL
staticprivate

Definition at line 233 of file L1GtPsbWord.h.

const int L1GtPsbWord::EventNrShift = 0
staticprivate

Definition at line 239 of file L1GtPsbWord.h.

const int L1GtPsbWord::EventNrWord = 0
staticprivate

Definition at line 227 of file L1GtPsbWord.h.

const cms_uint64_t L1GtPsbWord::LocalBxNrMask = 0x0000000000000FFFULL
staticprivate

Definition at line 259 of file L1GtPsbWord.h.

const int L1GtPsbWord::LocalBxNrShift = 0
staticprivate

Definition at line 260 of file L1GtPsbWord.h.

const int L1GtPsbWord::LocalBxNrWord = 5
staticprivate

Definition at line 258 of file L1GtPsbWord.h.

cms_uint16_t L1GtPsbWord::m_aData[NumberAData]
private

Definition at line 279 of file L1GtPsbWord.h.

cms_uint16_t L1GtPsbWord::m_bData[NumberBData]
private

Definition at line 281 of file L1GtPsbWord.h.

cms_uint16_t L1GtPsbWord::m_boardId
private

Definition at line 270 of file L1GtPsbWord.h.

int L1GtPsbWord::m_bxInEvent
private

Definition at line 272 of file L1GtPsbWord.h.

cms_uint16_t L1GtPsbWord::m_bxNr
private

Definition at line 276 of file L1GtPsbWord.h.

cms_uint32_t L1GtPsbWord::m_eventNr
private

Definition at line 277 of file L1GtPsbWord.h.

cms_uint16_t L1GtPsbWord::m_localBxNr
private

Definition at line 283 of file L1GtPsbWord.h.

const int L1GtPsbWord::NumberAData = 8
static

Definition at line 34 of file L1GtPsbWord.h.

const int L1GtPsbWord::NumberBData = 8
static

Definition at line 35 of file L1GtPsbWord.h.