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()));