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
// Defining a configurable object group for the event selections:
144
144
struct : ConfigurableGroup {
@@ -189,6 +189,8 @@ struct lambdaInvMassTest{
189
189
Configurable<bool> useSPDTrackletsCent{"useSPDTrackletsCent", false, "Use SPD tracklets for estimating centrality? If not, use V0M-based centrality (Run 2 only)"};
Configurable<bool> cfgCheckZDC{"cfgCheckZDC", false, "Include ZDC flags in the bit selection (for Pb-Pb only)"};
253
+
Configurable<bool> cfgTreatLimitedAcceptanceAsBad{"cfgTreatLimitedAcceptanceAsBad", false, "reject all events where the detectors relevant for the specified Runlist are flagged as LimitedAcceptance"};
// Machine learning evaluation for pre-selection and corresponding information generation
259
+
o2::ml::OnnxModel mlCustomModelK0Short;
246
260
o2::ml::OnnxModel mlCustomModelLambda;
247
261
o2::ml::OnnxModel mlCustomModelAntiLambda;
248
262
o2::ml::OnnxModel mlCustomModelGamma;
249
263
250
-
struct : ConfigurableGroup {
264
+
struct : ConfigurableGroup {// Kept the original configurable scores for K0Short and all else due to the line "if (lambdaScore > mlConfigurations.thresholdK0Short.value) (...)"
251
265
std::string prefix = "mlConfigurations"; // JSON group name
252
266
// ML classifiers: master flags to control whether we should use custom ML classifiers or the scores in the derived data
253
-
//Configurable<bool> useK0ShortScores{"useK0ShortScores", false, "use ML scores to select K0Short"};
267
+
Configurable<bool> useK0ShortScores{"useK0ShortScores", false, "use ML scores to select K0Short"};
254
268
Configurable<bool> useLambdaScores{"useLambdaScores", false, "use ML scores to select Lambda"};
255
-
//Configurable<bool> useAntiLambdaScores{"useAntiLambdaScores", false, "use ML scores to select AntiLambda"};
269
+
Configurable<bool> useAntiLambdaScores{"useAntiLambdaScores", false, "use ML scores to select AntiLambda"};
256
270
257
-
//Configurable<bool> calculateK0ShortScores{"calculateK0ShortScores", false, "calculate K0Short ML scores"};
271
+
Configurable<bool> calculateK0ShortScores{"calculateK0ShortScores", false, "calculate K0Short ML scores"};
258
272
Configurable<bool> calculateLambdaScores{"calculateLambdaScores", false, "calculate Lambda ML scores"};
259
-
//Configurable<bool> calculateAntiLambdaScores{"calculateAntiLambdaScores", false, "calculate AntiLambda ML scores"};
273
+
Configurable<bool> calculateAntiLambdaScores{"calculateAntiLambdaScores", false, "calculate AntiLambda ML scores"};
260
274
261
275
// ML input for ML calculation
262
276
Configurable<std::string> customModelPathCCDB{"customModelPathCCDB", "", "Custom ML Model path in CCDB"};
@@ -266,13 +280,13 @@ struct lambdaInvMassTest{
266
280
267
281
// Local paths for test purposes
268
282
Configurable<std::string> localModelPathLambda{"localModelPathLambda", "Lambda_BDTModel.onnx", "(std::string) Path to the local .onnx file."};
269
-
//Configurable<std::string> localModelPathAntiLambda{"localModelPathAntiLambda", "AntiLambda_BDTModel.onnx", "(std::string) Path to the local .onnx file."};
270
-
//Configurable<std::string> localModelPathK0Short{"localModelPathK0Short", "KZeroShort_BDTModel.onnx", "(std::string) Path to the local .onnx file."};
283
+
Configurable<std::string> localModelPathAntiLambda{"localModelPathAntiLambda", "AntiLambda_BDTModel.onnx", "(std::string) Path to the local .onnx file."};
284
+
Configurable<std::string> localModelPathK0Short{"localModelPathK0Short", "KZeroShort_BDTModel.onnx", "(std::string) Path to the local .onnx file."};
271
285
272
286
// Thresholds for choosing to populate V0Cores tables with pre-selections
273
287
Configurable<float> thresholdLambda{"thresholdLambda", -1.0f, "Threshold to keep Lambda candidates"};
274
-
//Configurable<float> thresholdAntiLambda{"thresholdAntiLambda", -1.0f, "Threshold to keep AntiLambda candidates"};
275
-
//Configurable<float> thresholdK0Short{"thresholdK0Short", -1.0f, "Threshold to keep K0Short candidates"};
288
+
Configurable<float> thresholdAntiLambda{"thresholdAntiLambda", -1.0f, "Threshold to keep AntiLambda candidates"};
289
+
Configurable<float> thresholdK0Short{"thresholdK0Short", -1.0f, "Threshold to keep K0Short candidates"};
276
290
} mlConfigurations;
277
291
278
292
// CCDB options
@@ -290,6 +304,14 @@ struct lambdaInvMassTest{
290
304
Configurable<float> customMagField{"customMagField", 5.0f, "Manually set magnetic field"};
// Calculation taken from CF: https://github.com/AliceO2Group/O2Physics/blob/376392cb87349886a300c75fa2492b50b7f46725/PWGCF/Flow/Tasks/flowAnalysisGF.cxx#L470
542
+
{
543
+
if (magField < 0) // for negative polarity field
544
+
phi = o2::constants::math::TwoPI - phi;
545
+
if (sign < 0) // for negative charge
546
+
phi = o2::constants::math::TwoPI - phi;
547
+
if (phi < 0)
548
+
LOGF(warning, "phi < 0: %g", phi);
549
+
550
+
phi += o2::constants::math::PI / 18.0; // to center gap in the middle
551
+
returnfmod(phi, o2::constants::math::PI / 9.0);
552
+
}
553
+
554
+
boolisTrackFarFromTPCBoundary(double trackPt, double trackPhi, int sign)
555
+
// check whether the track passes close to a TPC sector boundary
0 commit comments