17 int nBX, firstBX, lastBX;
30 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" firstBX = " << firstBX <<
" lastBX = " << lastBX;
32 int processor = block.
amc().getBoardID() - 1;
33 if ( processor < 0 || processor > 11 )
35 edm::LogInfo (
"l1t:stage2::BMTFUnpackerOutput::unpack") <<
"Processor found out of range so it will be calculated by the old way";
36 if ( block.
amc().getAMCNumber()%2 != 0 )
37 processor = block.
amc().getAMCNumber()/2 ;
39 processor = 6 + (block.
amc().getAMCNumber()/2 -1);
42 for(
int ibx = firstBX; ibx <= lastBX; ibx++)
45 for(
unsigned int iw = 0; iw < block.
header().
getSize()/nBX; iw += 2)
47 uint32_t raw_first = payload[ip+(ibx+lastBX)*6];
49 uint32_t raw_secnd = payload[ip+(ibx+lastBX)*6];
53 LogDebug(
"L1T") <<
"Raw data is zero";
62 if ( muCand.
hwQual() != 0 )
virtual 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
const int hwQual() const
Get quality code.
const int hwEta() const
Get compressed eta (returned int * 0.010875 = eta)
const int hwPhi() const
Get compressed local phi (returned int * 2*pi/576 = local phi in rad)
static void fillRegionalMuonCand(RegionalMuonCand &, uint32_t, uint32_t, int, tftype)
void setBXRange(int bxFirst, int bxLast)
const int hwPt() const
Get compressed pT (returned int * 0.5 = pT (GeV))
void amc(const amc::Header &h)
void push_back(int bx, T object)