File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -569,7 +569,12 @@ struct HfTaskDstarToD0Pi {
569569 } else if (studyD0ToPiKPi0 && candDstarMcRec.isSelDstarToD0Pi () && (std::abs (candDstarMcRec.flagMcMatchRec ()) == hf_decay::hf_cand_dstar::DecayChannelMain::DstarToPiKPiPi0) && (std::abs (candDstarMcRec.flagMcMatchRecD0 ()) == hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiKPi0)) {
570570 // Aplly all selection to study D*->D0(piKpi0)pi channel same as signal channel
571571 // MC Matched but to D*->D0(piKpi0)pi channel
572- auto deltaMDstar = std::abs (candDstarMcRec.invMassDstar () - candDstarMcRec.invMassD0 ());
572+ double deltaMDstar = -999 .;
573+ if (candDstarMcRec.signSoftPi () < 0 ) {
574+ deltaMDstar = candDstarMcRec.invMassAntiDstar () - candDstarMcRec.invMassD0Bar ();
575+ } else {
576+ deltaMDstar = candDstarMcRec.invMassDstar () - candDstarMcRec.invMassD0 ();
577+ }
573578 if constexpr (ApplyMl) {
574579 auto bdtScore = candDstarMcRec.mlProbDstarToD0Pi ();
575580 // inclusive study
You can’t perform that action at this time.
0 commit comments