15 unsigned int wdPerBX = 6;
19 int firstBX = -(ceil((
double)nBX/2.)-1);
22 lastBX = ceil((
double)nBX/2.);
24 lastBX = ceil((
double)nBX/2.)-1;
28 res_->setBXRange(firstBX, lastBX);
30 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
34 for (
int bx=firstBX; bx<=lastBX; bx++){
39 LogDebug(
"L1T") <<
"Creating GT External Block for BX =" << bx;
41 res_->push_back(bx,tExt);
52 for(
unsigned int wd=0; wd<wdPerBX; wd++) {
53 uint32_t raw_data = block.
payload()[wd+numBX*wdPerBX];
54 LogDebug(
"L1T") <<
" payload word " << wd <<
" 0x" << hex << raw_data;
57 for(
unsigned int bt=0; bt<32; bt++) {
58 int val = ((raw_data >> bt) & 0
x1);
59 int extBit = bt+wd*32+extOffset;
const std::vector< uint32_t > & payload() const
BlockHeader header() const
static const unsigned int numBX
void setExternalDecision(unsigned int bit, bool val)
Set decision bits.
bool unpack(const Block &block, UnpackerCollections *coll) override
#define DEFINE_L1T_UNPACKER(type)