Skip to content

Commit 467d730

Browse files
committed
Always make centrality histo
1 parent e12caba commit 467d730

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PWGCF/Flow/Tasks/flowSP.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ struct FlowSP {
347347

348348
rctChecker.init(rctFlags.cfgEvtRCTFlagCheckerLabel, rctFlags.cfgEvtRCTFlagCheckerZDCCheck, rctFlags.cfgEvtRCTFlagCheckerLimitAcceptAsBad);
349349

350+
histos.add("hCentrality", "Centrality; Centrality (%); ", {HistType::kTH1D, {axisCent}});
351+
350352
histos.add("hEventCount", "Number of Event; Cut; #Events Passed Cut", {HistType::kTH1D, {{nEventSelections, 0, nEventSelections}}});
351353
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(evSel_FilteredEvent + 1, "Filtered events");
352354
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(evSel_RCTFlagsZDC + 1, "RCT Flags ZDC");
@@ -1220,6 +1222,9 @@ struct FlowSP {
12201222
return;
12211223
histos.fill(HIST("hEventCount"), evSel_isSelectedZDC);
12221224

1225+
// Always fill centrality histogram after event selections!
1226+
histos.fill(HIST("hCentrality"), spm.centrality);
1227+
12231228
spm.qxA = collision.qxA();
12241229
spm.qyA = collision.qyA();
12251230
spm.qxC = collision.qxC();

0 commit comments

Comments
 (0)