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) & 0
x1;
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));
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)
BlockHeader header() const
std::vector< uint32_t > payload() 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)
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)