Skip to content

Commit

Permalink
Merge pull request #39461 from eyigitba/EMTF_fixUnpackerBug_12_5_X_Se…
Browse files Browse the repository at this point in the history
…pt22

[12_5_X] Bug fix in EMTF GEM and RPC unpacker blocks
  • Loading branch information
cmsbuild authored Sep 21, 2022
2 parents 01ffcb7 + 042ca77 commit 1275c74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ namespace l1t {
uint16_t GEMc = payload[2];
uint16_t GEMd = payload[3];

for (int i = 0; i < nTPs; i++) {
// If there are 2 TPs in the block we fill them 1 by 1
for (int i = 1; i <= nTPs; i++) {
// res is a pointer to a collection of EMTFDaqOut class objects
// There is one EMTFDaqOut for each MTF7 (60 deg. sector) in the event
EMTFDaqOutCollection* res;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ namespace l1t {
uint16_t RPCc = payload[2];
uint16_t RPCd = payload[3];

for (int i = 0; i < nTPs; i++) {
// If there are 2 TPs in the block we fill them 1 by 1
for (int i = 1; i <= nTPs; i++) {
// res is a pointer to a collection of EMTFDaqOut class objects
// There is one EMTFDaqOut for each MTF7 (60 deg. sector) in the event
EMTFDaqOutCollection* res;
Expand All @@ -159,7 +160,7 @@ namespace l1t {
////////////////////////////

if (run3_DAQ_format) { // Run 3 DAQ format has 2 TPs per block
if (i == 0) {
if (i == 1) {
RPC_.set_phi(GetHexBits(RPCa, 0, 10));
RPC_.set_word(GetHexBits(RPCa, 11, 12));
RPC_.set_frame(GetHexBits(RPCa, 13, 14));
Expand Down

0 comments on commit 1275c74

Please sign in to comment.