You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PID ML] Separate models for different momentum (#479)
* add separate models for different momentum
* Add array with momentum threshold values
* True -> true
* Fix error with list initialization
* chang <= to =
* change initialization method
// condition for sign: we want to work only with pi, p and K, without antiparticles
340
+
if (pid == particlesPdgCode[i] && track.sign() == 1) {
327
341
if (pdgCodeMC == particlesPdgCode[i]) {
328
342
fillPidHistos<i>(track, pdgCodeMC, true);
329
343
} else {
@@ -332,19 +346,27 @@ struct pidml {
332
346
}
333
347
}
334
348
335
-
PidONNXModel model211;
336
-
PidONNXModel model2212;
337
-
PidONNXModel model321;
349
+
// one model for one particle; Model with all TPC and TOF signal
350
+
PidONNXModel model211All;
351
+
PidONNXModel model2212All;
352
+
PidONNXModel model321All;
353
+
// Model with only TPC signal model
354
+
PidONNXModel model211TPC;
355
+
PidONNXModel model2212TPC;
356
+
PidONNXModel model321TPC;
338
357
339
-
Configurable<bool> cfgUseTOF{"useTOF", true, "Use ML model with TOF signal"};
340
358
Configurable<std::string> cfgModelDir{"model-dir", "http://alice-ccdb.cern.ch/Users/m/mkabus/pidml/onnx_models", "base path to the directory with ONNX models"};
341
359
Configurable<std::string> cfgScalingParamsFile{"scaling-params", "http://alice-ccdb.cern.ch/Users/m/mkabus/pidml/onnx_models/train_208_mc_with_beta_and_sigmas_scaling_params.json", "base path to the ccdb JSON file with scaling parameters from training"};
0 commit comments