From c78f1fc056ae20155badfd76c607672d472f6449 Mon Sep 17 00:00:00 2001 From: Chriisbrown <41648127+Chriisbrown@users.noreply.github.com> Date: Fri, 22 Oct 2021 16:07:02 +0100 Subject: [PATCH] Fix to numLinkTracks #2 --- L1Trigger/TrackFindingTracklet/plugins/ProducerKFout.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/L1Trigger/TrackFindingTracklet/plugins/ProducerKFout.cc b/L1Trigger/TrackFindingTracklet/plugins/ProducerKFout.cc index b1ad9ded43684..327704175f01e 100644 --- a/L1Trigger/TrackFindingTracklet/plugins/ProducerKFout.cc +++ b/L1Trigger/TrackFindingTracklet/plugins/ProducerKFout.cc @@ -261,8 +261,7 @@ namespace trackFindingTracklet { continue; // Don't fill links if no tracks if ((numLinkTracks % 2 != 0)) { SortedPartialTracks[iLink].push_back(NullBitTrack); //Pad out final set of bits - OutputStreamsTracks[iLink].emplace_back(OutputStreamsTracks[iLink][numLinkTracks]); //Pad out with final repeated track - numLinkTracks++; + OutputStreamsTracks[iLink].emplace_back(OutputStreamsTracks[iLink][numLinkTracks++]); //Pad out with final repeated track } //If there is an odd number of tracks for (int iTrack = 0; iTrack < (int)(SortedPartialTracks[iLink].size()); iTrack++ ){ if (iTrack % 2 != 1) // Write to links every other partial track, 3 partial tracks per full TTTrack