99// granted to it by virtue of its status as an Intergovernmental Organization
1010// or submit itself to any jurisdiction.
1111//
12- // / \file global-muon-matcher.cxx
12+ // / \file global-muon-matcher.cxx // o2-linter: disable=name/file-cpp,name/workflow-file
1313// / \brief Task for analysis MFT-MCH muon matching
1414// / \author Andrea Ferrero
1515// /
@@ -1238,7 +1238,7 @@ struct GlobalMuonMatching {
12381238 }
12391239
12401240 // set the number of match attempts for this track
1241- for (auto & mchTrackInfo : mMchTrackInfos ) {
1241+ for (auto & mchTrackInfo : mMchTrackInfos ) { // o2-linter: disable=const-ref-in-for-loop (object is modified in loop)
12421242 const auto & mchTrack = muonTracks.rawIteratorAt (mchTrackInfo.first );
12431243 mchTrackInfo.second .nMatchAttempts = getMftMchMatchAttempts (collisions, bcs, mchTrack, mftTracks);
12441244 }
@@ -1264,7 +1264,7 @@ struct GlobalMuonMatching {
12641264 }
12651265
12661266 // set the number of match attempts for this track
1267- for (auto & mchTrackInfo : mMchTrackInfos ) {
1267+ for (auto & mchTrackInfo : mMchTrackInfos ) { // o2-linter: disable=const-ref-in-for-loop (object is modified in loop)
12681268 mchTrackInfo.second .nMatchAttempts = mchTrackInfo.second .matchingCandidates .size ();
12691269 }
12701270 }
@@ -1293,7 +1293,7 @@ struct GlobalMuonMatching {
12931293 const float maxDeltaAttemptsRel = configEventMixing.cfgMaxDeltaAttempts .value ;
12941294 const float maxDeltaZ = configEventMixing.cfgMaxDeltaZ .value ;
12951295
1296- for (auto & [mchIndex1, mchTrackInfo1] : mMchTrackInfos ) {
1296+ for (auto & [mchIndex1, mchTrackInfo1] : mMchTrackInfos ) { // o2-linter: disable=const-ref-in-for-loop (object is modified in loop)
12971297 const auto & mchTrack1 = muonTracks.rawIteratorAt (mchIndex1);
12981298
12991299 if (!mchTrack1.has_collision ()) {
@@ -1358,7 +1358,7 @@ struct GlobalMuonMatching {
13581358 // add the candidates of MCH track #2 to the list of mixed candidates of track #1
13591359 mchTrackInfo1.mixedMatchingCandidates .push_back (mchTrackInfo2.matchingCandidates );
13601360 // update the muon track index of the mixed candidates to the index of track #1
1361- for (auto & candidate : mchTrackInfo1.mixedMatchingCandidates .back ()) {
1361+ for (auto & candidate : mchTrackInfo1.mixedMatchingCandidates .back ()) { // o2-linter: disable=const-ref-in-for-loop (object is modified in loop)
13621362 candidate.muonTrackId = mchIndex1;
13631363 }
13641364 }
0 commit comments