@@ -97,8 +97,6 @@ struct HfCandidateSelectorDstarToD0Pi {
9797 Configurable<LabeledArray<double >> cutsMl{" cutsMl" , {hf_cuts_ml::Cuts[0 ], hf_cuts_ml::NBinsPt, hf_cuts_ml::NCutScores, hf_cuts_ml::labelsPt, hf_cuts_ml::labelsCutScore}, " ML selections per pT bin" };
9898 Configurable<int > nClassesMl{" nClassesMl" , static_cast <int >(hf_cuts_ml::NCutScores), " Number of classes in ML model" };
9999 Configurable<std::vector<std::string>> namesInputFeatures{" namesInputFeatures" , std::vector<std::string>{" feature1" , " feature2" }, " Names of ML model input features" };
100- // ML inference D0
101- Configurable<bool > applyMlD0Daug{" applyMlD0Daug" , false , " Flag to apply ML selections on D0 daughter" };
102100
103101 // CCDB configuration
104102 Configurable<std::string> ccdbUrl{" ccdbUrl" , " http://alice-ccdb.cern.ch" , " url of the ccdb repository" };
@@ -149,14 +147,14 @@ struct HfCandidateSelectorDstarToD0Pi {
149147 registry.get <TH2>(HIST (" QA/hSelections" ))->GetXaxis ()->SetBinLabel (iBin + 1 , labels[iBin].data ());
150148 }
151149
152- if (applyMl || applyMlD0Daug ) {
150+ if (applyMl) {
153151 registry.add (" QA/hBdtScore1VsStatus" , " ;BDT score" , {HistType::kTH1F , {axisBdtScore}});
154152 registry.add (" QA/hBdtScore2VsStatus" , " ;BDT score" , {HistType::kTH1F , {axisBdtScore}});
155153 registry.add (" QA/hBdtScore3VsStatus" , " ;BDT score" , {HistType::kTH1F , {axisBdtScore}});
156154 }
157155 }
158156
159- if (applyMl || applyMlD0Daug ) {
157+ if (applyMl) {
160158 hfMlResponse.configure (binsPtMl, cutsMl, cutDirMl, nClassesMl);
161159 if (loadModelsFromCCDB) {
162160 ccdbApi.init (ccdbUrl);
@@ -368,7 +366,7 @@ struct HfCandidateSelectorDstarToD0Pi {
368366
369367 if (!TESTBIT (candDstar.hfflag (), aod::hf_cand_2prong::DecayType::D0ToPiK)) {
370368 hfSelDstarCandidate (statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
371- if (applyMl || applyMlD0Daug ) {
369+ if (applyMl) {
372370 hfMlDstarCandidate (outputMlDstarToD0Pi);
373371 }
374372 if (activateQA) {
@@ -384,7 +382,7 @@ struct HfCandidateSelectorDstarToD0Pi {
384382
385383 if (!selectionDstar (candDstar)) {
386384 hfSelDstarCandidate (statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
387- if (applyMl || applyMlD0Daug ) {
385+ if (applyMl) {
388386 hfMlDstarCandidate (outputMlDstarToD0Pi);
389387 }
390388 continue ;
@@ -397,7 +395,7 @@ struct HfCandidateSelectorDstarToD0Pi {
397395 bool topoDstar = selectionTopolConjugate (candDstar);
398396 if (!topoDstar) {
399397 hfSelDstarCandidate (statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
400- if (applyMl || applyMlD0Daug ) {
398+ if (applyMl) {
401399 hfMlDstarCandidate (outputMlDstarToD0Pi);
402400 }
403401 continue ;
@@ -445,7 +443,7 @@ struct HfCandidateSelectorDstarToD0Pi {
445443
446444 if (pidDstar == 0 ) {
447445 hfSelDstarCandidate (statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
448- if (applyMl || applyMlD0Daug ) {
446+ if (applyMl) {
449447 hfMlDstarCandidate (outputMlDstarToD0Pi);
450448 }
451449 continue ;
@@ -460,16 +458,10 @@ struct HfCandidateSelectorDstarToD0Pi {
460458 }
461459 statusPID = true ;
462460
463- if (applyMl || applyMlD0Daug ) {
461+ if (applyMl) {
464462 // ML selections
465463 bool isSelectedMlDstar = false ;
466-
467- std::vector<float > inputFeatures{};
468- if (applyMlD0Daug) {
469- inputFeatures = hfMlResponse.getInputFeaturesTrigger (candDstar);
470- } else {
471- inputFeatures = hfMlResponse.getInputFeatures (candDstar);
472- }
464+ std::vector<float > inputFeatures = hfMlResponse.getInputFeatures (candDstar);
473465 isSelectedMlDstar = hfMlResponse.isSelectedMl (inputFeatures, ptCand, outputMlDstarToD0Pi);
474466
475467 hfMlDstarCandidate (outputMlDstarToD0Pi);
0 commit comments