diff --git a/PWGHF/D2H/Tasks/taskCd.cxx b/PWGHF/D2H/Tasks/taskCd.cxx index aecc64aeceb..9e46327cccc 100644 --- a/PWGHF/D2H/Tasks/taskCd.cxx +++ b/PWGHF/D2H/Tasks/taskCd.cxx @@ -913,10 +913,17 @@ struct HfTaskCd { registry.fill(HIST("Data/hNsigmaTOFKaVsP"), prong1.tpcInnerParam() * prong1.sign(), nSigmaTofKa); // Diagnostic categories only: preserve the existing selection predicates below. - enum TofStatus { NoMatch, Nonfinite, Missing, WithinCut, OutsideCut }; + enum TofStatus { NoMatch, + Nonfinite, + Missing, + WithinCut, + OutsideCut }; constexpr float MissingTofNSigma{-999.f}; const int hypothesis = isDeKPi ? 0 : 1; - const int tofStatus = !deuteronProng.hasTOF() ? NoMatch : !std::isfinite(nSigmaTofDe) ? Nonfinite : nSigmaTofDe <= MissingTofNSigma ? Missing : std::abs(nSigmaTofDe) <= cfgMaxDeuteronTofPidPreselection ? WithinCut : OutsideCut; + const int tofStatus = !deuteronProng.hasTOF() ? NoMatch : !std::isfinite(nSigmaTofDe) ? Nonfinite + : nSigmaTofDe <= MissingTofNSigma ? Missing + : std::abs(nSigmaTofDe) <= cfgMaxDeuteronTofPidPreselection ? WithinCut + : OutsideCut; registry.fill(HIST("Data/hDeuteronTofStatus"), tofStatus, hypothesis); registry.fill(HIST("Data/hTreeCutFlow"), 0, hypothesis); if (cfgUseTofPidForDeuteron && std::abs(nSigmaTofDe) > cfgMaxDeuteronTofPidPreselection) {