diff --git a/Tutorials/ML/applyMlSelection.cxx b/Tutorials/ML/applyMlSelection.cxx index 4ca579acc44..aad14571c2d 100644 --- a/Tutorials/ML/applyMlSelection.cxx +++ b/Tutorials/ML/applyMlSelection.cxx @@ -15,14 +15,15 @@ /// /// \author Fabio Catalano , CERN +#include "PWGHF/Core/HfHelper.h" +#include "PWGHF/DataModel/CandidateReconstructionTables.h" + +#include "Tools/ML/MlResponse.h" + #include "Framework/AnalysisTask.h" #include "Framework/HistogramRegistry.h" #include "Framework/runDataProcessing.h" -#include "Tools/ML/MlResponse.h" -#include "PWGHF/Core/HfHelper.h" -#include "PWGHF/DataModel/CandidateReconstructionTables.h" - using namespace o2; using namespace o2::analysis; using namespace o2::framework; @@ -113,26 +114,12 @@ struct applyMlSelection { // Retrieve model output and selection outcome // Fill BDT score histograms before selection - registry.fill(HIST("hPromptScoreBeforeSel"), outputMl[0]); // Fill histograms for selected candidates - bool isSelectedMlPiKK = true; - if (isSelectedMlPiKK) { - registry.fill(HIST("hMassAfterSelVsPt"), hfHelper.invMassDsToPiKK(candidate), candidate.pt()); - registry.fill(HIST("hPromptScoreAfterSelVsPt"), outputMl[0], candidate.pt()); - } outputMl.clear(); // not necessary in this case but for good measure // Perform ML selections for other mass hypothesis (Ds -> PhiPi -> KKPi) - std::vector inputFeaturesKKPi{candidate.cpa(), - candidate.cpaXY(), - candidate.decayLength(), - candidate.decayLengthXY(), - static_cast(hfHelper.deltaMassPhiDsToKKPi(candidate)), - candidate.impactParameterXY(), - static_cast(hfHelper.cos3PiKDsToKKPi(candidate)), - candidate.maxNormalisedDeltaIP()}; // Retrieve model output and selection outcome