7 template<
typename T,
typename F>
15 int firstBX = -(ceil((
double)nBX/2.)-1);
18 lastBX = ceil((
double)nBX/2.)+1;
20 lastBX = ceil((
double)nBX/2.);
25 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
31 for (
int bx=firstBX; bx<lastBX; bx++){
32 uint32_t raw_data0 = block.
payload()[i++];
33 uint32_t raw_data1 = block.
payload()[i++];
36 candbit[0] = raw_data0 & 0xFFFF;
37 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
38 candbit[2] = raw_data1 & 0xFFFF;
39 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
41 for (
int icand=0;icand<4;icand++){
43 int candPt=candbit[icand] & 0x3F;
44 int candEta=(candbit[icand]>>6 ) & 0x7;
45 int candEtasign=(candbit[icand]>>9) & 0x1;
46 int candPhi=(candbit[icand]>>10) & 0x1F;
50 cand.setHwEta((candEtasign << 3) | candEta);
51 cand.setHwPhi(candPhi);
122 if (res->size(0) != 0)
123 edm::LogWarning(
"L1T") <<
"Need to unpack central jets before forward ones";
133 if (res->size(0) != 4)
134 edm::LogWarning(
"L1T") <<
"Need to unpack central jets before forward ones";
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
BlockHeader header() const
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
std::vector< uint32_t > payload() const
#define DEFINE_L1T_UNPACKER(type)
std::vector< JetPair > getJets(HWW &hww, int, double, double, bool, bool)
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 setBXRange(int bxFirst, int bxLast)
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
void push_back(int bx, T object)