Skip to content

Commit fd38c62

Browse files
committed
Further code-check fixes
1 parent 72f836b commit fd38c62

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

PWGDQ/Tasks/global-muon-matcher.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ struct GlobalMuonMatching {
15061506
continue;
15071507
}
15081508

1509-
auto processGroup = [&, mchIndex](const std::vector<MatchingCandidate>& candidatesGroup, int32_t mixedGroupIndex) {
1509+
auto processGroup = [&](const std::vector<MatchingCandidate>& candidatesGroup, int32_t mixedGroupIndex, int64_t mchTrackIndex) {
15101510
std::vector<MatchingCandidate> groupResults;
15111511
groupResults.reserve(candidatesGroup.size());
15121512

@@ -1547,7 +1547,7 @@ struct GlobalMuonMatching {
15471547

15481548
const int maxCandidates = configMatching.cfgMaxCandidatesPerMchTrack.value;
15491549

1550-
auto& storedCandidates = newMatchingCandidates[mchIndex];
1550+
auto& storedCandidates = newMatchingCandidates[mchTrackIndex];
15511551
size_t nStoredThisGroup = 0;
15521552
for (auto& result : groupResults) { // o2-linter: disable=const-ref-in-for-loop (object is modified in loop)
15531553
if (maxCandidates >= 0 && nStoredThisGroup >= static_cast<size_t>(maxCandidates)) {
@@ -1562,11 +1562,11 @@ struct GlobalMuonMatching {
15621562
if (useMixedMatchingCandidates) {
15631563
int32_t groupIdx = 0;
15641564
for (const auto& candidatesGroup : mchTrackInfo.mixedMatchingCandidates) {
1565-
processGroup(candidatesGroup, groupIdx);
1565+
processGroup(candidatesGroup, groupIdx, mchIndex);
15661566
groupIdx += 1;
15671567
}
15681568
} else {
1569-
processGroup(mchTrackInfo.matchingCandidates, -1);
1569+
processGroup(mchTrackInfo.matchingCandidates, -1, mchIndex);
15701570
}
15711571
}
15721572
}
@@ -1595,7 +1595,7 @@ struct GlobalMuonMatching {
15951595
continue;
15961596
}
15971597

1598-
auto processGroup = [&, mchIndex](const std::vector<MatchingCandidate>& candidatesGroup, int32_t mixedGroupIndex) {
1598+
auto processGroup = [&](const std::vector<MatchingCandidate>& candidatesGroup, int32_t mixedGroupIndex, int64_t mchTrackIndex) {
15991599
std::vector<MatchingCandidate> groupResults;
16001600
groupResults.reserve(candidatesGroup.size());
16011601

@@ -1640,7 +1640,7 @@ struct GlobalMuonMatching {
16401640

16411641
const int maxCandidates = configMatching.cfgMaxCandidatesPerMchTrack.value;
16421642

1643-
auto& storedCandidates = newMatchingCandidates[mchIndex];
1643+
auto& storedCandidates = newMatchingCandidates[mchTrackIndex];
16441644
size_t nStoredThisGroup = 0;
16451645
for (auto& result : groupResults) { // o2-linter: disable=const-ref-in-for-loop (object is modified in loop)
16461646
if (maxCandidates >= 0 && nStoredThisGroup >= static_cast<size_t>(maxCandidates)) {
@@ -1655,11 +1655,11 @@ struct GlobalMuonMatching {
16551655
if (useMixedMatchingCandidates) {
16561656
int32_t groupIdx = 0;
16571657
for (const auto& candidatesGroup : mchTrackInfo.mixedMatchingCandidates) {
1658-
processGroup(candidatesGroup, groupIdx);
1658+
processGroup(candidatesGroup, groupIdx, mchIndex);
16591659
groupIdx += 1;
16601660
}
16611661
} else {
1662-
processGroup(mchTrackInfo.matchingCandidates, -1);
1662+
processGroup(mchTrackInfo.matchingCandidates, -1, mchIndex);
16631663
}
16641664
}
16651665
}

0 commit comments

Comments
 (0)