19 int nBX, firstBX, lastBX;
32 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" firstBX = " << firstBX <<
" lastBX = " << lastBX;
34 int processor = block.
amc().getBoardID() - 1;
35 if ( processor < 0 || processor > 11 )
37 edm::LogInfo (
"l1t:stage2::BMTFUnpackerOutput::unpack") <<
"Processor found out of range so it will be calculated by the old way";
38 if ( block.
amc().getAMCNumber()%2 != 0 )
39 processor = block.
amc().getAMCNumber()/2 ;
41 processor = 6 + (block.
amc().getAMCNumber()/2 -1);
44 for(
int ibx = firstBX; ibx <= lastBX; ibx++)
47 for(
unsigned int iw = 0; iw < block.
header().
getSize()/nBX; iw += 2)
49 uint32_t raw_first =
payload[ip+(ibx+lastBX)*6];
51 uint32_t raw_secnd =
payload[ip+(ibx+lastBX)*6];
55 LogDebug(
"L1T") <<
"Raw data is zero";
64 if ( muCand.
hwQual() != 0 )
const std::vector< uint32_t > & payload() const
bool unpack(const Block &block, UnpackerCollections *coll) override
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() 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))
#define DEFINE_L1T_UNPACKER(type)
void amc(const amc::Header &h)
void push_back(int bx, T object)