Skip to content

Commit 73b5c4d

Browse files
authored
Add daughter particle handling for XicPlus and Xic0
1 parent 705ec57 commit 73b5c4d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

PWGHF/HFC/TableProducer/correlatorXicHadrons.cxx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,20 @@ struct HfCorrelatorXicHadrons {
15711571
listDaughters.clear();
15721572
const std::size_t nDaughtersExpected = IsXicPlus ? XicDecayDaughtersCount::XicPlusDaughtersCount : XicDecayDaughtersCount::Xic0DaughtersCount;
15731573

1574+
if (IsXicPlus) {
1575+
// Final state: p, pi-, pi-, pi+, pi+
1576+
std::array<int, XicDecayDaughtersCount::XicPlusDaughtersCount> const arrDaughXicPlusPDG = {kProton, kPiMinus, kPiMinus, kPiPlus, kPiPlus};
1577+
1578+
// Pass -1 to automatically traverse the entire cascade down to the final state
1579+
RecoDecay::getDaughters(particle, &listDaughters, arrDaughXicPlusPDG);
1580+
} else {
1581+
// Final state: p, pi-, pi-, pi+
1582+
std::array<int, XicDecayDaughtersCount::Xic0DaughtersCount> const arrDaughXic0PDG = {kProton, kPiMinus, kPiMinus, kPiPlus};
1583+
1584+
// Pass -1 to automatically traverse the entire cascade down to the final state
1585+
RecoDecay::getDaughters(particle, &listDaughters, arrDaughXic0PDG);
1586+
}
1587+
15741588
int counterDaughters = 0;
15751589
std::vector<int> prongsId(nDaughtersExpected);
15761590
if (listDaughters.size() == nDaughtersExpected) {

0 commit comments

Comments
 (0)