|
17 | 17 | #include "PWGHF/Core/CentralityEstimation.h" |
18 | 18 | #include "PWGHF/Core/HfMlResponseD0ToKPi.h" |
19 | 19 | #include "PWGHF/Core/HfMlResponseDstarToD0Pi.h" |
| 20 | +#include "PWGHF/Core/SelectorCuts.h" |
20 | 21 | #include "PWGHF/DataModel/CandidateReconstructionTables.h" |
21 | 22 | #include "PWGHF/DataModel/CandidateSelectionTables.h" |
22 | 23 | #include "PWGHF/Utils/utilsBfieldCCDB.h" |
@@ -68,12 +69,11 @@ struct HfProducerCharmHadronsCharmFemtoDream { |
68 | 69 | // Each species needs its own model, feature order and pT-dependent cuts. |
69 | 70 | struct HfMlConfig : ConfigurableGroup { |
70 | 71 | std::string prefix; |
71 | | - static inline const std::array<double, 3> defaultCuts{1., 0., 0.}; |
72 | 72 | Configurable<int> mlApplicationMode{"mlApplicationMode", FillMlFromSelector, "0: no ML, 1: selector scores, 2: new BDT after selector"}; |
73 | | - Configurable<std::vector<double>> binsPtMl{"binsPtMl", std::vector<double>{0., 36.}, "pT bin limits for new BDT"}; |
74 | | - Configurable<LabeledArray<double>> cutsMl{"cutsMl", {defaultCuts.data(), 1, 3}, "New BDT cuts per pT bin: background, prompt, nonprompt"}; |
75 | | - Configurable<std::vector<int>> cutDirMl{"cutDirMl", std::vector<int>{0, 1, 1}, "Reject scores above (0), below (1), or do not cut (2)"}; |
76 | | - Configurable<int> nClassesMl{"nClassesMl", 3, "Three output classes: background, prompt, nonprompt"}; |
| 73 | + Configurable<std::vector<double>> binsPtMl{"binsPtMl", std::vector<double>{hf_cuts_ml::vecBinsPt}, "pT bin limits for new BDT"}; |
| 74 | + 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::labelsDmesCutScore}, "New BDT cuts per pT bin: background, prompt, nonprompt"}; |
| 75 | + Configurable<std::vector<int>> cutDirMl{"cutDirMl", std::vector<int>{hf_cuts_ml::vecCutDir}, "Reject scores above (0), below (1), or do not cut (2)"}; |
| 76 | + Configurable<int> nClassesMl{"nClassesMl", static_cast<int>(hf_cuts_ml::NCutScores), "Three output classes: background, prompt, nonprompt"}; |
77 | 77 | Configurable<std::vector<std::string>> namesInputFeatures{"namesInputFeatures", std::vector<std::string>{}, "Ordered input feature names for new BDT"}; |
78 | 78 | Configurable<std::vector<std::string>> onnxFileNames{"onnxFileNames", std::vector<std::string>{}, "Model files, one per pT bin"}; |
79 | 79 | Configurable<std::vector<std::string>> modelPathsCCDB{"modelPathsCCDB", std::vector<std::string>{}, "CCDB model paths, one per pT bin"}; |
|
0 commit comments