24 <<
" ZS_enabled->" << ZS_enabled <<
" isTriggeringAlgo->" <<
isTriggeringAlgo <<
" isKalman->"
34 int firstBX = 0, lastBX = 0;
36 if (!bxBlocks.empty()) {
37 nBX = bxBlocks[0].header().getTotalBx();
42 LogDebug(
"L1T") <<
"No BXs included in the given Block. Set the BXRange to be (-2,2).";
46 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" firstBX = " << firstBX <<
" lastBX = " << lastBX;
48 int processor = block.
amc().getBoardID() - 1;
49 if (processor < 0 || processor > 11) {
50 edm::LogInfo(
"L1T") <<
"Processor found out of range, it will be calculated by the old way";
51 if (block.
amc().getAMCNumber() % 2 != 0)
52 processor = block.
amc().getAMCNumber() / 2;
54 processor = 6 + (block.
amc().getAMCNumber() / 2 - 1);
57 for (
const auto &bxBlock : bxBlocks) {
58 int ibx = bxBlock.header().getBx();
60 for (
auto iw = 0; iw < 6; iw += 2) {
61 uint32_t raw_first = bxBlock.payload()[iw];
62 uint32_t raw_secnd = bxBlock.payload()[iw + 1];
64 LogDebug(
"L1T") <<
"Raw data is zero";
70 muCand, raw_first, raw_secnd, processor,
tftype::bmtf, isKalman,
false);
72 if (muCand.
hwPt() == 0) {
bool unpack(const Block &block, UnpackerCollections *coll) override
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
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)
Log< level::Info, false > LogInfo
std::vector< BxBlock > BxBlocks
void setBXRange(int bxFirst, int bxLast)
BxBlocks getBxBlocks(unsigned int payloadWordsPerBx, bool bxHeader) const
const int hwPt() const
Get compressed pT (returned int * 0.5 = pT (GeV))
#define DEFINE_L1T_UNPACKER(type)
static void fillRegionalMuonCand(RegionalMuonCand &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63, int proc, tftype tf, bool isKbmtf, bool useEmtfDisplacementInfo)
void amc(const amc::Header &h)
void push_back(int bx, T object)
const int hwPtUnconstrained() const
Get second compressed pT (returned int * 1.0 = pT (GeV))