From 5ce3297c5be85a820e54212bb4c72590b099b11b Mon Sep 17 00:00:00 2001 From: miedema-11 <1260971129@qq.com> Date: Wed, 26 Aug 2026 23:57:15 +0800 Subject: [PATCH] get weff2 corrected --- PWGUD/Tasks/flowCorrelationsUpc.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PWGUD/Tasks/flowCorrelationsUpc.cxx b/PWGUD/Tasks/flowCorrelationsUpc.cxx index 57114a3f977..faeb7de083f 100644 --- a/PWGUD/Tasks/flowCorrelationsUpc.cxx +++ b/PWGUD/Tasks/flowCorrelationsUpc.cxx @@ -470,9 +470,11 @@ struct FlowCorrelationsUpc { double phi1 = RecoDecay::phi(momentum1); double eta1 = RecoDecay::eta(momentum1); - float weff1 = 1., wacc1 = 1.; + float weff1 = 1.; + if (!getEfficiencyCorrection(weff1, eta1, pt1, posZ)) + continue; if (system == SameEvent) { - registry.fill(HIST("Trig_hist"), fSampleIndex, posZ, independent, pt1, eventWeight * weff1 * wacc1); + registry.fill(HIST("Trig_hist"), fSampleIndex, posZ, independent, pt1, eventWeight * weff1); } for (auto const& track2 : tracks2) { @@ -495,7 +497,7 @@ struct FlowCorrelationsUpc { double phi2 = RecoDecay::phi(momentum2); double eta2 = RecoDecay::eta(momentum2); - float weff2 = 1., wacc2 = 1.; + float weff2 = 1.; if (mEfficiency) { weff2 = efficiencyCache[track2.filteredIndex()]; } else { @@ -505,7 +507,7 @@ struct FlowCorrelationsUpc { float deltaPhi = RecoDecay::constrainAngle(phi1 - phi2, -PIHalf); float deltaEta = eta1 - eta2; - float weight = eventWeight * weff1 * weff2 * wacc1 * wacc2; + float weight = eventWeight * weff1 * weff2; // Merging cut if (std::abs(deltaEta) < cfgCutMerging) {