7 template<
typename T,
typename F>
12 int nBX, firstBX, lastBX;
18 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
24 for (
int bx=firstBX; bx<=lastBX; bx++){
26 if(!istau)coll->
resize(bx,8);
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++){
38 int candPt=candbit[icand] & 0x3F;
39 int candEta=(candbit[icand]>>6 ) & 0x7;
40 int candEtasign=(candbit[icand]>>9) & 0x1;
41 int candPhi=(candbit[icand]>>10) & 0x1F;
45 cand.setHwEta((candEtasign << 3) | candEta);
46 cand.setHwPhi(candPhi);
56 coll->
set(bx, 2*icand,modify(cand));
59 coll->
set(bx, 2*icand+1,modify(cand));
64 coll->
set(bx, 2*icand+4,modify(cand));
67 coll->
set(bx, 2*icand+5,modify(cand));
156 return process(block, res, [](
const l1t::EGamma& eg) {
return eg; },
true,
false,
false);
198 return process(block, res, [](
const l1t::EGamma& eg) {
return eg; },
false,
false,
false);
205 return process(block, res, [](
const l1t::Jet&
j) {
return j; },
false,
true,
false);
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
std::vector< uint32_t > payload() const
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
#define DEFINE_L1T_UNPACKER(type)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
void set(int bx, unsigned i, const T &object)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
void resize(int bx, unsigned size)
void setBXRange(int bxFirst, int bxLast)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)