15 unsigned int bxid =
block.amc().getBX();
17 LogDebug(
"L1T") <<
"Unpacking TMT # " << tmt <<
" for BX " << bxid;
20 unsigned link =
block.header().getID() / 2;
26 unsigned nframes = 40;
29 block.header().getSize() /
41 auto res_ = static_cast<CaloCollections*>(coll)->getTowers();
44 LogDebug(
"L1T") <<
"Block : id=" <<
block.header().getID() <<
", size=" <<
block.header().getSize()
45 <<
", link=" <<
link <<
", link_phi=" << link_phi <<
", nBX=" << nBX <<
", firstBX=" <<
firstBX
50 for (
unsigned iframe = 0; iframe < nframes && iframe <
block.header().getSize(); ++iframe) {
51 uint32_t raw_data =
block.payload().at(iframe);
53 if ((raw_data & 0xFFFF) != 0) {
57 tower1.
setHwPt(raw_data & 0x1FF);
62 int ieta = iframe + 1;
68 LogDebug(
"L1T") <<
"Tower 1: Eta " << tower1.
hwEta() <<
" phi " << tower1.
hwPhi() <<
" pT " << tower1.
hwPt()
69 <<
" frame " << iframe <<
" qual " << tower1.
hwQual() <<
" EtRatio " << tower1.
hwEtRatio();
71 res_->push_back(
bx, tower1);
74 if (((raw_data >> 16) & 0xFFFF) != 0) {
78 tower2.
setHwPt((raw_data >> 16) & 0x1FF);
83 int ieta = iframe + 1;
88 LogDebug(
"L1T") <<
"Tower 2: Eta " << tower2.
hwEta() <<
" phi " << tower2.
hwPhi() <<
" pT " << tower2.
hwPt()
89 <<
" frame " << iframe <<
" qual " << tower2.
hwQual() <<
" EtRatio " << tower2.
hwEtRatio();
91 res_->push_back(
bx, tower2);