From a444beb6f64fbeaac252ed471645ef21fe987800 Mon Sep 17 00:00:00 2001 From: Emil Gorm Nielsen Date: Thu, 24 Sep 2026 14:07:22 +0200 Subject: [PATCH 1/3] fix initialisation in some process paths in twoParticleCorrelationsMpi.cxx --- .../Tasks/twoParticleCorrelationsMpi.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGCF/TwoParticleCorrelations/Tasks/twoParticleCorrelationsMpi.cxx b/PWGCF/TwoParticleCorrelations/Tasks/twoParticleCorrelationsMpi.cxx index 39988d92474..0d681481ffb 100644 --- a/PWGCF/TwoParticleCorrelations/Tasks/twoParticleCorrelationsMpi.cxx +++ b/PWGCF/TwoParticleCorrelations/Tasks/twoParticleCorrelationsMpi.cxx @@ -367,7 +367,7 @@ struct TwoParticleCorrelationsMpi { if (cfgFillAcceptanceWeights && !cfgAcceptance.value.empty()) { LOGF(fatal, "cfgFillAcceptanceWeights and cfgAcceptance are mutually exclusive: produce and apply acceptance weights in separate jobs"); } - if (cfgFillAcceptanceWeights && !(doprocessSameDerived || doprocessSameDerivedMultSet || doprocessMCSameDerived)) { + if (cfgFillAcceptanceWeights && !(doprocessSameDerived || doprocessSameDerivedCorrected || doprocessSameDerivedMultSet || doprocessSameDerivedMultSetCorrected || doprocessMCSameDerived)) { LOGF(fatal, "cfgFillAcceptanceWeights requires a reconstructed derived same-event process"); } if (cfgAcceptancePhiBins < 1 || cfgAcceptanceEtaBins < 1) { @@ -655,7 +655,7 @@ struct TwoParticleCorrelationsMpi { ++nPtPtSubevents; } - if (!cfgFillAcceptanceWeights && (doprocessMCSameDerived || doprocessSameDerived || doprocessSameDerivedMultSet)) { + if (!cfgFillAcceptanceWeights && (doprocessMCSameDerived || doprocessSameDerived || doprocessSameDerivedCorrected || doprocessSameDerivedMultSet || doprocessSameDerivedMultSetCorrected)) { auto recoProfiles = std::make_unique(); addConfigObjectsToObjArray(recoProfiles.get(), mCorrConfigs, cfgUserAxis == EventSeedAxis && eventClassifierPercentileAxisEnabled); fFC.setObject(new FlowContainer("FlowContainer")); From daa7d7d53c84ad40d5d3550685ff432c34388f8e Mon Sep 17 00:00:00 2001 From: Emil Gorm Nielsen Date: Thu, 24 Sep 2026 14:46:05 +0200 Subject: [PATCH 2/3] require charged particles in generated path in flowGenericFramework.cxx --- PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx b/PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx index 629804bbbbe..b8ab75c81d4 100644 --- a/PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx +++ b/PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx @@ -2362,6 +2362,10 @@ struct FlowGenericFramework { if (!track.isPhysicalPrimary()) { return; } + auto pdgParticle = pdgDB->GetParticle(track.pdgCode()); + if (!pdgParticle || pdgParticle->Charge() == 0.) { + return; + } if (cfgFill.cfgFillQA) { fillTrackQA(track, vtxz); } From 721321f2e19f943d040bdf95bf9001b30814abd2 Mon Sep 17 00:00:00 2001 From: Emil Gorm Nielsen Date: Thu, 24 Sep 2026 22:42:44 +0200 Subject: [PATCH 3/3] codecheck --- PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx b/PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx index b8ab75c81d4..da76264b369 100644 --- a/PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx +++ b/PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx @@ -71,6 +71,7 @@ #include #include #include +#include #include #include #include @@ -939,7 +940,7 @@ struct FlowGenericFramework { if (corrconfigsV0.empty()) { LOGF(error, "Radial (V0) configuration contains vectors of different size - check the GFWCorrConfig configurable"); } - const size_t requiredChargedConfigs = static_cast(SpeciesCount); + const auto requiredChargedConfigs = static_cast(SpeciesCount); const size_t requiredResonanceConfigs = requiredChargedConfigs + static_cast(ResonanceCount); if (cfgFill.cfgAnalyseChargedHadrons && (corrconfigsV02.size() < requiredChargedConfigs || corrconfigsV0.size() < requiredChargedConfigs)) { LOGF(fatal, "Charged-hadron analysis requires at least %zu V02 and V0 correlation configurations", requiredChargedConfigs);