|
70 | 70 | #include <array> |
71 | 71 | #include <chrono> |
72 | 72 | #include <cmath> |
| 73 | +#include <cstddef> |
73 | 74 | #include <cstdint> |
74 | 75 | #include <numeric> |
75 | 76 | #include <string> |
@@ -207,7 +208,7 @@ struct HfProducerCharmHadronsTrackFemtoDream { |
207 | 208 | Configurable<int> applyMlMode{"applyMlMode", 1, "None: 0, BDT model from candidate selector: 1, New BDT model on Top of candidate selector: 2"}; |
208 | 209 | Configurable<std::vector<double>> binsPtMl{"binsPtMl", std::vector<double>{hf_cuts_ml::vecBinsPt}, "pT bin limits for ML application"}; |
209 | 210 | Configurable<std::vector<int>> cutDirMl{"cutDirMl", std::vector<int>{hf_cuts_ml::vecCutDir}, "Whether to reject score values greater or smaller than the threshold"}; |
210 | | - 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"}; |
| 211 | + Configurable<LabeledArray<double>> cutsMl{"cutsMl", {&hf_cuts_ml::Cuts[0][0], hf_cuts_ml::NBinsPt, hf_cuts_ml::NCutScores, hf_cuts_ml::labelsPt, hf_cuts_ml::labelsCutScore}, "ML selections per pT bin"}; |
211 | 212 | Configurable<int> nClassesMl{"nClassesMl", static_cast<int>(hf_cuts_ml::NCutScores), "Number of classes in ML model"}; |
212 | 213 | Configurable<std::vector<std::string>> namesInputFeatures{"namesInputFeatures", std::vector<std::string>{"feature1", "feature2"}, "Names of ML model input features"}; |
213 | 214 | } mlCfg; |
@@ -309,7 +310,7 @@ struct HfProducerCharmHadronsTrackFemtoDream { |
309 | 310 |
|
310 | 311 | // event QA histograms |
311 | 312 | constexpr int EventTypes = PairSelected + 1; |
312 | | - std::string labels[EventTypes]; |
| 313 | + std::array<std::string, EventTypes> labels; |
313 | 314 | labels[Event::All] = "All events"; |
314 | 315 | labels[Event::RejEveSel] = "rejected by event selection"; |
315 | 316 | labels[Event::RejNoTracksAndCharm] = "rejected by no tracks and charm"; |
|
0 commit comments