Skip to content

Commit 46e5c21

Browse files
authored
[PWGLF] K892PM Flow - Optimise the binning and remove unused variables (#9677)
1 parent bd48cc9 commit 46e5c21

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

PWGLF/Tasks/Resonances/chk892Flow.cxx

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,8 @@ struct Chk892Flow {
8585
kKstarN,
8686
kKstarP_Mix,
8787
kKstarN_Mix,
88-
kKstarP_GenINEL10,
89-
kKstarN_GenINEL10,
90-
kKstarP_GenINELgt10,
91-
kKstarN_GenINELgt10,
92-
kKstarP_GenTrig10,
93-
kKstarN_GenTrig10,
94-
kKstarP_GenEvtSel,
95-
kKstarN_GenEvtSel,
96-
kKstarP_Rec,
97-
kKstarN_Rec,
98-
kKstarP_RecRot,
99-
kKstarN_RecRot,
88+
kKstarP_Rot,
89+
kKstarN_Rot,
10090
kTYEnd
10191
};
10292

@@ -125,6 +115,7 @@ struct Chk892Flow {
125115
ConfigurableAxis cfgBinsCent{"cfgBinsCent", {VARIABLE_WIDTH, 0.0, 1.0, 5.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0, 110.0}, "Binning of the centrality axis"};
126116
ConfigurableAxis cfgBinsVtxZ{"cfgBinsVtxZ", {VARIABLE_WIDTH, -10.0, -9.0, -8.0, -7.0, -6.0, -5.0, -4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0}, "Binning of the z-vertex axis"};
127117
Configurable<int> cNbinsDiv{"cNbinsDiv", 1, "Integer to divide the number of bins"};
118+
Configurable<int> cNbinsDivQA{"cNbinsDivQA", 1, "Integer to divide the number of bins for QA"};
128119

129120
/// Event cuts
130121
o2::analysis::CollisonCuts colCuts;
@@ -250,23 +241,19 @@ struct Chk892Flow {
250241
AxisSpec centAxis = {cfgBinsCent, "T0M (%)"};
251242
AxisSpec vtxzAxis = {cfgBinsVtxZ, "Z Vertex (cm)"};
252243
AxisSpec epAxis = {100, -1.0 * constants::math::PI, constants::math::PI};
253-
AxisSpec epresAxis = {100, -1.02, 1.02};
254244
AxisSpec ptAxis = {cfgBinsPt, "#it{p}_{T} (GeV/#it{c})"};
255245
AxisSpec ptAxisQA = {cfgBinsPtQA, "#it{p}_{T} (GeV/#it{c})"};
256246
AxisSpec v2Axis = {200, -1, 1, "#v_{2}"};
257247
AxisSpec radiusAxis = {50, 0, 5, "Radius (cm)"};
258-
AxisSpec cpaAxis = {50, 0.95, 1.0, "CPA"};
248+
AxisSpec cpaAxis = {30, 0.97, 1.0, "CPA"};
259249
AxisSpec tauAxis = {250, 0, 25, "Lifetime (cm)"};
260-
AxisSpec dcaAxis = {200, 0, 2, "DCA (cm)"};
261-
AxisSpec dcaxyAxis = {200, 0, 2, "DCA_{#it{xy}} (cm)"};
250+
AxisSpec dcaAxis = {100, 0, 2, "DCA (cm)"};
251+
AxisSpec dcaxyAxis = {100, 0, 1, "DCA_{#it{xy}} (cm)"};
262252
AxisSpec dcazAxis = {200, 0, 2, "DCA_{#it{z}} (cm)"};
263-
AxisSpec yAxis = {100, -1, 1, "Rapidity"};
253+
AxisSpec yAxis = {50, -1, 1, "Rapidity"};
264254
AxisSpec invMassAxisK0s = {400 / cNbinsDiv, 0.3, 0.7, "Invariant Mass (GeV/#it{c}^2)"}; // K0s ~497.611
265255
AxisSpec invMassAxisReso = {900 / cNbinsDiv, 0.5f, 1.4f, "Invariant Mass (GeV/#it{c}^2)"}; // chK(892) ~892
266-
AxisSpec invMassAxisScan = {150, 0, 1.5, "Invariant Mass (GeV/#it{c}^2)"}; // For selection
267-
AxisSpec pidQAAxis = {130, -6.5, 6.5};
268-
AxisSpec dataTypeAxis = {9, 0, 9, "Histogram types"};
269-
AxisSpec mcTypeAxis = {4, 0, 4, "Histogram types"};
256+
AxisSpec pidQAAxis = {130 / cNbinsDivQA, -6.5, 6.5};
270257

271258
// THnSparse
272259
AxisSpec axisType = {BinType::kTYEnd, 0, BinType::kTYEnd, "Type of bin with charge and mix"};
@@ -883,7 +870,7 @@ struct Chk892Flow {
883870
}
884871
auto lPhiMinusPsiKstar = RecoDecay::constrainAngle(lResonanceRot.Phi() - lEPDet, 0.0, 1); // constrain angle to range 0, Pi
885872
auto v2Kstar = std::cos(static_cast<float>(nmode) * lPhiMinusPsiKstar);
886-
typeKstar = bTrack.sign() > 0 ? BinType::kKstarP_RecRot : BinType::kKstarN_RecRot;
873+
typeKstar = bTrack.sign() > 0 ? BinType::kKstarP_Rot : BinType::kKstarN_Rot;
887874
histos.fill(HIST("hInvmass_Kstar"), typeKstar, lCentrality, lResonanceRot.Pt(), lResonanceRot.M(), v2Kstar);
888875
}
889876
}

0 commit comments

Comments
 (0)