7 template <
typename T,
typename F>
11 int nBX, firstBX, lastBX;
17 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
23 for (
int bx = firstBX;
bx <= lastBX;
bx++) {
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) & 0x1;
40 int candPhi = (candbit[icand] >> 10) & 0x1F;
44 cand.setHwEta((candEtasign << 3) | candEta);
45 cand.setHwPhi(candPhi);
55 coll->
set(
bx, 2 * icand, modify(cand));
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));
91 block, res, [](
const l1t::EGamma& eg) {
return eg; },
true,
false,
false);
97 block, res, [](
const l1t::Jet&
j) {
return j; },
true,
true,
false);
117 block, res, [](
const l1t::Tau&
t) {
return t; },
true,
true,
true);
123 block, res, [](
const l1t::Tau&
t) {
return t; },
true,
true,
true);
143 block, res, [](
const l1t::EGamma& eg) {
return eg; },
false,
false,
false);
149 block, res, [](
const l1t::Jet&
j) {
return j; },
false,
true,
false);
169 block, res, [](
const l1t::Tau&
t) {
return t; },
false,
true,
true);
175 block, res, [](
const l1t::Tau&
t) {
return t; },
false,
true,
true);
constexpr int32_t ceil(float num)
bool unpack(const Block &block, UnpackerCollections *coll) override
const std::vector< uint32_t > & payload() const
bool unpack(const Block &block, UnpackerCollections *coll) override
bool unpack(const Block &block, UnpackerCollections *coll) override
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
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)
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)