Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions PWGDQ/Tasks/global-muon-matcher.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGDQ/Tasks/global-muon-matcher.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -121,7 +121,6 @@
return dphi;
};


struct GlobalMuonMatching {

static constexpr int GlobalTrackTypeMax = 2;
Expand Down Expand Up @@ -1247,7 +1246,7 @@
}

// set the number of match attempts for this track
for (auto& mchTrackInfo : mMchTrackInfos) {

Check failure on line 1249 in PWGDQ/Tasks/global-muon-matcher.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
const auto& mchTrack = muonTracks.rawIteratorAt(mchTrackInfo.first);
mchTrackInfo.second.nMatchAttempts = getMftMchMatchAttempts(collisions, bcs, mchTrack, mftTracks);
}
Expand All @@ -1273,14 +1272,14 @@
}

// set the number of match attempts for this track
for (auto& mchTrackInfo : mMchTrackInfos) {

Check failure on line 1275 in PWGDQ/Tasks/global-muon-matcher.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
mchTrackInfo.second.nMatchAttempts = mchTrackInfo.second.matchingCandidates.size();
}
}

std::vector<int64_t> taggedMuons;
getTaggedMuons(collisions, muonTracks, taggedMuons);
for (int64_t mchTrackIndex : taggedMuons) {

Check failure on line 1282 in PWGDQ/Tasks/global-muon-matcher.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
auto it = mMchTrackInfos.find(mchTrackIndex);
if (it != mMchTrackInfos.end()) {
it->second.isTagged = true;
Expand All @@ -1290,8 +1289,8 @@

template <class EVT, class BC, class TMUON>
void prepareEventMixingMatchingCandidates(EVT const& collisions,
BC const& bcs,
TMUON const& muonTracks)
BC const& bcs,
TMUON const& muonTracks)
{
LOGF(info, "Filling mixed matching candidate tables");

Expand All @@ -1302,7 +1301,7 @@
const float maxDeltaAttemptsRel = configEventMixing.cfgMaxDeltaAttempts.value;
const float maxDeltaZ = configEventMixing.cfgMaxDeltaZ.value;

for (auto& [mchIndex1, mchTrackInfo1] : mMchTrackInfos) {

Check failure on line 1304 in PWGDQ/Tasks/global-muon-matcher.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
const auto& mchTrack1 = muonTracks.rawIteratorAt(mchIndex1);

if (!mchTrack1.has_collision()) {
Expand Down Expand Up @@ -1367,7 +1366,7 @@
// add the candidates of MCH track #2 to the list of mixed candidates of track #1
mchTrackInfo1.mixedMatchingCandidates.push_back(mchTrackInfo2.matchingCandidates);
// update the muon track index of the mixed candidates to the index of track #1
for (auto& candidate : mchTrackInfo1.mixedMatchingCandidates.back()) {

Check failure on line 1369 in PWGDQ/Tasks/global-muon-matcher.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
candidate.muonTrackId = mchIndex1;
}
}
Expand Down
Loading