Skip to content

Commit 484a7d1

Browse files
authored
[PWGCF] event weight option for mean pT (#17623)
1 parent 9f4c7bc commit 484a7d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGCF/Flow/Tasks/flowTask.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ struct FlowTask {
14781478
registry.fill(HIST("hMeanPt"), independent, ptSum / weffEvent, weffEvent);
14791479
}
14801480
if (weffEventWithinGap08)
1481-
registry.fill(HIST("hMeanPtWithinGap08"), independent, ptSum_Gap08 / weffEventWithinGap08, 1.0);
1481+
registry.fill(HIST("hMeanPtWithinGap08"), independent, ptSum_Gap08 / weffEventWithinGap08, cfgUserIO.cfgUserPtVnEvWeightEnabled ? weffEventWithinGap08 : 1.);
14821482
if (weffEventWithinGap08)
14831483
bootstrapArray[sampleIndex][kMeanPtWithinGap08]->Fill(independent, ptSum_Gap08 / weffEventWithinGap08, 1.0);
14841484
// c22_gap8 * pt_withGap8
@@ -1583,7 +1583,7 @@ struct FlowTask {
15831583
}
15841584

15851585
if (count_Gap08 > 0)
1586-
registry.fill(HIST("hMeanPtWithinGap08_MC"), independent, ptSum_Gap08 / count_Gap08, 1.0);
1586+
registry.fill(HIST("hMeanPtWithinGap08_MC"), independent, ptSum_Gap08 / count_Gap08, cfgUserIO.cfgUserPtVnEvWeightEnabled ? count_Gap08 : 1.);
15871587
int sampleIndex = static_cast<int>(cfgNbootstrap * lRandom);
15881588
if (count_Gap08 > 0)
15891589
bootstrapArray[sampleIndex][kMeanPtWithinGap08_MC]->Fill(independent, ptSum_Gap08 / count_Gap08, 1.0);

0 commit comments

Comments
 (0)