Skip to content

Commit 3ea8e55

Browse files
[PWGHF] Fix trigger daughter rejection logic in MCGen of the D0-hadron correlator (#16509)
1 parent c461cd2 commit 3ea8e55

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

PWGHF/HFC/TableProducer/correlatorD0Hadrons.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,14 @@ struct HfCorrelatorD0Hadrons {
966966
if (!particleAssoc.isPhysicalPrimary()) {
967967
continue;
968968
}
969+
970+
// Explicitly reject direct daughters of the current trigger D0/D0bar.
971+
auto const motherIdxD0 = RecoDecay::getMother(mcParticles, particleAssoc, Pdg::kD0, true, nullptr, 1);
972+
auto const motherIdxD0bar = RecoDecay::getMother(mcParticles, particleAssoc, -Pdg::kD0, true, nullptr, 1);
973+
if (motherIdxD0 == particleTrigg.globalIndex() || motherIdxD0bar == particleTrigg.globalIndex()) {
974+
continue;
975+
}
976+
969977
// ==============================soft pion removal================================
970978
registry.fill(HIST("hTrackCounter"), 1); // fill before soft pi removal
971979
// method used: indexMother = -1 by default if the mother doesn't match with given PID of the mother. We find mother of pion if it is D* and mother of D0 if it is D*. If they are both positive and they both match each other, then it is detected as a soft pion

0 commit comments

Comments
 (0)