Skip to content

Commit 5dfad57

Browse files
[PWGLF] small fixes (#16217)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent fe57351 commit 5dfad57

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

PWGLF/DataModel/LFSigmaTables.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ DECLARE_SOA_TABLE(Sigma0Cores, "AOD", "SIGMA0CORES",
195195
// KSTAR core info
196196
namespace kstarCore
197197
{
198+
DECLARE_SOA_COLUMN(PhotonV0ID, photonV0ID, int);
199+
DECLARE_SOA_COLUMN(KShortV0ID, kshortV0ID, int);
200+
198201
DECLARE_SOA_COLUMN(X, x, float);
199202
DECLARE_SOA_COLUMN(Y, y, float);
200203
DECLARE_SOA_COLUMN(Z, z, float);
@@ -312,6 +315,7 @@ DECLARE_SOA_DYNAMIC_COLUMN(KShortPhi, kshortPhi, //! Phi in the range [0, 2pi)
312315
} // namespace kstarCore
313316

314317
DECLARE_SOA_TABLE(KStarCores, "AOD", "KSTARCORES",
318+
kstarCore::PhotonV0ID, kstarCore::KShortV0ID,
315319
kstarCore::X, kstarCore::Y, kstarCore::Z, kstarCore::DCADaughters,
316320
kstarCore::PhotonPx, kstarCore::PhotonPy, kstarCore::PhotonPz, kstarCore::PhotonMass,
317321
kstarCore::KShortPx, kstarCore::KShortPy, kstarCore::KShortPz, kstarCore::KShortMass,
@@ -796,8 +800,8 @@ DECLARE_SOA_COLUMN(KShortPDGCode, kshortPDGCode, int);
796800
DECLARE_SOA_COLUMN(KShortPDGCodeMother, kshortPDGCodeMother, int);
797801
DECLARE_SOA_COLUMN(KShortIsCorrectlyAssoc, kshortIsCorrectlyAssoc, bool);
798802

799-
DECLARE_SOA_DYNAMIC_COLUMN(IsKStar, isKStar, //! IsSigma0
800-
[](int pdgCode) -> bool { return pdgCode == o2::constants::physics::Pdg::kK0Star892; }); // 313
803+
DECLARE_SOA_DYNAMIC_COLUMN(IsKStar, isKStar, //! IsSigma0
804+
[](int pdgCode) -> bool { return std::abs(pdgCode) == o2::constants::physics::Pdg::kK0Star892; }); // 313
801805

802806
DECLARE_SOA_DYNAMIC_COLUMN(MCPx, mcpx, //! Sigma0 px
803807
[](float photonMCPx, float kshortMCPx) -> float { return photonMCPx + kshortMCPx; });

PWGLF/TableProducer/Strangeness/sigma0builder.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,7 @@ struct sigma0builder {
25462546

25472547
auto kstarTopoInfo = propagateV0PairToDCA(gamma, kshort);
25482548

2549-
kstarcores(kstarTopoInfo.X, kstarTopoInfo.Y, kstarTopoInfo.Z, kstarTopoInfo.DCADau,
2549+
kstarcores(gamma.globalIndex(), kshort.globalIndex(), kstarTopoInfo.X, kstarTopoInfo.Y, kstarTopoInfo.Z, kstarTopoInfo.DCADau,
25502550
gamma.px(), gamma.py(), gamma.pz(), gamma.mGamma(), kshort.px(), kshort.py(), kshort.pz(), kshort.mK0Short());
25512551

25522552
// MC properties

0 commit comments

Comments
 (0)