11 unsigned int blockId =
block.header().getID();
12 LogDebug(
"L1T") <<
"Block ID: " << blockId <<
" size: " <<
block.header().getSize();
17 (
bool)((
block.header().getFlags() >> 1) & 0x01);
20 block.getBxBlocks((
unsigned int)6,
true);
23 block.getBxBlocks((
unsigned int)6,
false);
27 res = static_cast<BMTFCollections *>(coll)->getBMTFMuons();
29 res = static_cast<BMTFCollections *>(coll)->getBMTF2Muons();
34 if (!bxBlocks.empty()) {
35 nBX = bxBlocks[0].header().getTotalBx();
39 res->setBXRange(-2, 2);
40 LogDebug(
"L1T") <<
"No BXs included in the given Block. Set the BXRange to be (-2,2).";
46 int processor =
block.amc().getBoardID() - 1;
47 if (processor < 0 || processor > 11) {
49 <<
"Processor found out of range so it will be calculated by the old way";
50 if (
block.amc().getAMCNumber() % 2 != 0)
51 processor =
block.amc().getAMCNumber() / 2;
53 processor = 6 + (
block.amc().getAMCNumber() / 2 - 1);
56 for (
auto bxBlock : bxBlocks) {
57 int ibx = bxBlock.header().getBx();
59 for (
auto iw = 0; iw < 6; iw += 2) {
60 uint32_t raw_first = bxBlock.payload()[iw];
61 uint32_t raw_secnd = bxBlock.payload()[iw + 1];
63 LogDebug(
"L1T") <<
"Raw data is zero";
71 if (muCand.
hwPt() == 0) {
82 res->push_back(ibx, muCand);