From a297181d7d207c32d7c16757538e6341b87cd5b6 Mon Sep 17 00:00:00 2001 From: Ravindra Singh <56298081+singhra1994@users.noreply.github.com> Date: Sat, 11 Jul 2026 18:08:51 +0200 Subject: [PATCH 1/5] Add new McRec V0 Lambda candidate histograms --- PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx b/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx index 0b1f7bf87ba..f77a3ad1ba3 100644 --- a/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx +++ b/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx @@ -530,6 +530,8 @@ struct HfCorrelatorLcScHadrons { registry.add("hV0LambdaMcRec", "McRec V0 Lambda candidates;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}", {HistType::kTH3F, {{axisMassV0}, {axisPtV0}, {axisPtHadron}}}); registry.add("hV0LambdaReflMcRec", "McRec V0 Lambda reflected candidates;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}", {HistType::kTH3F, {{axisMassV0}, {axisPtV0}, {axisPtHadron}}}); registry.add("hV0LambdaPiKRejMcRec", "McRec V0 Lambda candidates with #pi K rejection;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}", {HistType::kTH3F, {{axisMassV0}, {axisPtV0}, {axisPtHadron}}}); + registry.add("hV0PrimLambdaMcRec", "McRec V0 Lambda candidates;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}", {HistType::kTH3F, {{axisMassV0}, {axisPtV0}, {axisPtHadron}}}); + registry.add("hV0PrimLambdaReflMcRec", "McRec V0 Lambda reflected candidates;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}", {HistType::kTH3F, {{axisMassV0}, {axisPtV0}, {axisPtHadron}}}); registry.add("hV0LambdaReflPiKRejMcRec", "McRec V0 Lambda reflected candidates with #pi K rejection;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}", {HistType::kTH3F, {{axisMassV0}, {axisPtV0}, {axisPtHadron}}}); registry.add("hV0PtPrimLambdaMcGen", "Mcgen V0 Lambda candidates;GeV/#it{c}", {HistType::kTH1F, {{axisPtV0}}}); From 5c1c0faaa6f91c7c26ab583a4fdcb3781e16ca9e Mon Sep 17 00:00:00 2001 From: Ravindra Singh <56298081+singhra1994@users.noreply.github.com> Date: Sat, 11 Jul 2026 21:56:02 +0200 Subject: [PATCH 2/5] Update function signatures for const correctness --- PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx b/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx index f77a3ad1ba3..1c46d83aad0 100644 --- a/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx +++ b/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx @@ -195,7 +195,7 @@ struct HfCorrelatorLcScHadronsSelection { } template - bool eventSelV0(TCollision collision) + bool eventSelV0(TCollision const& collision) { if (!collision.sel8()) { return 0; @@ -597,7 +597,7 @@ struct HfCorrelatorLcScHadrons { } template - bool isSelectedV0Daughter(Tracktype const& track, V0Type v0, int pid) + bool isSelectedV0Daughter(Tracktype const& track, V0Type const& v0, int pid) { if (std::abs(track.eta()) > cfgCharmCand.etaTrackMax) { return false; @@ -1153,8 +1153,9 @@ struct HfCorrelatorLcScHadrons { entryLcHadronInvMass(massCandHadron, ptCombined); entryPairCandCharge(signCand); if constexpr (LambdaPart == 0) { - if (trkPidFill) + if (trkPidFill) { entryCandHadronPairTrkPID(assoc.tpcNSigmaPr(), assoc.tpcNSigmaKa(), assoc.tpcNSigmaPi(), assoc.tofNSigmaPr(), assoc.tofNSigmaKa(), assoc.tofNSigmaPi()); + } } if constexpr (IsMcRec) { if (assoc.has_mcParticle()) { @@ -1853,8 +1854,8 @@ struct HfCorrelatorLcScHadrons { if (cfgCharmCand.pidTrkApplied && (std::abs(particleAssoc.pdgCode()) != kProton)) { continue; // proton PID } - int8_t const chargeLc = pdg->GetParticle(candidate.pdgCode())->Charge(); // Retrieve charge - int8_t const chargeAssoc = pdg->GetParticle(particleAssoc.pdgCode())->Charge(); // Retrieve charge + int8_t const chargeLc = static_castpdg->GetParticle(candidate.pdgCode())->Charge(); // Retrieve charge + int8_t const chargeAssoc = static_castpdg->GetParticle(particleAssoc.pdgCode())->Charge(); // Retrieve charge float cent = 100.0; // will be updated later int trackOrigin = RecoDecay::getCharmHadronOrigin(mcParticles, particleAssoc, true); From b6d06f7a5fd66f47b87838e6f929b513bd01f5ef Mon Sep 17 00:00:00 2001 From: ALICE Builder Date: Sat, 11 Jul 2026 21:58:18 +0200 Subject: [PATCH 3/5] Please consider the following formatting changes to #17023 (#17024) --- PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx b/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx index 1c46d83aad0..5acd6da563d 100644 --- a/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx +++ b/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx @@ -1854,8 +1854,8 @@ struct HfCorrelatorLcScHadrons { if (cfgCharmCand.pidTrkApplied && (std::abs(particleAssoc.pdgCode()) != kProton)) { continue; // proton PID } - int8_t const chargeLc = static_castpdg->GetParticle(candidate.pdgCode())->Charge(); // Retrieve charge - int8_t const chargeAssoc = static_castpdg->GetParticle(particleAssoc.pdgCode())->Charge(); // Retrieve charge + int8_t const chargeLc = static_cast pdg->GetParticle(candidate.pdgCode())->Charge(); // Retrieve charge + int8_t const chargeAssoc = static_cast pdg->GetParticle(particleAssoc.pdgCode())->Charge(); // Retrieve charge float cent = 100.0; // will be updated later int trackOrigin = RecoDecay::getCharmHadronOrigin(mcParticles, particleAssoc, true); From fd54759564a95d57ae35e807c9d0ebe057c7a34c Mon Sep 17 00:00:00 2001 From: Ravindra Singh <56298081+singhra1994@users.noreply.github.com> Date: Sat, 11 Jul 2026 22:11:00 +0200 Subject: [PATCH 4/5] Fix formatting of charge retrieval in correlatorLcScHadrons --- PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx b/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx index 5acd6da563d..ac13b438823 100644 --- a/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx +++ b/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx @@ -1854,8 +1854,8 @@ struct HfCorrelatorLcScHadrons { if (cfgCharmCand.pidTrkApplied && (std::abs(particleAssoc.pdgCode()) != kProton)) { continue; // proton PID } - int8_t const chargeLc = static_cast pdg->GetParticle(candidate.pdgCode())->Charge(); // Retrieve charge - int8_t const chargeAssoc = static_cast pdg->GetParticle(particleAssoc.pdgCode())->Charge(); // Retrieve charge + int8_t const chargeLc = static_cast (pdg->GetParticle(candidate.pdgCode())->Charge()); // Retrieve charge + int8_t const chargeAssoc = static_cast (pdg->GetParticle(particleAssoc.pdgCode())->Charge()); // Retrieve charge float cent = 100.0; // will be updated later int trackOrigin = RecoDecay::getCharmHadronOrigin(mcParticles, particleAssoc, true); From 0f18d8a845c8c424503949086a0241f25e1138e9 Mon Sep 17 00:00:00 2001 From: ALICE Builder Date: Sat, 11 Jul 2026 22:13:01 +0200 Subject: [PATCH 5/5] Please consider the following formatting changes to #17023 (#17025) --- PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx b/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx index ac13b438823..9ae005e732d 100644 --- a/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx +++ b/PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx @@ -1854,8 +1854,8 @@ struct HfCorrelatorLcScHadrons { if (cfgCharmCand.pidTrkApplied && (std::abs(particleAssoc.pdgCode()) != kProton)) { continue; // proton PID } - int8_t const chargeLc = static_cast (pdg->GetParticle(candidate.pdgCode())->Charge()); // Retrieve charge - int8_t const chargeAssoc = static_cast (pdg->GetParticle(particleAssoc.pdgCode())->Charge()); // Retrieve charge + int8_t const chargeLc = static_cast(pdg->GetParticle(candidate.pdgCode())->Charge()); // Retrieve charge + int8_t const chargeAssoc = static_cast(pdg->GetParticle(particleAssoc.pdgCode())->Charge()); // Retrieve charge float cent = 100.0; // will be updated later int trackOrigin = RecoDecay::getCharmHadronOrigin(mcParticles, particleAssoc, true);