Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions PWGUD/Tasks/flowCorrelationsUpc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 {
Expand All @@ -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) {
Expand Down
Loading