26 int nBX, firstBX, lastBX;
31 res_->setBXRange(firstBX, lastBX);
33 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
39 for (
int bx=firstBX; bx<=lastBX; bx++){
43 uint32_t raw_data0 = block.
payload()[i++];
44 uint32_t raw_data1 = block.
payload()[i++];
49 candbit[0] = raw_data0 & 0xFFFF;
50 candbit[1] = raw_data1 & 0xFFFF;
52 int etmiss=candbit[0] & 0xFFF;
53 int overflowetmiss=(candbit[0]>>12) & 0x1;
54 int etmissphi=candbit[1] & 0x7F;
60 int flagetmiss=met.
hwQual();
61 flagetmiss|= overflowetmiss;
63 LogDebug(
"L1T") <<
"MET: pT " << met.
hwPt()<<
"is overflow "<<overflowetmiss<<std::endl;
void getBXRange(int nbx, int &first, int &last)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
BlockHeader header() const
std::vector< uint32_t > payload() const
void setType(EtSumType type)
#define DEFINE_L1T_UNPACKER(type)