diff --git a/Detectors/GLOQC/src/MatchITSTPCQC.cxx b/Detectors/GLOQC/src/MatchITSTPCQC.cxx index 724ba2c3da01e..e036c2937f3f3 100644 --- a/Detectors/GLOQC/src/MatchITSTPCQC.cxx +++ b/Detectors/GLOQC/src/MatchITSTPCQC.cxx @@ -594,7 +594,9 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx) for (int itrk = 0; itrk < static_cast(mITSTPCTracks.size()); ++itrk) { auto const& trk = mITSTPCTracks[itrk]; auto idxTrkTpc = trk.getRefTPC().getIndex(); - if (trk.getRefITS().getSource() != GID::ITS) { + // afterburner matches count for the TPC type only, as in the data branch + const bool isAB = trk.getRefITS().getSource() == GID::ITSAB; + if (trk.getRefITS().getSource() != GID::ITS && !isAB) { continue; } if (isTPCTrackSelectedEntry[idxTrkTpc]) { @@ -615,6 +617,9 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx) } } } + if (isAB) { + continue; + } auto idxTrkIts = trk.getRefITS().getIndex(); if (isITSTrackSelectedEntry[idxTrkIts]) { auto lbl = mRecoCont.getTrackMCLabel({(unsigned int)(itrk), GID::Source::ITSTPC});