From 5e24093a152b64d1a56beb61a94f65d6c2cf649e Mon Sep 17 00:00:00 2001 From: Pengchong Hu Date: Sun, 21 Jun 2026 13:07:05 +0200 Subject: [PATCH] correction of init and config --- .../Tasks/multiharmonicCorrelations.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx b/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx index ca5d0d56aa7..c26489bfed4 100644 --- a/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx +++ b/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx @@ -113,6 +113,7 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to Configurable cfMult{"cfMult", "TPC", "multiplicity"}; Configurable cfQA{"cfQA", true, "quality assurance"}; Configurable cfInitsim{"cfInitsim", false, "init histograms of sim"}; + Configurable cfUseWeights{"cfUseWeights", true, "use weights"}; Configurable> cfVertexZ{"cfVertexZ", {-10, 10.}, "vertex z position range: {min, max}[cm], with convention: min <= Vz < max"}; Configurable> cfPt{"cfPt", {0.2, 5.0}, "transverse momentum range"}; @@ -484,9 +485,10 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to pc.fHistTracksdcaXY[eRec]->Fill(track.dcaXY()); pc.fHistTracksdcaZ[eRec]->Fill(track.dcaZ()); - if (histweight != pc.weightsmap.end()) { + if (cfUseWeights && histweight != pc.weightsmap.end()) weight = histweight->second->GetBinContent(histweight->second->FindBin(phi)); - } + else + weight = 1; // ... and corresponding MC truth simulated: // See https://github.com/AliceO2Group/O2Physics/blob/master/Tutorials/src/mcHistograms.cxx @@ -746,9 +748,9 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to qa.fQA = new TH2F("QA_centr", "quality assurance of centrality", nBinscentr, mincentr, maxcentr, nBinscentr, mincentr, maxcentr); qa.fQAM_NC = new TH2F("QAM_NC", "quality assurance of mult vs. NContributors", nBinsmult, minmult, maxmult, nBinsncontr, minncontr, maxncontr); if (cfQA) { - qa.fQAList->Add(qa.fQA); if (cfInitsim) - qa.fQAList->Add(qa.fQAM_NC); + qa.fQAList->Add(qa.fQA); + qa.fQAList->Add(qa.fQAM_NC); } // float quantiles[10] = {0, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8};