Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ struct HfCandidateSigmac0plusplusMc {
if (std::abs(daughter.pdgCode()) != Pdg::kLambdaCPlus)
continue;
// if (std::abs(daughter.flagMcMatchGen()) == (1 << aod::hf_cand_3prong::DecayType::LcToPKPi)) {
if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kLambdaCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2)) {
if (RecoDecay::isMatchedMCGen(mcParticles, daughter, Pdg::kLambdaCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2)) {
/// Λc+ daughter decaying in pK-π+ found!
flag = sign * (1 << aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi);
break;
Expand All @@ -529,7 +529,7 @@ struct HfCandidateSigmac0plusplusMc {
if (std::abs(daughter.pdgCode()) != Pdg::kLambdaCPlus)
continue;
// if (std::abs(daughter.flagMcMatchGen()) == (1 << aod::hf_cand_3prong::DecayType::LcToPKPi)) {
if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kLambdaCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2)) {
if (RecoDecay::isMatchedMCGen(mcParticles, daughter, Pdg::kLambdaCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2)) {
/// Λc+ daughter decaying in pK-π+ found!
flag = sign * (1 << aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi);
break;
Expand All @@ -539,7 +539,6 @@ struct HfCandidateSigmac0plusplusMc {

/// check the origin (prompt vs. non-prompt)
if (flag != 0) {
auto particle = mcParticles.rawIteratorAt(indexRec);
origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did this not cause a redefinition error before?!

}
/// fill the table with results of generation level MC matching
Expand Down