@@ -470,9 +470,11 @@ struct FlowCorrelationsUpc {
470470 double phi1 = RecoDecay::phi (momentum1);
471471 double eta1 = RecoDecay::eta (momentum1);
472472
473- float weff1 = 1 ., wacc1 = 1 .;
473+ float weff1 = 1 .;
474+ if (!getEfficiencyCorrection (weff1, eta1, pt1, posZ))
475+ continue ;
474476 if (system == SameEvent) {
475- registry.fill (HIST (" Trig_hist" ), fSampleIndex , posZ, independent, pt1, eventWeight * weff1 * wacc1 );
477+ registry.fill (HIST (" Trig_hist" ), fSampleIndex , posZ, independent, pt1, eventWeight * weff1);
476478 }
477479
478480 for (auto const & track2 : tracks2) {
@@ -495,7 +497,7 @@ struct FlowCorrelationsUpc {
495497 double phi2 = RecoDecay::phi (momentum2);
496498 double eta2 = RecoDecay::eta (momentum2);
497499
498- float weff2 = 1 ., wacc2 = 1 . ;
500+ float weff2 = 1 .;
499501 if (mEfficiency ) {
500502 weff2 = efficiencyCache[track2.filteredIndex ()];
501503 } else {
@@ -505,7 +507,7 @@ struct FlowCorrelationsUpc {
505507 float deltaPhi = RecoDecay::constrainAngle (phi1 - phi2, -PIHalf);
506508 float deltaEta = eta1 - eta2;
507509
508- float weight = eventWeight * weff1 * weff2 * wacc1 * wacc2 ;
510+ float weight = eventWeight * weff1 * weff2;
509511
510512 // Merging cut
511513 if (std::abs (deltaEta) < cfgCutMerging) {
0 commit comments