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