|
|
Go to the documentation of this file.
7 template <
typename T,
typename F>
9 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
29 uint32_t raw_data0 =
block.payload()[
i++];
30 uint32_t raw_data1 =
block.payload()[
i++];
33 candbit[0] = raw_data0 & 0xFFFF;
34 candbit[1] = raw_data1 & 0xFFFF;
36 for (
int icand = 0; icand < 2; icand++) {
37 int candPt = candbit[icand] & 0x3F;
38 int candEta = (candbit[icand] >> 6) & 0x7;
39 int candEtasign = (candbit[icand] >> 9) & 0
x1;
40 int candPhi = (candbit[icand] >> 10) & 0x1F;
44 cand.setHwEta((candEtasign << 3) | candEta);
45 cand.setHwPhi(candPhi);
57 coll->
set(
bx, 2 * icand + 1, modify(
cand));
59 }
else if (!isfirst) {
61 coll->
set(
bx, 2 * icand + 4, modify(
cand));
63 coll->
set(
bx, 2 * icand + 5, modify(
cand));
75 auto res = static_cast<CaloCollections*>(coll)->getEGammas();
89 auto res = static_cast<CaloCollections*>(coll)->getEGammas();
95 auto res = static_cast<CaloCollections*>(coll)->getJets();
101 auto res = static_cast<CaloCollections*>(coll)->getJets();
106 j.setHwQual(
j.hwQual() | 2);
115 auto res = static_cast<CaloCollections*>(coll)->getTaus();
121 auto res = static_cast<CaloCollections*>(coll)->getIsoTaus();
127 auto res = static_cast<CaloCollections*>(coll)->getEGammas();
141 auto res = static_cast<CaloCollections*>(coll)->getEGammas();
147 auto res = static_cast<CaloCollections*>(coll)->getJets();
153 auto res = static_cast<CaloCollections*>(coll)->getJets();
158 j.setHwQual(
j.hwQual() | 2);
167 auto res = static_cast<CaloCollections*>(coll)->getTaus();
173 auto res = static_cast<CaloCollections*>(coll)->getIsoTaus();
bool unpack(const Block &block, UnpackerCollections *coll) override
bool unpack(const Block &block, UnpackerCollections *coll) override
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
bool process(const l1t::Block &block, BXVector< T > *coll, F modify, bool isleft, bool isfirst, bool istau)
constexpr int32_t ceil(float num)
void resize(int bx, unsigned size)
bool unpack(const Block &block, UnpackerCollections *coll) override
bool unpack(const Block &block, UnpackerCollections *coll) override
bool unpack(const Block &block, UnpackerCollections *coll) override
bool unpack(const Block &block, UnpackerCollections *coll) override
bool unpack(const Block &block, UnpackerCollections *coll) override
bool unpack(const Block &block, UnpackerCollections *coll) override
void set(int bx, unsigned i, const T &object)
bool unpack(const Block &block, UnpackerCollections *coll) override
bool unpack(const Block &block, UnpackerCollections *coll) override
#define DEFINE_L1T_UNPACKER(type)
bool unpack(const Block &block, UnpackerCollections *coll) override
void getBXRange(int nbx, int &first, int &last)
void setBXRange(int bxFirst, int bxLast)
bool unpack(const Block &block, UnpackerCollections *coll) override