Skip to content

Commit f453fc0

Browse files
authored
[PWGCF] flowPtEfficiency, flowRunbyRun: small fix (#10147)
1 parent 62b1c59 commit f453fc0

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

PWGCF/Flow/Tasks/flowPtEfficiency.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ struct FlowPtEfficiency {
382382
if (cfgFlowEnabled) {
383383
loadCentVsIPReco(bc.timestamp());
384384
loadCorrections(bc.timestamp());
385+
386+
fGFWReco->Clear();
385387
}
386388

387389
for (const auto& track : tracks) {
@@ -446,6 +448,8 @@ struct FlowPtEfficiency {
446448
auto bc = mcCollision.bc_as<aod::BCsWithTimestamps>();
447449
loadCentVsIPTruth(bc.timestamp());
448450
centrality = mCentVsIPTruth->GetBinContent(mCentVsIPTruth->GetXaxis()->FindBin(imp));
451+
452+
fGFWTrue->Clear();
449453
}
450454
float lRandom = fRndm->Rndm();
451455
float wacc = 1.0f;

PWGCF/Flow/Tasks/flowRunbyRun.cxx

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -328,20 +328,6 @@ struct FlowRunbyRun {
328328
return true;
329329
}
330330

331-
void initEventCount(std::shared_ptr<TH1> hEventCountSpecific)
332-
{
333-
hEventCountSpecific->GetXaxis()->SetBinLabel(1, "after sel8");
334-
hEventCountSpecific->GetXaxis()->SetBinLabel(2, "kNoSameBunchPileup");
335-
hEventCountSpecific->GetXaxis()->SetBinLabel(3, "kIsGoodZvtxFT0vsPV");
336-
hEventCountSpecific->GetXaxis()->SetBinLabel(4, "kNoCollInTimeRangeStandard");
337-
hEventCountSpecific->GetXaxis()->SetBinLabel(5, "kIsGoodITSLayersAll");
338-
hEventCountSpecific->GetXaxis()->SetBinLabel(6, "kNoCollInRofStandard");
339-
hEventCountSpecific->GetXaxis()->SetBinLabel(7, "kNoHighMultCollInPrevRof");
340-
hEventCountSpecific->GetXaxis()->SetBinLabel(8, "occupancy");
341-
hEventCountSpecific->GetXaxis()->SetBinLabel(9, "MultCorrelation");
342-
hEventCountSpecific->GetXaxis()->SetBinLabel(10, "cfgEvSelV0AT0ACut");
343-
}
344-
345331
void createOutputObjectsForRun(int runNumber)
346332
{
347333
std::vector<std::shared_ptr<TH1>> histos(kCount_TH1Names);
@@ -352,7 +338,16 @@ struct FlowRunbyRun {
352338
histos[hMult] = registry.add<TH1>(Form("%d/hMult", runNumber), "", {HistType::kTH1D, {{3000, 0.5, 3000.5}}});
353339
histos[hCent] = registry.add<TH1>(Form("%d/hCent", runNumber), "", {HistType::kTH1D, {{90, 0, 90}}});
354340
histos[hEventCountSpecific] = registry.add<TH1>(Form("%d/hEventCountSpecific", runNumber), "", {HistType::kTH1D, {{10, 0, 10}}});
355-
initEventCount(histos[hEventCountSpecific]);
341+
histos[hEventCountSpecific]->GetXaxis()->SetBinLabel(1, "after sel8");
342+
histos[hEventCountSpecific]->GetXaxis()->SetBinLabel(2, "kNoSameBunchPileup");
343+
histos[hEventCountSpecific]->GetXaxis()->SetBinLabel(3, "kIsGoodZvtxFT0vsPV");
344+
histos[hEventCountSpecific]->GetXaxis()->SetBinLabel(4, "kNoCollInTimeRangeStandard");
345+
histos[hEventCountSpecific]->GetXaxis()->SetBinLabel(5, "kIsGoodITSLayersAll");
346+
histos[hEventCountSpecific]->GetXaxis()->SetBinLabel(6, "kNoCollInRofStandard");
347+
histos[hEventCountSpecific]->GetXaxis()->SetBinLabel(7, "kNoHighMultCollInPrevRof");
348+
histos[hEventCountSpecific]->GetXaxis()->SetBinLabel(8, "occupancy");
349+
histos[hEventCountSpecific]->GetXaxis()->SetBinLabel(9, "MultCorrelation");
350+
histos[hEventCountSpecific]->GetXaxis()->SetBinLabel(10, "cfgEvSelV0AT0ACut");
356351
th1sList.insert(std::make_pair(runNumber, histos));
357352

358353
std::vector<std::shared_ptr<TProfile>> profiles(kCount_TProfileNames);

0 commit comments

Comments
 (0)