Skip to content

Commit 1c1a790

Browse files
authored
[PWGHF] Fix sign selection and units for c-deuteron ct (#16832)
1 parent 0f3e933 commit 1c1a790

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PWGHF/D2H/Tasks/taskCd.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ struct HfTaskCd {
500500

501501
float ctGen{-1.f}, ptGen{-1.f};
502502
int pdgCodeProng0{0};
503-
if (candidate.flagMcMatchRec() == hf_decay::hf_cand_3prong::DecayChannelMain::CDeuteronToDeKPi) {
503+
if (std::abs(candidate.flagMcMatchRec()) == hf_decay::hf_cand_3prong::DecayChannelMain::CDeuteronToDeKPi) {
504504
const auto& mcParticleProng0 = candidate.template prong0_as<HFTracksMc>().template mcParticle_as<CandCdMcGen>();
505505
pdgCodeProng0 = std::abs(mcParticleProng0.pdgCode());
506506
const auto indexMother = RecoDecay::getMother(mcParticles, mcParticleProng0, o2::constants::physics::Pdg::kCDeuteron, true);
@@ -591,7 +591,7 @@ struct HfTaskCd {
591591
nSigmaTpcPr,
592592
nSigmaItsDe,
593593
nSigmaTofDe,
594-
candidate.ct(o2::constants::physics::MassCDeuteron),
594+
candidate.ct(o2::constants::physics::MassCDeuteron) * cmToMum,
595595
candFlag,
596596
candSign,
597597
candidate.flagMcMatchRec(),
@@ -626,7 +626,7 @@ struct HfTaskCd {
626626
nSigmaTofPi,
627627
nSigmaTpcKa,
628628
nSigmaTofKa,
629-
candidate.ct(o2::constants::physics::MassCDeuteron),
629+
candidate.ct(o2::constants::physics::MassCDeuteron) * cmToMum,
630630
candFlag,
631631
candSign,
632632
candidate.flagMcMatchRec(),

0 commit comments

Comments
 (0)