1 #ifndef L1GlobalTrigger_L1GtfeWord_h
2 #define L1GlobalTrigger_L1GtfeWord_h
21 #include <boost/cstdint.hpp>
42 boost::uint16_t boardIdValue,
43 boost::uint16_t recordLength1Value,
44 boost::uint16_t recordLengthValue,
45 boost::uint16_t bxNrValue,
46 boost::uint32_t setupVersionValue,
47 boost::uint16_t activeBoardsValue,
48 boost::uint16_t altNrBxBoardValue,
49 boost::uint32_t totalTriggerNrValue
67 inline const boost::uint16_t
boardId()
const
124 inline const boost::uint16_t
bxNr()
const
184 boost::int16_t activeBoardsValue);
208 boost::int16_t altNrBxBoardValue);
241 virtual void reset();
244 virtual void print(std::ostream& myCout)
const;
248 virtual void unpack(
const unsigned char* gtfePtr);
bool operator==(const L1GtfeWord &) const
equal operator
void setTotalTriggerNrWord64(boost::uint64_t &word64, int iWord)
bool operator!=(const L1GtfeWord &) const
unequal operator
const unsigned int getSize() const
get the size of the GTFE block in GT DAQ record (in multiple of 8 bits)
static const boost::uint64_t SetupVersionMask
void setBoardIdWord64(boost::uint64_t &word64, int iWord)
virtual void print(std::ostream &myCout) const
pretty print the content of a L1GtfeWord
static const boost::uint64_t AltNrBxBoardMask
static const boost::uint64_t TotalTriggerNrMask
void setAltNrBxBoardWord64(boost::uint64_t &word64, int iWord)
static const int RecordLength1Shift
const boost::uint16_t recordLength() const
get/set record length for alternative 0
static const int ActiveBoardsWord
static const int UnitLength
one unit in the word is UnitLength bits
boost::uint16_t m_activeBoards
active boards contributing to EVM respectively DAQ record
static const int BlockSize
boost::uint16_t m_boardId
board identifier
const boost::uint16_t bxNr() const
get/set bunch cross number as counted in the GTFE board
void setRecordLength1Word64(boost::uint64_t &word64, int iWord)
const boost::uint32_t totalTriggerNr() const
get/set total number of L1A sent since start of run
const boost::uint32_t setupVersion() const
get/set setup version
static const boost::uint64_t BxNrMask
void setSetupVersionWord64(boost::uint64_t &word64, int iWord)
void setRecordLength1(boost::uint16_t recordLengthValue)
void setActiveBoards(boost::uint16_t activeBoardsValue)
virtual void reset()
reset the content of a L1GtfeWord
static const int TotalTriggerNrWord
static const boost::uint64_t BoardIdMask
static const boost::uint32_t BstFlagMask
static const int SetupVersionWord
static const boost::uint64_t RecordLength1Mask
boost::uint16_t m_altNrBxBoard
const boost::uint16_t boardId() const
get/set board ID
static const int SetupVersionShift
void setAltNrBxBoard(boost::uint16_t altNrBxBoardValue)
void setRecordLengthWord64(boost::uint64_t &word64, int iWord)
void setBxNr(boost::uint16_t bxNrValue)
static const int RecordLengthShift
const boost::uint16_t recordLength1() const
get/set record length for alternative 1
void setBxNrWord64(boost::uint64_t &word64, int iWord)
boost::uint32_t m_totalTriggerNr
total number of L1A sent since start of run
static const int TotalTriggerNrShift
static const int RecordLength1Word
void setBoardId(boost::uint16_t boardIdValue)
set BoardId from a BoardId value
static const int ActiveBoardsShift
unsigned long long uint64_t
boost::uint16_t m_recordLength1
record length for alternative 1
const int bstFlag() const
get / set BST flag: 0 or 1 - via setup version (no private member)
static const boost::uint64_t ActiveBoardsMask
void setActiveBoardsWord64(boost::uint64_t &word64, int iWord)
static const int RecordLengthWord
static const int BxNrShift
boost::uint32_t m_setupVersion
const boost::uint16_t activeBoards() const
get/set boards contributing to EVM respectively DAQ record
void setTotalTriggerNr(boost::uint32_t totalTriggerNrValue)
static const int BoardIdWord
boost::uint16_t m_recordLength
record length for alternative 0
static const int AltNrBxBoardShift
void setRecordLength(boost::uint16_t recordLengthValue)
boost::uint16_t m_bxNr
bunch cross number as counted in the GTFE board
static const int BxNrWord
static const int BoardIdShift
void setBstFlag(const int)
static const int AltNrBxBoardWord
const boost::uint16_t altNrBxBoard() const
get/set alternative for number of BX per board
virtual void unpack(const unsigned char *gtfePtr)
virtual ~L1GtfeWord()
destructor
void setSetupVersion(boost::uint32_t setupVersionValue)
static const boost::uint64_t RecordLengthMask