Skip to content

Commit 5d3613c

Browse files
author
Niveditha Ramasubramanian
committed
linter issues fix
1 parent 5a54bf5 commit 5d3613c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PWGDQ/Tasks/qaMatching.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,7 @@ struct qaMatching {
19461946
}*/
19471947

19481948
// fill collision information for global muon tracks (MFT-MCH-MID matches)
1949-
for (auto muonTrack : muonTracks) {
1949+
for (const auto& muonTrack : muonTracks) {
19501950
if (!muonTrack.has_collision())
19511951
continue;
19521952

@@ -2014,7 +2014,7 @@ struct qaMatching {
20142014
}
20152015

20162016
// fill collision information for MFT standalone tracks
2017-
for (auto mftTrack : mftTracks) {
2017+
for (const auto& mftTrack : mftTracks) {
20182018
if (!mftTrack.has_collision())
20192019
continue;
20202020

@@ -2246,7 +2246,7 @@ struct qaMatching {
22462246
}
22472247
}
22482248

2249-
for (auto [mchIndex, globalTracksVector] : matchingCandidates) {
2249+
for (const auto& [mchIndex, globalTracksVector] : matchingCandidates) {
22502250
if (globalTracksVector.size() < 1)
22512251
continue;
22522252

@@ -2277,7 +2277,7 @@ struct qaMatching {
22772277

22782278
// ====================================
22792279
// Matching purity
2280-
for (auto [mchIndex, globalTracksVector] : matchingCandidates) {
2280+
for (const auto& [mchIndex, globalTracksVector] : matchingCandidates) {
22812281
if (globalTracksVector.size() < 1)
22822282
continue;
22832283

@@ -2416,7 +2416,7 @@ struct qaMatching {
24162416
}
24172417
}
24182418

2419-
for (auto& [muon1, muon2] : globalMuonPairs) {
2419+
for (const auto& [muon1, muon2] : globalMuonPairs) {
24202420
auto& candidates1 = muon1.second;
24212421
auto& candidates2 = muon2.second;
24222422

@@ -2493,7 +2493,7 @@ struct qaMatching {
24932493
return;
24942494
auto matchingFunc = mMatchingFunctionMap.at(funcName);
24952495

2496-
for (auto& [mchIndex, globalTracksVector] : matchingCandidates) {
2496+
for (const auto& [mchIndex, globalTracksVector] : matchingCandidates) {
24972497
auto const& mchTrack = muonTracks.rawIteratorAt(mchIndex);
24982498

24992499
for (const auto& candidate : globalTracksVector) {

0 commit comments

Comments
 (0)