Skip to content

Commit 5795b0e

Browse files
committed
Fix MC flagging for c-deuteron
1 parent f368dad commit 5795b0e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,9 @@ struct HfCandidateCreator3ProngExpressions {
13581358
auto bHadMother = mcParticles.rawIteratorAt(idxBhadMothers[0]);
13591359
rowMcMatchRec(flagChannelMain, origin, swapping, flagChannelResonant, bHadMother.pt(), bHadMother.pdgCode(), nKinkedTracks, nInteractionsWithMaterial);
13601360
} else {
1361+
if (std::abs(flagChannelMain) == DecayChannelMain::CDeuteronToDeKPi) {
1362+
origin == RecoDecay::OriginType::Prompt;
1363+
}
13611364
rowMcMatchRec(flagChannelMain, origin, swapping, flagChannelResonant, -1.f, 0, nKinkedTracks, nInteractionsWithMaterial);
13621365
}
13631366
}

PWGHF/Utils/utilsMcMatching.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ inline void flipPdgSign(const int pdgMother, const int pdgToFlip, std::array<int
338338
template <typename Part>
339339
inline int getResonantDecayCDeuteron(Part const& particle)
340340
{
341-
auto statusCode = std::abs(particle.getGenStatusCode());
341+
auto statusCode = particle.getGenStatusCode();
342342
if (statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToDeKstar0[0] || statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToDeKstar0[1]) {
343343
return o2::hf_decay::hf_cand_3prong::DecayChannelResonant::CDeuteronToDeKstar0;
344344
}

0 commit comments

Comments
 (0)