Skip to content

Commit 54aa8ce

Browse files
committed
[PWGCF] Rewrap all-gap multiplicity QA code
1 parent 180fbe9 commit 54aa8ce

1 file changed

Lines changed: 12 additions & 35 deletions

File tree

‎PWGCF/EbyEFluctuations/Tasks/stronglyIntensiveCorr.cxx‎

Lines changed: 12 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,9 @@ struct StronglyIntensiveCorr {
143143

144144
// Seven physical, non-overlapping FB gaps:
145145
// DeltaEta = 0.0, 0.2, ..., 1.2.
146-
std::vector<double> physicalGapEdges = {
147-
-0.1, 0.1, 0.3, 0.5,
148-
0.7, 0.9, 1.1, 1.3};
146+
std::vector<double> physicalGapEdges = {-0.1, 0.1, 0.3, 0.5, 0.7, 0.9, 1.1, 1.3};
149147

150-
AxisSpec physicalGapAxis = {
151-
physicalGapEdges,
152-
"#Delta#eta"};
148+
AxisSpec physicalGapAxis = {physicalGapEdges, "#Delta#eta"};
153149
AxisSpec nAxis = {500, 0.0, 500.0, "N"};
154150
AxisSpec counterAxis = {20, 0.5, 20.5, "counter"};
155151
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 {
187183

188184
// Event-level multiplicity QA for every physical gap.
189185
// Axes: centrality x DeltaEta x multiplicity.
190-
histos.add(
191-
"QA/fbAllGaps/nFvsCentGap",
192-
"Forward multiplicity;centrality (%);#Delta#eta;n_{F}",
193-
kTH3D,
194-
{centAxis, physicalGapAxis, nAxis});
195-
196-
histos.add(
197-
"QA/fbAllGaps/nBvsCentGap",
198-
"Backward multiplicity;centrality (%);#Delta#eta;n_{B}",
199-
kTH3D,
200-
{centAxis, physicalGapAxis, nAxis});
186+
histos.add("QA/fbAllGaps/nFvsCentGap", "Forward multiplicity;centrality (%);#Delta#eta;n_{F}", kTH3D, {centAxis, physicalGapAxis, nAxis});
187+
188+
histos.add("QA/fbAllGaps/nBvsCentGap", "Backward multiplicity;centrality (%);#Delta#eta;n_{B}", kTH3D, {centAxis, physicalGapAxis, nAxis});
201189

202190
histos.add("QA/mcReco/nRecoAll", "MC reco all selected;n;Counts", kTH1D, {nAxis});
203191
histos.add("QA/mcReco/nRecoPrimary", "MC reco primary selected;n;Counts", kTH1D, {nAxis});
@@ -650,15 +638,12 @@ struct StronglyIntensiveCorr {
650638
histos.fill(HIST("QA/fb/nFplusNB"), nf + nb);
651639
}
652640

653-
void fillAllGapMultiplicityQA(
654-
float cent,
655-
std::array<double, NEtaGaps> const& nF,
656-
std::array<double, NEtaGaps> const& nB)
641+
void fillAllGapMultiplicityQA(float cent,
642+
std::array<double, NEtaGaps> const& nF,
643+
std::array<double, NEtaGaps> const& nB)
657644
{
658645
for (int i = 0; i < NEtaGaps; ++i) {
659-
const double gap =
660-
2.0 * (etaCenter[i] -
661-
cfgEtaWidth.value / 2.0);
646+
const double gap = 2.0 * (etaCenter[i] - cfgEtaWidth.value / 2.0);
662647

663648
// etaCenter = 0 corresponds to overlapping windows and
664649
// gives DeltaEta = -0.2. Keep only the seven physical,
@@ -667,17 +652,9 @@ struct StronglyIntensiveCorr {
667652
continue;
668653
}
669654

670-
histos.fill(
671-
HIST("QA/fbAllGaps/nFvsCentGap"),
672-
cent,
673-
gap,
674-
nF[i]);
675-
676-
histos.fill(
677-
HIST("QA/fbAllGaps/nBvsCentGap"),
678-
cent,
679-
gap,
680-
nB[i]);
655+
histos.fill(HIST("QA/fbAllGaps/nFvsCentGap"), cent, gap, nF[i]);
656+
657+
histos.fill(HIST("QA/fbAllGaps/nBvsCentGap"), cent, gap, nB[i]);
681658
}
682659
}
683660

0 commit comments

Comments
 (0)