@@ -565,35 +565,35 @@ struct HfTaskDstarToD0Pi {
565565 }
566566 }
567567 }
568- } else if (studyD0ToPiKPi0 && (std::abs (candDstarMcRec.flagMcMatchRec ()) == hf_decay::hf_cand_dstar::DecayChannelMain::DstarToPiKPiPi0) && (std::abs (candDstarMcRec.flagMcMatchRecD0 ()) == hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiKPi0)) {
568+ } 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)) {
569569 // Aplly all selection to study D*->D0(piKpi0)pi channel same as signal channel
570570 // MC Matched but to D*->D0(piKpi0)pi channel
571571 auto deltaMDstar = std::abs (candDstarMcRec.invMassDstar () - candDstarMcRec.invMassD0 ());
572572 if constexpr (ApplyMl) {
573573 auto bdtScore = candDstarMcRec.mlProbDstarToD0Pi ();
574574 // inclusive study
575- if (isCentStudy && candDstarMcRec. isSelDstarToD0Pi () ) {
575+ if (isCentStudy) {
576576 registry.fill (HIST (" D0ToPiKPi0/hDeltaInvMassVsPtVsCentVsBDTScore" ), deltaMDstar, candDstarMcRec.pt (), centrality, bdtScore[0 ], bdtScore[1 ], bdtScore[2 ]);
577- } else if (!isCentStudy && candDstarMcRec. isSelDstarToD0Pi ()) {
577+ } else {
578578 registry.fill (HIST (" D0ToPiKPi0/hDeltaInvMassVsPtVsBDTScore" ), deltaMDstar, candDstarMcRec.pt (), bdtScore[0 ], bdtScore[1 ], bdtScore[2 ]);
579579 }
580580 // differential (prompt/Non-prompt) study
581- if (candDstarMcRec.isSelDstarToD0Pi () && (candDstarMcRec. originMcRec () == RecoDecay::OriginType::Prompt) ) {
581+ if (candDstarMcRec.originMcRec () == RecoDecay::OriginType::Prompt) {
582582 registry.fill (HIST (" D0ToPiKPi0/hPromptDeltaInvMassVsPtVsBDTScore" ), deltaMDstar, candDstarMcRec.pt (), bdtScore[0 ], bdtScore[1 ], bdtScore[2 ]);
583- } else if (candDstarMcRec.isSelDstarToD0Pi () && (candDstarMcRec. originMcRec () == RecoDecay::OriginType::NonPrompt) ) {
583+ } else if (candDstarMcRec.originMcRec () == RecoDecay::OriginType::NonPrompt) {
584584 registry.fill (HIST (" D0ToPiKPi0/hNonPromptDeltaInvMassVsPtVsBDTScore" ), deltaMDstar, candDstarMcRec.pt (), bdtScore[0 ], bdtScore[1 ], bdtScore[2 ]);
585585 }
586- } else {
586+ } else { // without ML
587587 // inclusive study
588- if (isCentStudy && candDstarMcRec. isSelDstarToD0Pi () ) {
588+ if (isCentStudy) {
589589 registry.fill (HIST (" D0ToPiKPi0/hDeltaInvMassDstar3D" ), deltaMDstar, candDstarMcRec.pt (), centrality);
590- } else if (!isCentStudy && candDstarMcRec. isSelDstarToD0Pi ()) {
590+ } else {
591591 registry.fill (HIST (" D0ToPiKPi0/hDeltaInvMassDstar2D" ), deltaMDstar, candDstarMcRec.pt ());
592592 }
593593 // differential (prompt/Non-prompt) study
594- if (candDstarMcRec.isSelDstarToD0Pi () && (candDstarMcRec. originMcRec () == RecoDecay::OriginType::Prompt) ) {
594+ if (candDstarMcRec.originMcRec () == RecoDecay::OriginType::Prompt) {
595595 registry.fill (HIST (" D0ToPiKPi0/hPromptDeltaInvMassDstar2D" ), deltaMDstar, candDstarMcRec.pt ());
596- } else if (candDstarMcRec.isSelDstarToD0Pi () && (candDstarMcRec. originMcRec () == RecoDecay::OriginType::NonPrompt) ) {
596+ } else if (candDstarMcRec.originMcRec () == RecoDecay::OriginType::NonPrompt) {
597597 registry.fill (HIST (" D0ToPiKPi0/hNonPromptDeltaInvMassDstar2D" ), deltaMDstar, candDstarMcRec.pt ());
598598 }
599599 }
0 commit comments