Skip to content

Commit a1caacc

Browse files
committed
[PWGLF] Add configurable range to limit processed systematic variations
1 parent 3199b1d commit a1caacc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ struct AntinucleiInJets {
203203
// Number of events
204204
Configurable<int> shrinkInterval{"shrinkInterval", 1000, "variable that controls how often shrinking happens"};
205205

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

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

3283+
// Clamp systematic index range
3284+
const int systStart = std::max(0, systIndexStart.value);
3285+
const int systEnd = std::min(nSyst, systIndexEnd.value);
3286+
32793287
// Loop over systematic variations
3280-
for (int isyst = 0; isyst < nSyst; isyst++) {
3288+
for (int isyst = systStart; isyst < systEnd; isyst++) {
32813289

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

0 commit comments

Comments
 (0)