Skip to content

Commit 24ddbd3

Browse files
sawenzelclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 9bdab2b commit 24ddbd3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎Detectors/GLOQC/src/MatchITSTPCQC.cxx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,9 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx)
594594
for (int itrk = 0; itrk < static_cast<int>(mITSTPCTracks.size()); ++itrk) {
595595
auto const& trk = mITSTPCTracks[itrk];
596596
auto idxTrkTpc = trk.getRefTPC().getIndex();
597-
if (trk.getRefITS().getSource() != GID::ITS) {
597+
// afterburner matches count for the TPC type only, as in the data branch
598+
const bool isAB = trk.getRefITS().getSource() == GID::ITSAB;
599+
if (trk.getRefITS().getSource() != GID::ITS && !isAB) {
598600
continue;
599601
}
600602
if (isTPCTrackSelectedEntry[idxTrkTpc]) {
@@ -615,6 +617,9 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx)
615617
}
616618
}
617619
}
620+
if (isAB) {
621+
continue;
622+
}
618623
auto idxTrkIts = trk.getRefITS().getIndex();
619624
if (isITSTrackSelectedEntry[idxTrkIts]) {
620625
auto lbl = mRecoCont.getTrackMCLabel({(unsigned int)(itrk), GID::Source::ITSTPC});

0 commit comments

Comments
 (0)