11 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
17 auto res_ = static_cast<CaloCollections*>(coll)->getEtSums();
27 uint32_t raw_data0 =
block.payload()[
i++];
28 uint32_t raw_data1 =
block.payload()[
i++];
33 candbit[0] = raw_data0 & 0xFFFF;
34 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
35 candbit[2] = raw_data1 & 0xFFFF;
36 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
38 int totet = candbit[0] & 0xFFF;
39 int overflowtotet = (candbit[0] >> 12) & 0
x1;
40 int etmiss = candbit[1] & 0xFFF;
41 int overflowetmiss = (candbit[1] >> 12) & 0
x1;
42 int totht = candbit[2] & 0xFFF;
43 int overflowtotht = (candbit[2] >> 12) & 0
x1;
44 int etmissphi = candbit[3] & 0x7F;
49 int flagtotet =
et.hwQual();
50 flagtotet |= overflowtotet;
51 et.setHwQual(flagtotet);
52 LogDebug(
"L1T") <<
"ET: pT " <<
et.hwPt() <<
"is overflow " << overflowtotet << std::endl;
53 res_->push_back(
bx,
et);
58 int flagtotht = ht.
hwQual();
59 flagtotht |= overflowtotht;
61 LogDebug(
"L1T") <<
"HT: pT " << ht.
hwPt() <<
"is overflow " << overflowtotht << std::endl;
62 res_->push_back(
bx, ht);
66 met.setHwPhi(etmissphi);
68 int flagetmiss =
met.hwQual();
69 flagetmiss |= overflowetmiss;
70 met.setHwQual(flagetmiss);
71 LogDebug(
"L1T") <<
"MET: pT " <<
met.hwPt() <<
"is overflow " << overflowetmiss << std::endl;
72 res_->push_back(
bx,
met);