Skip to content

Commit cfe903a

Browse files
[PWGHF/D2H] Correcting Anti-Dstar filling for the Analysis of multiplicity dependent production cross section of Dstar (AliceO2Group#9273)
1 parent b27c935 commit cfe903a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

PWGHF/D2H/Tasks/taskDstarToD0Pi.cxx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ struct HfTaskDstarToD0Pi {
174174
registry.add("Yield/hDeltaInvMassVsPtVsCentVsBDTScore", "#Delta #it{M}_{inv} Vs Pt Vs Cent Vs BDTScore", {HistType::kTHnSparseF, {{axisDeltaInvMass}, {vecPtBins, "#it{p}_{T} (GeV/#it{c})"}, {axisCentrality}, {axisBDTScoreBackground}, {axisBDTScorePrompt}, {axisBDTScoreNonPrompt}}});
175175
}
176176
if (doprocessMcWML) {
177+
registry.add("Efficiency/hPtVsCentVsBDTScore", "Pt Vs Cent Vs BDTScore", {HistType::kTHnSparseF, {{vecPtBins, "#it{p}_{T} (GeV/#it{c})"}, {axisCentrality}, {axisBDTScoreBackground}, {axisBDTScorePrompt}, {axisBDTScoreNonPrompt}}});
177178
registry.add("Efficiency/hPtPromptVsCentVsBDTScore", "Pt Vs Cent Vs BDTScore", {HistType::kTHnSparseF, {{vecPtBins, "#it{p}_{T} (GeV/#it{c})"}, {axisCentrality}, {axisBDTScoreBackground}, {axisBDTScorePrompt}, {axisBDTScoreNonPrompt}}});
178179
registry.add("Efficiency/hPtNonPromptVsCentVsBDTScore", "Pt Vs Cent Vs BDTScore", {HistType::kTHnSparseF, {{vecPtBins, "#it{p}_{T} (GeV/#it{c})"}, {axisCentrality}, {axisBDTScoreBackground}, {axisBDTScorePrompt}, {axisBDTScoreNonPrompt}}});
179180
// registry.add("Efficiency/hPtBkgVsCentVsBDTScore", "Pt Vs Cent Vs BDTScore", {HistType::kTHnSparseF, {{vecPtBins, "#it{p}_{T} (GeV/#it{c})"}, {axisCentrality}, {axisBDTScoreBackground}, {axisBDTScorePrompt}, {axisBDTScoreNonPrompt}}});
@@ -270,6 +271,12 @@ struct HfTaskDstarToD0Pi {
270271
if (0.142f < deltaMAntiDstar && deltaMAntiDstar < 0.15f) {
271272
nCandsSignalRegion++;
272273
}
274+
275+
if constexpr (applyMl) {
276+
auto mlBdtScore = candDstar.mlProbDstarToD0Pi();
277+
registry.fill(HIST("Yield/hDeltaInvMassVsPtVsCentVsBDTScore"), deltaMAntiDstar, candDstar.pt(), centrality, mlBdtScore[0], mlBdtScore[1], mlBdtScore[2]);
278+
}
279+
273280
registry.fill(HIST("Yield/hDeltaInvMassDstar3D"), deltaMAntiDstar, candDstar.pt(), centrality);
274281
registry.fill(HIST("Yield/hDeltaInvMassDstar2D"), deltaMAntiDstar, candDstar.pt());
275282
registry.fill(HIST("Yield/hInvMassD0"), invD0Bar, candDstar.ptD0());
@@ -326,6 +333,10 @@ struct HfTaskDstarToD0Pi {
326333
if (candDstarMcRec.isSelDstarToD0Pi()) { // if all selection passed
327334
registry.fill(HIST("QA/hPtFullRecoDstarRecSig"), ptDstarRecSig);
328335
registry.fill(HIST("Efficiency/hPtVsCentFullRecoDstarRecSig"), ptDstarRecSig, centrality);
336+
if constexpr (applyMl) {
337+
auto bdtScore = candDstarMcRec.mlProbDstarToD0Pi();
338+
registry.fill(HIST("Efficiency/hPtVsCentVsBDTScore"), ptDstarRecSig, centrality, bdtScore[0], bdtScore[1], bdtScore[2]);
339+
}
329340
}
330341
registry.fill(HIST("QA/hCPASkimD0RecSig"), candDstarMcRec.cpaD0());
331342
registry.fill(HIST("QA/hEtaSkimD0RecSig"), candDstarMcRec.etaD0());
@@ -343,10 +354,8 @@ struct HfTaskDstarToD0Pi {
343354
if (candDstarMcRec.isSelDstarToD0Pi()) { // if all selection passed
344355
registry.fill(HIST("QA/hPtFullRecoPromptDstarRecSig"), ptDstarRecSig);
345356
if constexpr (applyMl) {
346-
// LOGF(info, "Deep: Prompt MC Rec Task Dstar: ML applied");
347357
auto bdtScore = candDstarMcRec.mlProbDstarToD0Pi();
348358
registry.fill(HIST("Efficiency/hPtPromptVsCentVsBDTScore"), ptDstarRecSig, centrality, bdtScore[0], bdtScore[1], bdtScore[2]);
349-
// LOGF(info, "Deep: Prompt MC Rec Task Dstar: ML applied, Efficiency filled");
350359
}
351360
}
352361
} else if (candDstarMcRec.originMcRec() == RecoDecay::OriginType::NonPrompt) { // only non-prompt signal at reconstruction level
@@ -374,7 +383,6 @@ struct HfTaskDstarToD0Pi {
374383
}
375384
}
376385
} // candidate loop ends
377-
// LOGF(info, "Deep: MC Rec Task Dstar finished");
378386
}
379387

380388
/// @brief This function runs over MC at gen level to obatin efficiency

0 commit comments

Comments
 (0)