|
68 | 68 | #include <fastjet/tools/JetMedianBackgroundEstimator.hh> |
69 | 69 | #include <fastjet/tools/Subtractor.hh> |
70 | 70 |
|
| 71 | +#include <algorithm> |
71 | 72 | #include <chrono> |
72 | 73 | #include <cmath> |
73 | 74 | #include <memory> |
@@ -203,6 +204,10 @@ struct AntinucleiInJets { |
203 | 204 | // Number of events |
204 | 205 | Configurable<int> shrinkInterval{"shrinkInterval", 1000, "variable that controls how often shrinking happens"}; |
205 | 206 |
|
| 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 | + |
206 | 211 | // Coalescence momentum |
207 | 212 | Configurable<double> coalescenceMomentum{"coalescenceMomentum", 0.15, "p0 (GeV/c)"}; |
208 | 213 |
|
@@ -3276,8 +3281,12 @@ struct AntinucleiInJets { |
3276 | 3281 | static const std::vector<double> ptOverAbins = {0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0}; |
3277 | 3282 | const int nBins = ptOverAbins.size() - 1; |
3278 | 3283 |
|
| 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 | + |
3279 | 3288 | // Loop over systematic variations |
3280 | | - for (int isyst = 0; isyst < nSyst; isyst++) { |
| 3289 | + for (int isyst = systStart; isyst < systEnd; isyst++) { |
3281 | 3290 |
|
3282 | 3291 | // Fill event counter for this systematic |
3283 | 3292 | registryCorr.fill(HIST("eventCounter_centrality_fullEvent_syst"), multiplicity, static_cast<double>(isyst)); |
|
0 commit comments