Skip to content

Commit d67eb7e

Browse files
authored
[PWGLF] Add configurable range to limit processed systematic variations (#14400)
1 parent dd53321 commit d67eb7e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
#include <fastjet/tools/JetMedianBackgroundEstimator.hh>
6969
#include <fastjet/tools/Subtractor.hh>
7070

71+
#include <algorithm>
7172
#include <chrono>
7273
#include <cmath>
7374
#include <memory>
@@ -203,6 +204,10 @@ struct AntinucleiInJets {
203204
// Number of events
204205
Configurable<int> shrinkInterval{"shrinkInterval", 1000, "variable that controls how often shrinking happens"};
205206

207+
// Range of systematic variations to be processed
208+
Configurable<int> systIndexStart{"systIndexStart", 0, "First systematic index (inclusive)"};
209+
Configurable<int> systIndexEnd{"systIndexEnd", 50, "Last systematic index (exclusive)"};
210+
206211
// Coalescence momentum
207212
Configurable<double> coalescenceMomentum{"coalescenceMomentum", 0.15, "p0 (GeV/c)"};
208213

@@ -3276,8 +3281,12 @@ struct AntinucleiInJets {
32763281
static const std::vector<double> ptOverAbins = {0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0};
32773282
const int nBins = ptOverAbins.size() - 1;
32783283

3284+
// Clamp systematic index range
3285+
const int systStart = std::max(0, static_cast<int>(systIndexStart.value));
3286+
const int systEnd = std::min(static_cast<int>(nSyst), static_cast<int>(systIndexEnd.value));
3287+
32793288
// Loop over systematic variations
3280-
for (int isyst = 0; isyst < nSyst; isyst++) {
3289+
for (int isyst = systStart; isyst < systEnd; isyst++) {
32813290

32823291
// Fill event counter for this systematic
32833292
registryCorr.fill(HIST("eventCounter_centrality_fullEvent_syst"), multiplicity, static_cast<double>(isyst));

0 commit comments

Comments
 (0)