Skip to content

Commit e04d379

Browse files
committed
support nch/cent axis switch in multiplet
1 parent 2ae416c commit e04d379

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

PWGCF/GenericFramework/Tasks/flowGfwNonflow.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ struct FlowGfwNonflow {
243243

244244
// Generic Framework
245245
GFW* fGFW = new GFW();
246-
std::vector<GFW::CorrConfig> corrconfigs{};
246+
std::vector<GFW::CorrConfig> corrconfigs;
247247
TRandom3* fRndm = new TRandom3(0);
248248
TAxis* fPtAxis = nullptr;
249249
int lastRun = -1;
250-
std::vector<std::string> multipletKeys{};
250+
std::vector<std::string> multipletKeys;
251251

252252
// Track selection - DCA functions
253253
TF1* fPtDepDCAxy = nullptr;
@@ -420,7 +420,7 @@ struct FlowGfwNonflow {
420420
delete oba;
421421

422422
// Identify unique multiplet setups and populate with identifying keys
423-
identifyUniqueMultipletKeys(multipletKeys, corrconfigs, centAxis); // For now keep centrality axis hardcoded
423+
identifyUniqueMultipletKeys(multipletKeys, corrconfigs, multAxis);
424424
LOGF(info, "Unique multiplet keys for current configuration setup");
425425
for (const auto& key : multipletKeys) {
426426
LOGF(info, key);
@@ -524,7 +524,7 @@ struct FlowGfwNonflow {
524524
}
525525
}
526526

527-
void identifyUniqueMultipletKeys(std::vector<std::string>& keys, const std::vector<GFW::CorrConfig>& configs, AxisSpec xAxis)
527+
void identifyUniqueMultipletKeys(std::vector<std::string>& keys, const std::vector<GFW::CorrConfig>& configs, const AxisSpec& xAxis)
528528
{
529529
std::set<std::string> uniqueKeys(keys.begin(), keys.end());
530530
const auto& regionNames = gfwMemberCache.regions.GetNames();
@@ -584,7 +584,7 @@ struct FlowGfwNonflow {
584584

585585
if (uniqueKeys.insert(key).second) {
586586
keys.push_back(std::move(key));
587-
MultipletConfig currentMultipletConfig{configIndex, totalOrder, registry.add<TProfile>(Form("%s", keys.back().c_str()), Form("; centrality ; N_{%d}", totalOrder), {HistType::kTProfile, {xAxis}})};
587+
MultipletConfig currentMultipletConfig{.representativeConfigIndex = configIndex, .order = totalOrder, .profile = registry.add<TProfile>(Form("%s", keys.back().c_str()), Form("; centrality ; N_{%d}", totalOrder), {HistType::kTProfile, {xAxis}})};
588588
effectiveMultiplets[keys.back()] = currentMultipletConfig;
589589
}
590590
}

0 commit comments

Comments
 (0)