16 int nBX, firstBX, lastBX;
21 res_->setBXRange(firstBX, lastBX);
23 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
29 for (
int bx=firstBX; bx<=lastBX; bx++){
30 uint32_t raw_data0 = block.
payload()[i++];
31 uint32_t raw_data1 = block.
payload()[i++];
36 candbit[0] = raw_data0 & 0xFFFF;
37 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
38 candbit[2] = raw_data1 & 0xFFFF;
39 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
41 int totet=candbit[0] & 0xFFF;
42 int overflowtotet=(candbit[0]>>12) & 0x1;
43 int etmiss=candbit[1] & 0xFFF;
44 int overflowetmiss=(candbit[1]>>12) & 0x1;
45 int totht=candbit[2] & 0xFFF;
46 int overflowtotht=(candbit[2]>>12) & 0x1;
47 int etmissphi=candbit[3] & 0x7F;
53 flagtotet|= overflowtotet;
55 LogDebug(
"L1T") <<
"ET: pT " << et.
hwPt()<<
"is overflow "<<overflowtotet<<std::endl;
56 res_->push_back(bx,et);
62 flagtotht|= overflowtotht;
64 LogDebug(
"L1T") <<
"HT: pT " << ht.
hwPt()<<
"is overflow "<<overflowtotht<<std::endl;
65 res_->push_back(bx,ht);
71 int flagetmiss=met.
hwQual();
72 flagetmiss|= overflowetmiss;
74 LogDebug(
"L1T") <<
"MET: pT " << met.
hwPt()<<
"is overflow "<<overflowetmiss<<std::endl;
75 res_->push_back(bx,met);
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
std::vector< uint32_t > payload() const
void setType(EtSumType type)
#define DEFINE_L1T_UNPACKER(type)