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));
104 j.setHwQual(
j.hwQual() | 2);
152 j.setHwQual(
j.hwQual() | 2);
constexpr int32_t ceil(float num)
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 getBXRange(int nbx, int &first, int &last)
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
void resize(int bx, unsigned size)
bool process(const l1t::Block &block, BXVector< T > *coll, F modify, bool isleft, bool isfirst, bool istau)
void setBXRange(int bxFirst, int bxLast)
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
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)