From 0de231b42b976b39a2ef416050d6764a338edbf2 Mon Sep 17 00:00:00 2001 From: YoshiniBailung Date: Fri, 30 Oct 2026 15:47:48 +0100 Subject: [PATCH] PWGDQ: qaMatching added UPC Mode --- PWGDQ/Tasks/qaMatching.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PWGDQ/Tasks/qaMatching.cxx b/PWGDQ/Tasks/qaMatching.cxx index 768cacc25da..f6685fd1dfa 100644 --- a/PWGDQ/Tasks/qaMatching.cxx +++ b/PWGDQ/Tasks/qaMatching.cxx @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -52,6 +53,7 @@ #include #include #include +#include #include #include @@ -102,6 +104,7 @@ DECLARE_SOA_COLUMN(MatchType, matchType, int8_t); DECLARE_SOA_COLUMN(MatchChi2, matchChi2, float); DECLARE_SOA_COLUMN(MatchScore, matchScore, float); DECLARE_SOA_COLUMN(MatchRanking, matchRanking, int32_t); +DECLARE_SOA_COLUMN(UPCMode, upcMode, bool); DECLARE_SOA_COLUMN(MftMultiplicity, mftMultiplicity, int32_t); DECLARE_SOA_COLUMN(TrackType, trackType, int8_t); DECLARE_SOA_COLUMN(MftMatchAttempts, mftMatchAttempts, int32_t); @@ -125,6 +128,7 @@ namespace o2::aod DECLARE_SOA_TABLE(QaMatchingEvents, "AOD", "QAMEVT", o2::soa::Index<>, qamatching::MftMultiplicity, + qamatching::UPCMode, qamatching::ColX, qamatching::ColY, qamatching::ColZ); @@ -198,7 +202,7 @@ namespace qamatching DECLARE_SOA_INDEX_COLUMN_FULL_CUSTOM(Candidate, candidate, int32_t, o2::aod::QaMatchingCandidates, "QAMCANDs", ""); } // namespace qamatching -using MyEvents = soa::Join; +using MyEvents = soa::Join; using MyMuons = soa::Join; using MyMuonsReAlign = soa::Join; using MyMuonsMC = soa::Join; @@ -3249,9 +3253,11 @@ struct QaMatching { int32_t reducedEventId, int& debugCounter) { + const bool upcMode = (collision.flags() & o2::dataformats::Vertex>::Flags::UPCMode) != 0; int32_t mftMultiplicity = static_cast(collisionInfo.mftTracks.size()); qaMatchingEvents( mftMultiplicity, + upcMode, static_cast(collision.posX()), static_cast(collision.posY()), static_cast(collision.posZ()));