From 88cc76b141b7e4d7071c0aaa719933e98e5b9e87 Mon Sep 17 00:00:00 2001 From: oussama3030 Date: Tue, 12 May 2026 14:13:42 +0200 Subject: [PATCH 1/2] additional tables for mixed events and a small fix --- PWGLF/DataModel/LFSigmaTables.h | 6 +++++- PWGLF/TableProducer/Strangeness/sigma0builder.cxx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/PWGLF/DataModel/LFSigmaTables.h b/PWGLF/DataModel/LFSigmaTables.h index 56140e5fdfd..691a99d7f9f 100644 --- a/PWGLF/DataModel/LFSigmaTables.h +++ b/PWGLF/DataModel/LFSigmaTables.h @@ -195,6 +195,9 @@ DECLARE_SOA_TABLE(Sigma0Cores, "AOD", "SIGMA0CORES", // KSTAR core info namespace kstarCore { +DECLARE_SOA_COLUMN(PhotonV0ID, photonV0ID, int); +DECLARE_SOA_COLUMN(KShortV0ID, kshortV0ID, int); + DECLARE_SOA_COLUMN(X, x, float); DECLARE_SOA_COLUMN(Y, y, float); DECLARE_SOA_COLUMN(Z, z, float); @@ -312,6 +315,7 @@ DECLARE_SOA_DYNAMIC_COLUMN(KShortPhi, kshortPhi, //! Phi in the range [0, 2pi) } // namespace kstarCore DECLARE_SOA_TABLE(KStarCores, "AOD", "KSTARCORES", + kstarCore::PhotonV0ID, kstarCore::KShortV0ID, kstarCore::X, kstarCore::Y, kstarCore::Z, kstarCore::DCADaughters, kstarCore::PhotonPx, kstarCore::PhotonPy, kstarCore::PhotonPz, kstarCore::PhotonMass, kstarCore::KShortPx, kstarCore::KShortPy, kstarCore::KShortPz, kstarCore::KShortMass, @@ -797,7 +801,7 @@ DECLARE_SOA_COLUMN(KShortPDGCodeMother, kshortPDGCodeMother, int); DECLARE_SOA_COLUMN(KShortIsCorrectlyAssoc, kshortIsCorrectlyAssoc, bool); DECLARE_SOA_DYNAMIC_COLUMN(IsKStar, isKStar, //! IsSigma0 - [](int pdgCode) -> bool { return pdgCode == o2::constants::physics::Pdg::kK0Star892; }); // 313 + [](int pdgCode) -> bool { return std::abs(pdgCode) == o2::constants::physics::Pdg::kK0Star892; }); // 313 DECLARE_SOA_DYNAMIC_COLUMN(MCPx, mcpx, //! Sigma0 px [](float photonMCPx, float kshortMCPx) -> float { return photonMCPx + kshortMCPx; }); diff --git a/PWGLF/TableProducer/Strangeness/sigma0builder.cxx b/PWGLF/TableProducer/Strangeness/sigma0builder.cxx index a9aa9520624..3888e00f8e5 100644 --- a/PWGLF/TableProducer/Strangeness/sigma0builder.cxx +++ b/PWGLF/TableProducer/Strangeness/sigma0builder.cxx @@ -2546,7 +2546,7 @@ struct sigma0builder { auto kstarTopoInfo = propagateV0PairToDCA(gamma, kshort); - kstarcores(kstarTopoInfo.X, kstarTopoInfo.Y, kstarTopoInfo.Z, kstarTopoInfo.DCADau, + kstarcores(gamma.globalIndex(), kshort.globalIndex(), kstarTopoInfo.X, kstarTopoInfo.Y, kstarTopoInfo.Z, kstarTopoInfo.DCADau, gamma.px(), gamma.py(), gamma.pz(), gamma.mGamma(), kshort.px(), kshort.py(), kshort.pz(), kshort.mK0Short()); // MC properties From 0a2e6f2197a2094bd749a84a0943321ef697ca03 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Tue, 12 May 2026 12:16:09 +0000 Subject: [PATCH 2/2] Please consider the following formatting changes --- PWGLF/DataModel/LFSigmaTables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/DataModel/LFSigmaTables.h b/PWGLF/DataModel/LFSigmaTables.h index 691a99d7f9f..69ff56bcc5f 100644 --- a/PWGLF/DataModel/LFSigmaTables.h +++ b/PWGLF/DataModel/LFSigmaTables.h @@ -800,7 +800,7 @@ DECLARE_SOA_COLUMN(KShortPDGCode, kshortPDGCode, int); DECLARE_SOA_COLUMN(KShortPDGCodeMother, kshortPDGCodeMother, int); DECLARE_SOA_COLUMN(KShortIsCorrectlyAssoc, kshortIsCorrectlyAssoc, bool); -DECLARE_SOA_DYNAMIC_COLUMN(IsKStar, isKStar, //! IsSigma0 +DECLARE_SOA_DYNAMIC_COLUMN(IsKStar, isKStar, //! IsSigma0 [](int pdgCode) -> bool { return std::abs(pdgCode) == o2::constants::physics::Pdg::kK0Star892; }); // 313 DECLARE_SOA_DYNAMIC_COLUMN(MCPx, mcpx, //! Sigma0 px