Skip to content

Commit 86d51de

Browse files
Update trackIndexSkimCreator.cxx
1 parent efb1a49 commit 86d51de

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,12 +1464,13 @@ struct HfTrackIndexSkimCreator {
14641464

14651465
if (config.applyMlForHfFilters) {
14661466
const std::vector<std::string> onnxFileNames2Prongs{config.onnxFileNames->get(0u, 0u)};
1467-
const std::array<std::vector<std::string>, kN3ProngDecays> onnxFileNames3Prongs{std::vector<std::string>{config.onnxFileNames->get(1u, 0u)}, std::vector<std::string>{config.onnxFileNames->get(2u, 0u)}, std::vector<std::string>{config.onnxFileNames->get(3u, 0u)}, std::vector<std::string>{config.onnxFileNames->get(4u, 0u)}};
1467+
// Exclude Cd from the 3-prong list, as it is not included in the pp trigger program
1468+
const std::array<std::vector<std::string>, kN3ProngDecays - 1> onnxFileNames3Prongs{std::vector<std::string>{config.onnxFileNames->get(1u, 0u)}, std::vector<std::string>{config.onnxFileNames->get(2u, 0u)}, std::vector<std::string>{config.onnxFileNames->get(3u, 0u)}, std::vector<std::string>{config.onnxFileNames->get(4u, 0u)}};
14681469
const std::vector<std::string> mlModelPathCcdb2Prongs{config.mlModelPathCCDB.value + "D0"};
1469-
const std::array<std::vector<std::string>, kN3ProngDecays> mlModelPathCcdb3Prongs{std::vector<std::string>{config.mlModelPathCCDB.value + "Dplus"}, std::vector<std::string>{config.mlModelPathCCDB.value + "Lc"}, std::vector<std::string>{config.mlModelPathCCDB.value + "Ds"}, std::vector<std::string>{config.mlModelPathCCDB.value + "Xic"}};
1470+
const std::array<std::vector<std::string>, kN3ProngDecays - 1> mlModelPathCcdb3Prongs{std::vector<std::string>{config.mlModelPathCCDB.value + "Dplus"}, std::vector<std::string>{config.mlModelPathCCDB.value + "Lc"}, std::vector<std::string>{config.mlModelPathCCDB.value + "Ds"}, std::vector<std::string>{config.mlModelPathCCDB.value + "Xic"}};
14701471
const std::vector<double> ptBinsMl{0., 1.e10};
14711472
const std::vector<int> cutDirMl{o2::cuts_ml::CutDirection::CutGreater, o2::cuts_ml::CutDirection::CutSmaller, o2::cuts_ml::CutDirection::CutSmaller};
1472-
const std::array<LabeledArray<double>, kN3ProngDecays> thresholdMlScore3Prongs{config.thresholdMlScoreDplusToPiKPi, config.thresholdMlScoreLcToPiKP, config.thresholdMlScoreDsToPiKK, config.thresholdMlScoreXicToPiKP};
1473+
const std::array<LabeledArray<double>, kN3ProngDecays - 1> thresholdMlScore3Prongs{config.thresholdMlScoreDplusToPiKPi, config.thresholdMlScoreLcToPiKP, config.thresholdMlScoreDsToPiKK, config.thresholdMlScoreXicToPiKP};
14731474

14741475
// initialise 2-prong ML response
14751476
hfMlResponse2Prongs.configure(ptBinsMl, config.thresholdMlScoreD0ToKPi, cutDirMl, 3);
@@ -1482,7 +1483,7 @@ struct HfTrackIndexSkimCreator {
14821483
hfMlResponse2Prongs.init();
14831484

14841485
// initialise 3-prong ML responses
1485-
for (int iDecay3P{0}; iDecay3P < kN3ProngDecays; ++iDecay3P) {
1486+
for (int iDecay3P{0}; iDecay3P < kN3ProngDecays - 1; ++iDecay3P) {
14861487
if (onnxFileNames3Prongs[iDecay3P][0].empty()) { // 3-prong species to be skipped
14871488
continue;
14881489
}

0 commit comments

Comments
 (0)