1 #ifndef L1GlobalTrigger_L1GtPsbWord_h
2 #define L1GlobalTrigger_L1GtPsbWord_h
21 #include <boost/cstdint.hpp>
45 boost::uint16_t boardIdValue,
47 boost::uint16_t bxNrValue,
48 boost::uint32_t eventNrValue,
51 boost::uint16_t localBxNrValue
68 inline const boost::uint16_t
boardId()
const
110 inline const boost::uint16_t
bxNr()
const
152 const boost::uint16_t
aData(
int iA)
const;
153 void setAData(boost::uint16_t aDataVal,
int iA);
166 const boost::uint16_t
bData(
int iB)
const;
167 void setBData(boost::uint16_t bDataVal,
int iB);
214 void print(std::ostream& myCout)
const;
void setLocalBxNrWord64(boost::uint64_t &word64, int iWord)
void setBxNr(boost::uint16_t bxNrValue)
static const int LocalBxNrWord
const boost::uint16_t bxNr() const
get/set bunch cross number of the actual bx
static const int BlockSize
static const int BoardIdShift
void reset()
reset the content of a L1GtPsbWord
const boost::uint16_t localBxNr() const
get/set local bunch cross number of the actual bx
static const int BDataCH0Word
void setEventNrWord64(boost::uint64_t &word64, int iWord)
void setLocalBxNr(boost::uint16_t localBxNrValue)
void setADataWord64(boost::uint64_t &word64, int iWord)
static const boost::uint64_t BoardIdMask
void setBxNrWord64(boost::uint64_t &word64, int iWord)
static const int UnitLength
one unit in the word is UnitLength bits
static const int EventNrWord
static const boost::uint64_t LocalBxNrMask
static const boost::uint64_t BxInEventMask
static const int BoardIdWord
void setBDataWord64(boost::uint64_t &word64, int iWord)
static const int BxInEventShift
static const int DataCHSize
boost::uint32_t m_eventNr
void setBoardIdWord64(boost::uint64_t &word64, int iWord)
boost::uint16_t m_aData[NumberAData]
bool operator==(const L1GtPsbWord &) const
equal operator
void setBxInEvent(int bxInEventValue)
virtual ~L1GtPsbWord()
destructor
const boost::uint32_t eventNr() const
get/set event number since last L1 reset generated in PSB
const boost::uint16_t aData(int iA) const
get/set A_DATA_CH_IA
static const boost::uint64_t DataCHMask
L1GtPsbWord()
constructors
static const int LocalBxNrShift
void print(std::ostream &myCout) const
pretty print
boost::uint16_t m_bData[NumberBData]
static const int BxInEventWord
boost::uint16_t m_boardId
void setBData(boost::uint16_t bDataVal, int iB)
void setAData(boost::uint16_t aDataVal, int iA)
unsigned long long uint64_t
static const int NumberBData
const boost::uint16_t bData(int iB) const
get/set B_DATA_CH_IB
const int bxInEvent() const
get/set bunch cross in the GT event record
static const int ADataCH0Word
static const int EventNrShift
static const int BDataCH4Word
static const int BxNrWord
static const int NumberAData
const boost::uint16_t boardId() const
get/set board ID
void setBxInEventWord64(boost::uint64_t &word64, int iWord)
static const boost::uint64_t BxNrMask
static const boost::uint64_t EventNrMask
bool operator!=(const L1GtPsbWord &) const
unequal operator
void setEventNr(boost::uint32_t eventNrValue)
boost::uint16_t m_localBxNr
static const int ADataCH4Word
static const int BxNrShift
const unsigned int getSize() const
get the size of the PSB block in GT DAQ record (in multiple of 8 bits)
void setBoardId(boost::uint16_t boardIdValue)