Skip to content

Commit

Permalink
fix array bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
ccaillol committed Apr 27, 2022
1 parent 30a3ff5 commit 0f53d79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EventFilter/CSCTFRawToDigi/plugins/CSCTFUnpacker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ void CSCTFUnpacker::produce(edm::Event& e, const edm::EventSetup& c) {
if (lct.empty())
continue;

status.link_status[lct[0].spInput()] |= (1 << lct[0].receiver_status_frame1()) |
(1 << lct[0].receiver_status_frame2()) |
((lct[0].aligment_fifo() ? 1 : 0) << 4);
status.link_status[lct[0].spInput() - 1] |= (1 << lct[0].receiver_status_frame1()) |
(1 << lct[0].receiver_status_frame2()) |
((lct[0].aligment_fifo() ? 1 : 0) << 4);
status.mpc_link_id |= (lct[0].link() << 2) | lct[0].mpc();

int station = (FPGA ? FPGA : 1);
Expand Down

0 comments on commit 0f53d79

Please sign in to comment.