24 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
26 int nBX = int(ceil(
block.header().getSize() / 2.));
29 int firstBX = -(ceil((
double)nBX/2.)-1);
32 lastBX = ceil((
double)nBX/2.)+1;
34 lastBX = ceil((
double)nBX/2.);
37 auto resHFBitCounts_ =
static_cast<CaloCollections*
>(
coll)->getCaloSpareHFBitCounts();
38 resHFBitCounts_->setBXRange(firstBX, lastBX);
40 auto resHFRingSums_ =
static_cast<CaloCollections*
>(
coll)->getCaloSpareHFRingSums();
41 resHFRingSums_->setBXRange(firstBX, lastBX);
43 auto reset_ =
static_cast<CaloCollections*
>(
coll)->getEtSums();
44 reset_->setBXRange(firstBX, lastBX);
46 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
52 for (
int bx=firstBX; bx<lastBX; bx++){
53 uint32_t raw_data0 =
block.payload()[i++];
54 uint32_t raw_data1 =
block.payload()[i++];
59 candbit[0] = raw_data0 & 0xFFFF;
60 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
61 candbit[2] = raw_data1 & 0xFFFF;
62 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
64 int hfbitcount=candbit[0] & 0xFFF;
65 int hfringsum=((candbit[0]>>12) & 0x7) | ((candbit[2] & 0x1FF) << 3);
66 int htmissphi=candbit[1] & 0x1F;
67 int htmiss=(candbit[1]>>5) & 0x7F;
68 int overflowhtmiss=(candbit[1]>>12) & 0x1;
74 resHFBitCounts_->push_back(bx,hfbc);
80 resHFRingSums_->push_back(bx,hfrs);
86 int flaghtmiss=mht.
hwQual();
87 flaghtmiss|= overflowhtmiss;
89 LogDebug(
"L1T") <<
"MHT: pT " << mht.
hwPt()<<
"is overflow "<<overflowhtmiss<<std::endl;
90 reset_->push_back(bx,mht);
void setType(EtSumType type)
void setType(CaloSpareType type)