8 template<
typename T,
typename F>
13 int nBX, firstBX, lastBX;
19 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
25 for (
int bx=firstBX; bx<=lastBX; bx++){
26 uint32_t raw_data0 = block.
payload()[i++];
27 uint32_t raw_data1 = block.
payload()[i++];
30 candbit[0] = raw_data0 & 0xFFFF;
31 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
32 candbit[2] = raw_data1 & 0xFFFF;
33 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
35 for (
int icand=0;icand<4;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);
81 if (
res->size(0) != 0)
82 edm::LogWarning(
"L1T") <<
"Need to unpack central jets before forward ones";
92 if (
res->size(0) != 4)
93 edm::LogWarning(
"L1T") <<
"Need to unpack central jets before forward ones";
const std::vector< uint32_t > & payload() const
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
bool unpack(const Block &block, UnpackerCollections *coll) override
bool process(const l1t::Block &block, BXVector< T > *coll, F modify)
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 setBXRange(int bxFirst, int bxLast)
bool unpack(const Block &block, UnpackerCollections *coll) override
#define DEFINE_L1T_UNPACKER(type)
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
void push_back(int bx, T object)