Skip to content

Commit

Permalink
Fixing a bug in GEM and RPC unpacker blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
eyigitba committed Sep 20, 2022
1 parent d066e62 commit 9cca0b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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
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 9cca0b1

Please sign in to comment.