From 20603d2f01b5c895ffa6024532d4bd48cfff5c2f Mon Sep 17 00:00:00 2001 From: sawan Date: Mon, 27 Apr 2026 23:17:51 +0530 Subject: [PATCH 1/2] added K*0 particle --- PWGLF/Tasks/QC/mcParticlePrediction.cxx | 2 +- PWGLF/Utils/mcParticle.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/PWGLF/Tasks/QC/mcParticlePrediction.cxx b/PWGLF/Tasks/QC/mcParticlePrediction.cxx index 9688e0e5906..11ac33586be 100644 --- a/PWGLF/Tasks/QC/mcParticlePrediction.cxx +++ b/PWGLF/Tasks/QC/mcParticlePrediction.cxx @@ -57,7 +57,7 @@ using namespace o2::pwglf; // Particles static const std::vector parameterNames{"Enable"}; static constexpr int nParameters = 1; -static const int defaultParticles[PIDExtended::NIDsTot][nParameters]{{0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {1}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}}; +static const int defaultParticles[PIDExtended::NIDsTot][nParameters]{{0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {1}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}}; bool enabledParticlesArray[PIDExtended::NIDsTot]; // Estimators diff --git a/PWGLF/Utils/mcParticle.h b/PWGLF/Utils/mcParticle.h index ce6ff18989b..2056e3bce6f 100644 --- a/PWGLF/Utils/mcParticle.h +++ b/PWGLF/Utils/mcParticle.h @@ -130,7 +130,8 @@ class PIDExtended static constexpr ID XiCCPlusPlus = PIDCounts + 36; static constexpr ID XiCPlus = PIDCounts + 37; static constexpr ID XiC0 = PIDCounts + 38; - static constexpr ID NIDsTot = PIDCounts + 39; + static constexpr ID Kstar = PIDCounts + 39; + static constexpr ID NIDsTot = PIDCounts + 40; static constexpr const char* sNames[NIDsTot + 1] = { o2::track::pid_constants::sNames[Electron], // Electron @@ -191,6 +192,7 @@ class PIDExtended "XiCCPlusPlus", // XiCCPlusPlus "XiCPlus", // XiCPlus "XiC0", // XiC0 + "Kstar", // Kstar nullptr}; static std::vector arrayNames() @@ -325,6 +327,8 @@ class PIDExtended return XiCPlus; case o2::constants::physics::Pdg::kXiC0: return XiC0; + case o2::constants::physics::Pdg::kKstar: + return Kstar; default: LOG(debug) << "Cannot identify particle with PDG code " << particle.pdgCode(); break; From 589582ff8a0c810f68d854765fb4a1b2299bb69c Mon Sep 17 00:00:00 2001 From: sawan Date: Mon, 27 Apr 2026 23:55:34 +0530 Subject: [PATCH 2/2] corrected PDG name --- PWGLF/Utils/mcParticle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/Utils/mcParticle.h b/PWGLF/Utils/mcParticle.h index 2056e3bce6f..4f7690bc7e1 100644 --- a/PWGLF/Utils/mcParticle.h +++ b/PWGLF/Utils/mcParticle.h @@ -327,7 +327,7 @@ class PIDExtended return XiCPlus; case o2::constants::physics::Pdg::kXiC0: return XiC0; - case o2::constants::physics::Pdg::kKstar: + case o2::constants::physics::Pdg::kK0Star892: return Kstar; default: LOG(debug) << "Cannot identify particle with PDG code " << particle.pdgCode();