Skip to content

Commit 23dbf70

Browse files
authored
[PWGCF] Add kKstarVsKtVsCent histogram to pairHistManager (#17247)
1 parent 78c1280 commit 23dbf70

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

PWGCF/Femto/Core/pairHistManager.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ enum PairHist {
6969
kKstarVsMt,
7070
kKstarVsMult,
7171
kKstarVsCent,
72+
// 3D: k* vs kT vs centrality
73+
kKstarVsKtVsCent,
7274
// 2D with mass
7375
kKstarVsMass1,
7476
kKstarVsMass2,
@@ -184,6 +186,7 @@ struct ConfPairBinning : o2::framework::ConfigurableGroup {
184186
o2::framework::Configurable<bool> usePdgMass{"usePdgMass", true, "(Reco) Use PDF masses for 4-vectors. If false, use reconstructed mass (if available). Not consulted for pure mc-truth pairs, which always use PDG mass"};
185187
o2::framework::Configurable<bool> plot1D{"plot1D", true, "(Reco/Mc) Enable 1D histograms"};
186188
o2::framework::Configurable<bool> plot2D{"plot2D", true, "(Reco/Mc) Enable 2D histograms"};
189+
o2::framework::Configurable<bool> plotKstarVsKtVsCent{"plotKstarVsKtVsCent", false, "(Reco/Mc) Enable 3D histogram (Kstar Vs Kt Vs Cent)"};
187190
o2::framework::Configurable<bool> plotKstarVsMtVsMult{"plotKstarVsMtVsMult", false, "(Reco/Mc) Enable 3D histogram (Kstar Vs Mt Vs Mult)"};
188191
o2::framework::Configurable<bool> plotKstarVsMtVsMultVsCent{"plotKstarVsMtVsMultVsCent", false, "(Reco/Mc) Enable 4D histogram (Kstar Vs Mt Vs Mult Vs Cent)"};
189192
o2::framework::Configurable<bool> plotKstarVsMtVsPt1VsPt2{"plotKstarVsMtVsPt1VsPt2", false, "(Reco/Mc) Enable 4D histogram (Kstar Vs Mt Vs Pt1 Vs Pt2)"};
@@ -277,6 +280,7 @@ constexpr std::array<histmanager::HistInfo<PairHist>, kPairHistogramLast>
277280
{kPt1VsMinv, o2::framework::HistType::kTH2F, "hPt1VsMinv", "p_{T,1} vs m_{Inv}; p_{T,1} (GeV/#it{c}); m_{Inv} (GeV/#it{c}^{2})"},
278281
{kPt2VsMinv, o2::framework::HistType::kTH2F, "hPt2VsMinv", "p_{T,2} vs m_{Inv}; p_{T,2} (GeV/#it{c}); m_{Inv} (GeV/#it{c}^{2})"},
279282
// n-D
283+
{kKstarVsKtVsCent, o2::framework::HistType::kTHnSparseF, "hKstarVsKtVsCent", "k* vs k_{T} vs centrality; k* (GeV/#it{c}); k_{T} (GeV/#it{c}); Centrality (%);"},
280284
{kKstarVsMtVsMult, o2::framework::HistType::kTHnSparseF, "hKstarVsMtVsMult", "k* vs m_{T} vs multiplicity; k* (GeV/#it{c}); m_{T} (GeV/#it{c}^{2}); Multiplicity;"},
281285
{kKstarVsMtVsMultVsCent, o2::framework::HistType::kTHnSparseF, "hKstarVsMtVsMultVsCent", "k* vs m_{T} vs multiplicity vs centrality; k* (GeV/#it{c}); m_{T} (GeV/#it{c}^{2}); Multiplicity; Centrality (%);"},
282286
// n-D with pt
@@ -367,6 +371,7 @@ constexpr std::array<histmanager::HistInfo<PairHist>, kPairHistogramLast>
367371
{kKstarVsMt, {(confAnalysis).kstar, (confAnalysis).mt}}, \
368372
{kKstarVsMult, {(confAnalysis).kstar, (confAnalysis).multiplicity}}, \
369373
{kKstarVsCent, {(confAnalysis).kstar, (confAnalysis).centrality}}, \
374+
{kKstarVsKtVsCent, {(confAnalysis).kstar, (confAnalysis).kt, (confAnalysis).centrality}}, \
370375
{kKstarVsMass1, {(confAnalysis).kstar, (confAnalysis).mass1}}, \
371376
{kKstarVsMass2, {(confAnalysis).kstar, (confAnalysis).mass2}}, \
372377
{kMass1VsMass2, {(confAnalysis).mass1, (confAnalysis).mass2}}, \
@@ -536,6 +541,7 @@ class PairHistManager
536541
// flags for histograms
537542
mPlot1d = ConfPairBinning.plot1D.value;
538543
mPlot2d = ConfPairBinning.plot2D.value;
544+
mPlotKstarVsKtVsCent = ConfPairBinning.plotKstarVsKtVsCent.value;
539545
mPlotKstarVsMtVsMult = ConfPairBinning.plotKstarVsMtVsMult.value;
540546
mPlotKstarVsMtVsMultVsCent = ConfPairBinning.plotKstarVsMtVsMultVsCent.value;
541547

@@ -936,6 +942,9 @@ class PairHistManager
936942
}
937943

938944
// higher dimensional histograms
945+
if (mPlotKstarVsKtVsCent) {
946+
mHistogramRegistry->add(analysisDir + getHistNameV2(kKstarVsKtVsCent, HistTable), getHistDesc(kKstarVsKtVsCent, HistTable), getHistType(kKstarVsKtVsCent, HistTable), {Specs.at(kKstarVsKtVsCent)});
947+
}
939948
if (mPlotKstarVsMtVsMult) {
940949
mHistogramRegistry->add(analysisDir + getHistNameV2(kKstarVsMtVsMult, HistTable), getHistDesc(kKstarVsMtVsMult, HistTable), getHistType(kKstarVsMtVsMult, HistTable), {Specs.at(kKstarVsMtVsMult)});
941950
}
@@ -1218,6 +1227,9 @@ class PairHistManager
12181227
// n-D histograms are only filled if enabled
12191228
// if "mass" getter does not exist for particle, it will be just set to 0
12201229
// the user has to make sure that in this case the bin number of this dimension is set to 1
1230+
if (mPlotKstarVsKtVsCent) {
1231+
mHistogramRegistry->fill(HIST(prefix) + HIST(AnalysisDir) + HIST(getHistName(kKstarVsKtVsCent, HistTable)), mKstar, mKt, mCent);
1232+
}
12211233
if (mPlotKstarVsMtVsMult) {
12221234
mHistogramRegistry->fill(HIST(prefix) + HIST(AnalysisDir) + HIST(getHistName(kKstarVsMtVsMult, HistTable)), mKstar, mMt, mMult);
12231235
}
@@ -1627,6 +1639,7 @@ class PairHistManager
16271639
bool mPlot1d = true;
16281640
bool mPlot2d = true;
16291641

1642+
bool mPlotKstarVsKtVsCent = false;
16301643
bool mPlotKstarVsMtVsMult = false;
16311644
bool mPlotKstarVsMtVsMultVsCent = false;
16321645

0 commit comments

Comments
 (0)