@@ -216,6 +216,7 @@ struct qaMatching {
216216 Configurable<int > fQaMatchingAodDebug {" cfgQaMatchingAodDebug" , 0 , " If >0, print AO2D filling debug (0=off, N=max collisions)" };
217217
218218 double mBzAtMftCenter {0 };
219+
219220 o2::globaltracking::MatchGlobalFwd mExtrap ;
220221
221222 using MatchingFunc_t = std::function<std::tuple<double , int >(const o2::dataformats::GlobalFwdTrack& mchtrack, const o2::track::TrackParCovFwd& mfttrack)>;
@@ -1709,8 +1710,6 @@ struct qaMatching {
17091710 return kMatchTypeUndefined ;
17101711
17111712 auto const & mchTrack = muonTrack.template matchMCHTrack_as <TMUONS>();
1712- auto const & mftTrack = muonTrack.template matchMFTTrack_as <TMFTS>();
1713-
17141713 bool isPaired = IsMatchableMCH (mchTrack.globalIndex (), matchablePairs);
17151714 bool isMuon = IsMuon (muonTrack, muonTracks, mftTracks);
17161715 int decayRanking = GetDecayRanking (mchTrack, mftTracks);
@@ -2121,7 +2120,7 @@ struct qaMatching {
21212120 // find the index of the matching candidate that corresponds to the true match
21222121 // index=1 corresponds to the leading candidate
21232122 // index=0 means no candidate was found that corresponds to the true match
2124- int trueMatchIndex = GetTrueMatchIndexTrackType (muonTracks, muonTracks, mftTracks, globalTracksVector, matchablePairs);
2123+ int trueMatchIndex= GetTrueMatchIndexTrackType (muonTracks, muonTracks, mftTracks, globalTracksVector, matchablePairs);
21252124 int trueMatchIndexProd = GetTrueMatchIndexTrackType (muonTracks, muonTracks, mftTracks, matchingCandidatesProd.at (mchIndex), matchablePairs);
21262125
21272126 float mcParticleDz = -1000 ;
@@ -2379,6 +2378,17 @@ struct qaMatching {
23792378 }
23802379 }
23812380
2381+ if (fQaMatchingAodDebug > 0 && goodMatchFound && isTrueMatch) {
2382+ LOGF (info,
2383+ " [good&true] mchId=%lld trackType=%d p=%.3f pt=%.3f eta=%.3f phi=%.3f" ,
2384+ static_cast <long long >(mchTrack.globalIndex ()),
2385+ static_cast <int >(mchTrack.trackType ()),
2386+ mchTrack.p (),
2387+ mchTrack.pt (),
2388+ mchTrack.eta (),
2389+ mchTrack.phi ());
2390+ }
2391+
23822392 // ---- MC ancestry ----
23832393 auto motherParticles = GetMotherParticles (mchTrack);
23842394 int motherPDG = 0 ;
@@ -2877,6 +2887,7 @@ struct qaMatching {
28772887 static_cast <int32_t >(candidate.matchRanking ));
28782888 }
28792889 }
2890+
28802891 }
28812892
28822893 template <class TCOLLISION >
0 commit comments