29 int firstBX = -(ceil((
double)nBX/2.)-1);
32 lastBX = ceil((
double)nBX/2.);
34 lastBX = ceil((
double)nBX/2.)-1;
38 res_->setBXRange(firstBX, lastBX);
40 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
43 for (
int bx=firstBX; bx<=lastBX; bx++){
48 LogDebug(
"L1T") <<
"Creating GT Algorithm Block for BX =" << bx;
50 res_->push_back(bx,talg);
62 uint32_t raw_data = block.
payload()[wd];
63 LogDebug(
"L1T") <<
" payload word " << wd <<
" 0x" << hex << raw_data <<
" offset=" << algOffset;
67 for(
unsigned int bt=0; bt<32; bt++) {
68 int val = ((raw_data >> bt) & 0x1);
74 LogDebug(
"L1T") <<
" Packing the FinalOR " << wd <<
" 0x" << hex << raw_data;
BlockHeader header() const
std::vector< uint32_t > payload() const
#define DEFINE_L1T_UNPACKER(type)
void setAlgoDecisionFinal(int bit, bool val)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override