Skip to content

Commit 330b607

Browse files
authored
Update candidateSelectorXic0ToXiPiKf.cxx
1 parent 1fe7645 commit 330b607

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

PWGHF/TableProducer/candidateSelectorXic0ToXiPiKf.cxx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ struct HfCandidateSelectorXic0ToXiPiKf {
133133

134134
// CCDB configuration
135135
Configurable<std::string> ccdbUrl{"ccdbUrl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
136-
Configurable<std::vector<std::string>> modelPathsCCDB{"modelPathsCCDB", std::vector<std::string>{"EventFiltering/PWGHF/BDTXic"}, "Paths of models on CCDB"};
137-
Configurable<std::vector<std::string>> onnxFileNames{"onnxFileNames", std::vector<std::string>{"ModelHandler_onnx_XicToXipikf.onnx"}, "ONNX file names for each pT bin (if not from CCDB full path)"};
136+
Configurable<std::vector<std::string>> modelPathsCCDB{"modelPathsCCDB", std::vector<std::string>{"EventFiltering/PWGHF/BDTXic0"}, "Paths of models on CCDB"};
137+
Configurable<std::vector<std::string>> onnxFileNames{"onnxFileNames", std::vector<std::string>{"ModelHandler_onnx_Xic0ToXipikf.onnx"}, "ONNX file names for each pT bin (if not from CCDB full path)"};
138138
Configurable<int64_t> timestampCCDB{"timestampCCDB", -1, "timestamp of the ONNX file for ML model used to query in CCDB"};
139139
Configurable<bool> loadModelsFromCCDB{"loadModelsFromCCDB", false, "Flag to enable or disable the loading of models from CCDB"};
140140

141-
o2::analysis::HfMlResponseXicToXiPikf<float> hfMlResponse;
142-
std::vector<float> outputMlXicToXiPi = {};
141+
o2::analysis::HfMlResponseXic0ToXiPikf<float> hfMlResponse;
142+
std::vector<float> outputMlXic0ToXiPi = {};
143143
o2::ccdb::CcdbApi ccdbApi;
144144

145145
TrackSelectorPr selectorProton;
@@ -545,14 +545,15 @@ struct HfCandidateSelectorXic0ToXiPiKf {
545545

546546
// ML selections
547547
if (applyMl) {
548-
bool isSelectedMlXic = false;
549-
std::vector<float> inputFeaturesXic = hfMlResponse.getInputFeatures(candidate, trackPiFromLam, trackPiFromCasc, trackPiFromCharm);
550-
isSelectedMlXic = hfMlResponse.isSelectedMl(inputFeaturesXic, ptCand, outputMlXicToXiPi);
551-
hfMlToXiPi(outputMlXicToXiPi);
552-
553-
if (!isSelectedMlXic) {
548+
bool isSelectedMlXic0 = false;
549+
std::vector<float> inputFeaturesXic0 = hfMlResponse.getInputFeatures(candidate, trackPiFromLam, trackPiFromCasc, trackPiFromCharm);
550+
isSelectedMlXic0 = hfMlResponse.isSelectedMl(inputFeaturesXic0, ptCand, outputMlXic0ToXiPi);
551+
552+
if (!isSelectedMlXic0) {
554553
continue;
555554
}
555+
556+
hfMlToXiPi(outputMlXic0ToXiPi);
556557
}
557558

558559
hfSelToXiPi(statusPidCharmBaryon, statusPidCascade, statusPidLambda, statusInvMassCharmBaryon, statusInvMassCascade, statusInvMassLambda, resultSelections, infoTpcStored, infoTofStored,

0 commit comments

Comments
 (0)