From 564897b76ca8c9fd423f3f0a07337d632f72cdac Mon Sep 17 00:00:00 2001 From: hero-seo Date: Mon, 9 Nov 2026 19:16:26 +0900 Subject: [PATCH 1/3] fixed bug caused missing condition --- PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx b/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx index 73667ffe7b8..39875b7785a 100644 --- a/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx +++ b/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx @@ -1350,7 +1350,7 @@ struct HfCandidateCreatorXicToXiPiPiExpressions { // Check whether the charm baryon is non-prompt (from a b quark). if (flag != 0) { // fill inclusive generated Xic+ - registry.fill(HIST("hYPtGen"), particle.y(), particle.pt()); + if(fillMcHistograms) registry.fill(HIST("hYPtGen"), particle.y(), particle.pt()); origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers); // Calculate the decay length of the generated particle From 642b2551148503c91df6aedf1a2aa8c5eeb9325e Mon Sep 17 00:00:00 2001 From: hero-seo Date: Mon, 9 Nov 2026 19:51:34 +0900 Subject: [PATCH 2/3] fixed same bud in selector code --- PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx | 2 +- PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx b/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx index 39875b7785a..50c1973e277 100644 --- a/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx +++ b/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx @@ -1350,7 +1350,7 @@ struct HfCandidateCreatorXicToXiPiPiExpressions { // Check whether the charm baryon is non-prompt (from a b quark). if (flag != 0) { // fill inclusive generated Xic+ - if(fillMcHistograms) registry.fill(HIST("hYPtGen"), particle.y(), particle.pt()); + if (fillMcHistograms) registry.fill(HIST("hYPtGen"), particle.y(), particle.pt()); origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers); // Calculate the decay length of the generated particle diff --git a/PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx b/PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx index 2732191f859..ce96e89d50f 100644 --- a/PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx +++ b/PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx @@ -655,7 +655,7 @@ struct HfCandidateSelectorXicToXiPiPi { if constexpr (IsMc) { if (isMatchedSignal) { registry.fill(HIST("hSelCandidatesRecSig"), PidSelected); - registry.fill(HIST("hMassPtRecSig"), hfCandXic.invMassXicPlus(), hfCandXic.pt()); + if (fillQAHistograms) registry.fill(HIST("hMassPtRecSig"), hfCandXic.invMassXicPlus(), hfCandXic.pt()); } else { registry.fill(HIST("hSelCandidatesRecBkg"), PidSelected); } From 65b3571c3d92a028a116e74b4c6a44a593670cc2 Mon Sep 17 00:00:00 2001 From: hero-seo Date: Mon, 9 Nov 2026 20:03:04 +0900 Subject: [PATCH 3/3] apply clang-format --- PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx | 3 ++- PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx b/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx index 50c1973e277..3ad4779009a 100644 --- a/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx +++ b/PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx @@ -1350,7 +1350,8 @@ struct HfCandidateCreatorXicToXiPiPiExpressions { // Check whether the charm baryon is non-prompt (from a b quark). if (flag != 0) { // fill inclusive generated Xic+ - if (fillMcHistograms) registry.fill(HIST("hYPtGen"), particle.y(), particle.pt()); + if (fillMcHistograms) + registry.fill(HIST("hYPtGen"), particle.y(), particle.pt()); origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers); // Calculate the decay length of the generated particle diff --git a/PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx b/PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx index ce96e89d50f..a2cd6957b92 100644 --- a/PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx +++ b/PWGHF/TableProducer/candidateSelectorXicToXiPiPi.cxx @@ -655,7 +655,8 @@ struct HfCandidateSelectorXicToXiPiPi { if constexpr (IsMc) { if (isMatchedSignal) { registry.fill(HIST("hSelCandidatesRecSig"), PidSelected); - if (fillQAHistograms) registry.fill(HIST("hMassPtRecSig"), hfCandXic.invMassXicPlus(), hfCandXic.pt()); + if (fillQAHistograms) + registry.fill(HIST("hMassPtRecSig"), hfCandXic.invMassXicPlus(), hfCandXic.pt()); } else { registry.fill(HIST("hSelCandidatesRecBkg"), PidSelected); }