From 943c09d9894eef7f0a6be134f07b70df306a0e74 Mon Sep 17 00:00:00 2001 From: Sandro Wenzel Date: Thu, 26 Nov 2026 17:54:32 +0100 Subject: [PATCH] Count afterburner matches in the MC TPC-normalised ITS-TPC matching QC This fixes a difference between the MC and data branches of MatchITSTPCQC. - The MC branch dropped every ITS-TPC match with an afterburner ITS track, also for the TPC-normalised efficiency. - The data branch drops them only for the ITS-normalised efficiency, so the MC TPC-normalised efficiency was biased low. - Afterburner matches now count for the TPC-normalised MC efficiency, as in data. https://its.cern.ch/jira/browse/O2-7375 Co-Authored-By: Claude Opus 5.5 --- Detectors/GLOQC/src/MatchITSTPCQC.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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});