8 template <
typename T,
typename F>
10 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
25 uint32_t raw_data0 =
block.payload()[
i++];
26 uint32_t raw_data1 =
block.payload()[
i++];
29 candbit[0] = raw_data0 & 0xFFFF;
30 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
31 candbit[2] = raw_data1 & 0xFFFF;
32 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
34 for (
int icand = 0; icand < 4; icand++) {
35 int candPt = candbit[icand] & 0x3F;
36 int candEta = (candbit[icand] >> 6) & 0x7;
37 int candEtasign = (candbit[icand] >> 9) & 0
x1;
38 int candPhi = (candbit[icand] >> 10) & 0x1F;
42 cand.setHwEta((candEtasign << 3) | candEta);
43 cand.setHwPhi(candPhi);
61 auto res = static_cast<CaloCollections*>(coll)->getEGammas();
69 auto res = static_cast<CaloCollections*>(coll)->getEGammas();
74 auto res = static_cast<CaloCollections*>(coll)->getJets();
76 if (
res->size(0) != 0)
77 edm::LogWarning(
"L1T") <<
"Need to unpack central jets before forward ones";
83 auto res = static_cast<CaloCollections*>(coll)->getJets();
85 if (
res->size(0) != 4)
86 edm::LogWarning(
"L1T") <<
"Need to unpack central jets before forward ones";
89 j.setHwQual(
j.hwQual() | 2);
95 auto res = static_cast<CaloCollections*>(coll)->getTaus();
100 auto res = static_cast<CaloCollections*>(coll)->getIsoTaus();