Skip to content

Commit e434368

Browse files
ilikmetaalibuild
andauthored
[PWGCF] Fix Nch efficiency (#10631)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent af247f1 commit e434368

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

PWGCF/Flow/Tasks/flowGfwTask.cxx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ struct FlowGfwTask {
283283
registry.add("hPhiWeighted", "corrected #phi distribution", {HistType::kTH1D, {axisPhi}});
284284
registry.add("hEta", "", {HistType::kTH1D, {axisEta}});
285285
registry.add("hVtxZ", "Vexter Z distribution", {HistType::kTH1D, {axisVertex}});
286-
registry.add("hMult", "Multiplicity distribution", {HistType::kTH1D, {{3000, 0.5, 3000.5}}});
287-
registry.add("hMultCorr", "Corrected Multiplicity distribution", {HistType::kTH1D, {{3000, 0.5, 3000.5}}});
286+
registry.add("hMult", "Multiplicity distribution", {HistType::kTH1D, {axisNch}});
287+
registry.add("hMultCorr", "Corrected Multiplicity distribution", {HistType::kTH1D, {axisNch}});
288288
registry.add("hCent", "Centrality distribution", {HistType::kTH1D, {{90, 0, 90}}});
289289
registry.add("cent_vs_Nch", ";Centrality (%); M (|#eta| < 0.8);", {HistType::kTH2D, {axisCentrality, axisNch}});
290290
registry.add("cent_vs_NchCorr", ";Centrality (%); M (|#eta| < 0.8);", {HistType::kTH2D, {axisCentrality, axisNch}});
@@ -820,9 +820,7 @@ struct FlowGfwTask {
820820
if (!collision.sel8())
821821
return;
822822

823-
int nch = tracks.size();
824-
825-
if (nch < 1)
823+
if (tracks.size() < 1)
826824
return;
827825

828826
registry.fill(HIST("hEventCount"), kSEL8);
@@ -942,20 +940,21 @@ struct FlowGfwTask {
942940
float vtxz = collision.posZ();
943941
float lRandom = fRndm->Rndm();
944942
registry.fill(HIST("hVtxZ"), vtxz);
945-
registry.fill(HIST("hMult"), nch);
943+
registry.fill(HIST("hMult"), tracks.size());
946944
registry.fill(HIST("hCent"), centrality);
947-
registry.fill(HIST("cent_vs_Nch"), centrality, nch);
948-
949-
fGFW->Clear();
945+
registry.fill(HIST("cent_vs_Nch"), centrality, tracks.size());
950946

951947
float weffNch = 1;
952-
if (!setNch(weffNch, nch))
948+
if (!setNch(weffNch, tracks.size()))
953949
return;
954950

955-
nch = nch * weffNch;
951+
// Corrected nch
952+
float nch = tracks.size() * weffNch;
956953
registry.fill(HIST("hMultCorr"), nch);
957954
registry.fill(HIST("cent_vs_NchCorr"), centrality, nch);
958955

956+
fGFW->Clear();
957+
959958
auto bc = collision.bc_as<BCsRun3>();
960959
loadCorrections(bc.timestamp());
961960
registry.fill(HIST("hEventCount"), kCENTRALITY);

0 commit comments

Comments
 (0)