Skip to content

Commit

Permalink
correcting comment in TrackMultiplexer.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
tschuh committed Sep 2, 2024
1 parent a3d82e6 commit 4c9b83c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions L1Trigger/TrackFindingTracklet/src/TrackMultiplexer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ namespace trklet {
deque<Track*> accepted;
vector<deque<Track*>> stacks(channelAssignment_->numChannelsTrack());
vector<deque<Track*>> streams(channelAssignment_->numChannelsTrack());
// mux order affects DR
for (int channel = 0; channel < channelAssignment_->numChannelsTrack(); channel++)
for (Track* track : input_[channel])
streams[channel].push_back((track && track->valid_) ? track : nullptr);
Expand All @@ -408,12 +407,11 @@ namespace trklet {
!all_of(stacks.begin(), stacks.end(), [](const deque<Track*>& tracks) { return tracks.empty(); })) {
// fill input fifos
for (int channel = 0; channel < channelAssignment_->numChannelsTrack(); channel++) {
deque<Track*>& stack = stacks[channel];
Track* track = pop_front(streams[channel]);
if (track)
stack.push_back(track);
stacks[channel].push_back(track);
}
// merge input fifos to one stream, prioritizing higher input channel over lower channel
// merge input fifos to one stream, prioritizing lower input channel over higher channel, affects DR
bool nothingToRoute(true);
for (int channel = 0; channel < channelAssignment_->numChannelsTrack(); channel++) {
Track* track = pop_front(stacks[channel]);
Expand Down

0 comments on commit 4c9b83c

Please sign in to comment.