12 if (linkNo >= 0 && linkNo < 6)
14 else if (linkNo >= 8 && linkNo < 14)
16 else if (linkNo >= 16 && linkNo < 22)
18 else if (linkNo >= 22 && linkNo < 28)
20 else if ( (linkNo >= 28 && linkNo < 29) || (linkNo >= 32 && linkNo < 36))
36 int nBX, firstBX, lastBX;
41 LogDebug(
"L1T") <<
"BX override. Set firstBX = lastBX = 0";
51 for(
int ibx = firstBX; ibx <= lastBX; ibx++)
55 for(
unsigned int iw = 0; iw < block.
header().
getSize()/nBX; iw++)
56 inputWords[iw] = payload[iw+(ibx+lastBX)*6];
58 int wheel, sector, trTag;
61 int mbPhi[4], mbPhiB[4], mbQual[4], mbBxC[4], mbRPC[4];
64 for (
int iw = 0; iw < 4; iw++)
66 if ( ((inputWords[iw] & 0x3fffffff) == 0) || (inputWords[iw] == 0x505050bc) )
68 else if ( (inputWords[iw] != 0x505050bc) && (inputWords[iw+2] == 0x505050bc) )
72 if ( ((inputWords[iw] >> 11) & 0x1) == 1 )
73 mbPhi[iw] = ( inputWords[iw] & 0x7FF ) - 2048;
75 mbPhi[iw] = inputWords[iw] & 0xFFF;
79 if ( ((inputWords[iw] >> 21) & 0x1) == 1 )
80 mbPhiB[iw] = ( (inputWords[iw] >> 12) & 0x1FF ) - 512;
82 mbPhiB[iw] = (inputWords[iw] >> 12) & 0x3FF;
85 mbQual[iw] = (inputWords[iw] >> 22) & 0xF;
86 mbBxC[iw] = (inputWords[iw] >> 30) & 0x3;
91 mbRPC[iw] = (inputWords[iw] >> 26) & 0x1;
92 phi_data.push_back(
L1MuDTChambPhDigi( ibx, wheel, sector, iw+1, mbPhi[iw], mbPhiB[iw], mbQual[iw], trTag, mbBxC[iw], mbRPC[iw] ) );
96 for (
int i = 0;
i < 3;
i++)
97 mbEta[
i] = (inputWords[4] >> (
i*7 + 1)) & 0xFF;
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
std::vector< uint32_t > payload() const
void numWheelSectorTrTag(int &wheelNo, int §orNo, int &tagSegID, int linkNo, int amcNo)
std::vector< L1MuDTChambPhDigi > Phi_Container
std::vector< L1MuDTChambThDigi > The_Container
void setContainer(const The_Container &inputSegments)
void setContainer(const Phi_Container &inputSegments)
void amc(const amc::Header &h)