From 180fbe99674283f3bf392d7d76bddef221d55237 Mon Sep 17 00:00:00 2001 From: Maria Barlou Date: Mon, 2 Nov 2026 15:59:51 +0100 Subject: [PATCH 1/2] [PWGCF] Add all-gap multiplicity QA to stronglyIntensiveCorr --- .../Tasks/stronglyIntensiveCorr.cxx | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/PWGCF/EbyEFluctuations/Tasks/stronglyIntensiveCorr.cxx b/PWGCF/EbyEFluctuations/Tasks/stronglyIntensiveCorr.cxx index 6fa2543523b..8c073da41e8 100644 --- a/PWGCF/EbyEFluctuations/Tasks/stronglyIntensiveCorr.cxx +++ b/PWGCF/EbyEFluctuations/Tasks/stronglyIntensiveCorr.cxx @@ -140,6 +140,16 @@ struct StronglyIntensiveCorr { std::vector centClassEdges(centEdges.begin(), centEdges.end()); AxisSpec centClassAxis = {centClassEdges, "centrality class (%)"}; AxisSpec etaGapAxis = {NEtaGaps, -0.05, 1.55, "#Delta#eta"}; + + // Seven physical, non-overlapping FB gaps: + // DeltaEta = 0.0, 0.2, ..., 1.2. + std::vector physicalGapEdges = { + -0.1, 0.1, 0.3, 0.5, + 0.7, 0.9, 1.1, 1.3}; + + AxisSpec physicalGapAxis = { + physicalGapEdges, + "#Delta#eta"}; AxisSpec nAxis = {500, 0.0, 500.0, "N"}; AxisSpec counterAxis = {20, 0.5, 20.5, "counter"}; AxisSpec ptAxis = {{0.2, 0.5, 0.8, 1.0, 1.5, 2.0, 5.0}, "#it{p}_{T} (GeV/#it{c})"}; @@ -175,6 +185,20 @@ struct StronglyIntensiveCorr { histos.add("QA/fb/nFminusNB", "nF-nB;nF-nB;Counts", kTH1D, {{500, -250.0, 250.0}}); histos.add("QA/fb/nFplusNB", "nF+nB;nF+nB;Counts", kTH1D, {{500, 0.0, 500.0}}); + // Event-level multiplicity QA for every physical gap. + // Axes: centrality x DeltaEta x multiplicity. + histos.add( + "QA/fbAllGaps/nFvsCentGap", + "Forward multiplicity;centrality (%);#Delta#eta;n_{F}", + kTH3D, + {centAxis, physicalGapAxis, nAxis}); + + histos.add( + "QA/fbAllGaps/nBvsCentGap", + "Backward multiplicity;centrality (%);#Delta#eta;n_{B}", + kTH3D, + {centAxis, physicalGapAxis, nAxis}); + histos.add("QA/mcReco/nRecoAll", "MC reco all selected;n;Counts", kTH1D, {nAxis}); histos.add("QA/mcReco/nRecoPrimary", "MC reco primary selected;n;Counts", kTH1D, {nAxis}); histos.add("QA/mcReco/nRecoSecondary", "MC reco secondary selected;n;Counts", kTH1D, {nAxis}); @@ -626,6 +650,37 @@ struct StronglyIntensiveCorr { histos.fill(HIST("QA/fb/nFplusNB"), nf + nb); } + void fillAllGapMultiplicityQA( + float cent, + std::array const& nF, + std::array const& nB) + { + for (int i = 0; i < NEtaGaps; ++i) { + const double gap = + 2.0 * (etaCenter[i] - + cfgEtaWidth.value / 2.0); + + // etaCenter = 0 corresponds to overlapping windows and + // gives DeltaEta = -0.2. Keep only the seven physical, + // non-overlapping values from 0.0 to 1.2. + if (gap < -1.e-6 || gap > 1.200001) { + continue; + } + + histos.fill( + HIST("QA/fbAllGaps/nFvsCentGap"), + cent, + gap, + nF[i]); + + histos.fill( + HIST("QA/fbAllGaps/nBvsCentGap"), + cent, + gap, + nB[i]); + } + } + void fillInclusiveEtaGapMoments(std::array const& nF, std::array const& nB) { @@ -944,6 +999,7 @@ struct StronglyIntensiveCorr { histos.fill(HIST("QA/hCentrality"), cent); fillFBQA(cent, nF, nB); + fillAllGapMultiplicityQA(cent, nF, nB); fillInclusiveEtaGapMoments(nF, nB); fillCentClassEtaGapMoments(centClass, nF, nB); fillCentWindowEtaGapMoments(centWindowClass, nF, nB); From 54aa8ce7858a66e1792c92e80ef19c736c4e0fb3 Mon Sep 17 00:00:00 2001 From: Maria Barlou Date: Mon, 16 Nov 2026 16:11:15 +0100 Subject: [PATCH 2/2] [PWGCF] Rewrap all-gap multiplicity QA code --- .../Tasks/stronglyIntensiveCorr.cxx | 47 +++++-------------- 1 file changed, 12 insertions(+), 35 deletions(-) diff --git a/PWGCF/EbyEFluctuations/Tasks/stronglyIntensiveCorr.cxx b/PWGCF/EbyEFluctuations/Tasks/stronglyIntensiveCorr.cxx index 8c073da41e8..75055d0fb41 100644 --- a/PWGCF/EbyEFluctuations/Tasks/stronglyIntensiveCorr.cxx +++ b/PWGCF/EbyEFluctuations/Tasks/stronglyIntensiveCorr.cxx @@ -143,13 +143,9 @@ struct StronglyIntensiveCorr { // Seven physical, non-overlapping FB gaps: // DeltaEta = 0.0, 0.2, ..., 1.2. - std::vector physicalGapEdges = { - -0.1, 0.1, 0.3, 0.5, - 0.7, 0.9, 1.1, 1.3}; + std::vector physicalGapEdges = {-0.1, 0.1, 0.3, 0.5, 0.7, 0.9, 1.1, 1.3}; - AxisSpec physicalGapAxis = { - physicalGapEdges, - "#Delta#eta"}; + AxisSpec physicalGapAxis = {physicalGapEdges, "#Delta#eta"}; AxisSpec nAxis = {500, 0.0, 500.0, "N"}; AxisSpec counterAxis = {20, 0.5, 20.5, "counter"}; AxisSpec ptAxis = {{0.2, 0.5, 0.8, 1.0, 1.5, 2.0, 5.0}, "#it{p}_{T} (GeV/#it{c})"}; @@ -187,17 +183,9 @@ struct StronglyIntensiveCorr { // Event-level multiplicity QA for every physical gap. // Axes: centrality x DeltaEta x multiplicity. - histos.add( - "QA/fbAllGaps/nFvsCentGap", - "Forward multiplicity;centrality (%);#Delta#eta;n_{F}", - kTH3D, - {centAxis, physicalGapAxis, nAxis}); - - histos.add( - "QA/fbAllGaps/nBvsCentGap", - "Backward multiplicity;centrality (%);#Delta#eta;n_{B}", - kTH3D, - {centAxis, physicalGapAxis, nAxis}); + histos.add("QA/fbAllGaps/nFvsCentGap", "Forward multiplicity;centrality (%);#Delta#eta;n_{F}", kTH3D, {centAxis, physicalGapAxis, nAxis}); + + histos.add("QA/fbAllGaps/nBvsCentGap", "Backward multiplicity;centrality (%);#Delta#eta;n_{B}", kTH3D, {centAxis, physicalGapAxis, nAxis}); histos.add("QA/mcReco/nRecoAll", "MC reco all selected;n;Counts", kTH1D, {nAxis}); histos.add("QA/mcReco/nRecoPrimary", "MC reco primary selected;n;Counts", kTH1D, {nAxis}); @@ -650,15 +638,12 @@ struct StronglyIntensiveCorr { histos.fill(HIST("QA/fb/nFplusNB"), nf + nb); } - void fillAllGapMultiplicityQA( - float cent, - std::array const& nF, - std::array const& nB) + void fillAllGapMultiplicityQA(float cent, + std::array const& nF, + std::array const& nB) { for (int i = 0; i < NEtaGaps; ++i) { - const double gap = - 2.0 * (etaCenter[i] - - cfgEtaWidth.value / 2.0); + const double gap = 2.0 * (etaCenter[i] - cfgEtaWidth.value / 2.0); // etaCenter = 0 corresponds to overlapping windows and // gives DeltaEta = -0.2. Keep only the seven physical, @@ -667,17 +652,9 @@ struct StronglyIntensiveCorr { continue; } - histos.fill( - HIST("QA/fbAllGaps/nFvsCentGap"), - cent, - gap, - nF[i]); - - histos.fill( - HIST("QA/fbAllGaps/nBvsCentGap"), - cent, - gap, - nB[i]); + histos.fill(HIST("QA/fbAllGaps/nFvsCentGap"), cent, gap, nF[i]); + + histos.fill(HIST("QA/fbAllGaps/nBvsCentGap"), cent, gap, nB[i]); } }