Skip to content

Commit 8ac7667

Browse files
authored
[PWGUD] get weff2 corrected (#17617)
1 parent 898ce1b commit 8ac7667

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

PWGUD/Tasks/flowCorrelationsUpc.cxx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)