From a1caacccbd92121c5a98b1b6cff875652550b997 Mon Sep 17 00:00:00 2001 From: Alberto Caliva Date: Tue, 6 Jan 2026 15:33:23 +0100 Subject: [PATCH 1/5] [PWGLF] Add configurable range to limit processed systematic variations --- PWGLF/Tasks/Nuspex/antinucleiInJets.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx index 457a94ef26c..94873180fd2 100644 --- a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx +++ b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx @@ -203,6 +203,10 @@ struct AntinucleiInJets { // Number of events Configurable shrinkInterval{"shrinkInterval", 1000, "variable that controls how often shrinking happens"}; + // Range of systematic variations to be processed + Configurable systIndexStart{"systIndexStart", 0, "First systematic index (inclusive)"}; + Configurable systIndexEnd{"systIndexEnd", 50, "Last systematic index (exclusive)"}; + // Coalescence momentum Configurable coalescenceMomentum{"coalescenceMomentum", 0.15, "p0 (GeV/c)"}; @@ -3276,8 +3280,12 @@ struct AntinucleiInJets { static const std::vector ptOverAbins = {0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}; const int nBins = ptOverAbins.size() - 1; + // Clamp systematic index range + const int systStart = std::max(0, systIndexStart.value); + const int systEnd = std::min(nSyst, systIndexEnd.value); + // Loop over systematic variations - for (int isyst = 0; isyst < nSyst; isyst++) { + for (int isyst = systStart; isyst < systEnd; isyst++) { // Fill event counter for this systematic registryCorr.fill(HIST("eventCounter_centrality_fullEvent_syst"), multiplicity, static_cast(isyst)); From 0cccedcfb933daf0a10fb150227d8cda107cc178 Mon Sep 17 00:00:00 2001 From: Alberto Caliva Date: Tue, 6 Jan 2026 15:39:52 +0100 Subject: [PATCH 2/5] fix clang format --- PWGLF/Tasks/Nuspex/antinucleiInJets.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx index 94873180fd2..6325151f806 100644 --- a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx +++ b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx @@ -3282,7 +3282,7 @@ struct AntinucleiInJets { // Clamp systematic index range const int systStart = std::max(0, systIndexStart.value); - const int systEnd = std::min(nSyst, systIndexEnd.value); + const int systEnd = std::min(nSyst, systIndexEnd.value); // Loop over systematic variations for (int isyst = systStart; isyst < systEnd; isyst++) { From 4861386ee1bb83d6af07de54cabb587e33f7d15a Mon Sep 17 00:00:00 2001 From: Alberto Caliva Date: Tue, 6 Jan 2026 15:46:52 +0100 Subject: [PATCH 3/5] added #include --- PWGLF/Tasks/Nuspex/antinucleiInJets.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx index 6325151f806..e57960e8c84 100644 --- a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx +++ b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx @@ -68,6 +68,7 @@ #include #include +#include #include #include #include From 0ed1ffa84d7eeff41c4aa939cc5c65bf66fbb9d3 Mon Sep 17 00:00:00 2001 From: Alberto Caliva Date: Tue, 6 Jan 2026 17:27:54 +0100 Subject: [PATCH 4/5] fixed min function call --- PWGLF/Tasks/Nuspex/antinucleiInJets.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx index e57960e8c84..00ee025ff44 100644 --- a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx +++ b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx @@ -3282,8 +3282,8 @@ struct AntinucleiInJets { const int nBins = ptOverAbins.size() - 1; // Clamp systematic index range - const int systStart = std::max(0, systIndexStart.value); - const int systEnd = std::min(nSyst, systIndexEnd.value); + const int systStart = std::max(0, static_cast(systIndexStart.value)); + const int systEnd = std::min(nSyst, static_cast(systIndexEnd.value)); // Loop over systematic variations for (int isyst = systStart; isyst < systEnd; isyst++) { From 087368e12706359e1a0f59a390a7c549f74cdf1e Mon Sep 17 00:00:00 2001 From: Alberto Caliva Date: Tue, 6 Jan 2026 22:13:56 +0100 Subject: [PATCH 5/5] fixed typo --- PWGLF/Tasks/Nuspex/antinucleiInJets.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx index 00ee025ff44..e8c866f7788 100644 --- a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx +++ b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx @@ -3283,7 +3283,7 @@ struct AntinucleiInJets { // Clamp systematic index range const int systStart = std::max(0, static_cast(systIndexStart.value)); - const int systEnd = std::min(nSyst, static_cast(systIndexEnd.value)); + const int systEnd = std::min(static_cast(nSyst), static_cast(systIndexEnd.value)); // Loop over systematic variations for (int isyst = systStart; isyst < systEnd; isyst++) {