@@ -282,6 +282,7 @@ struct HfCorrelatorD0Hadrons {
282282 AxisSpec axisTrkCount = {5 , 0 ., 5 .};
283283 AxisSpec axisBdtScoreBkg = {100 , 0 ., 1 ., " Bdt score background" };
284284 AxisSpec axisBdtScorePrompt = {100 , 0 ., 1 ., " Bdt score prompt" };
285+ AxisSpec axisOrigin = {10 , 0 , 10 , " Candidate origin" };
285286
286287 // Histograms for Data
287288 registry.add (" hPtCand" , " D0, D0bar candidates" , {HistType::kTH1F , {axisPtD}});
@@ -297,7 +298,7 @@ struct HfCorrelatorD0Hadrons {
297298 registry.add (" hMass1D" , " D0, D0bar candidates mass" , {HistType::kTH1F , {axisMassD}});
298299 registry.add (" hMassD01D" , " D0 candidates mass" , {HistType::kTH1F , {axisMassD}});
299300 registry.add (" hMassD0bar1D" , " D0bar candidates mass" , {HistType::kTH1F , {axisMassD}});
300- registry.add (" hMLScoresVsMassVsPt" , " D0, D0bar candidates massVsPt" , {HistType::kTHnSparseD , {{axisBdtScoreBkg}, {axisBdtScorePrompt}, {axisMassD}, {axisPtD}}});
301+ registry.add (" hMLScoresVsMassVsPt" , " D0, D0bar candidates massVsPt" , {HistType::kTHnSparseD , {{axisBdtScoreBkg}, {axisBdtScorePrompt}, {axisMassD}, {axisPtD}, {axisOrigin} }});
301302 // Histograms for MC Reco
302303 registry.add (" hPtCandRec" , " D0, D0bar candidates - MC reco" , {HistType::kTH1F , {axisPtD}});
303304 registry.add (" hPtProng0Rec" , " D0, D0bar candidates prong 0 - MC reco" , {HistType::kTH1F , {axisPtD}});
@@ -313,8 +314,8 @@ struct HfCorrelatorD0Hadrons {
313314 registry.add (" hMassD0barRecSig" , " D0bar signal candidates massVsPt - MC reco" , {HistType::kTH2F , {{axisMassD}, {axisPtD}}});
314315 registry.add (" hMassD0barRecRef" , " D0bar reflection candidates massVsPt - MC reco" , {HistType::kTH2F , {{axisMassD}, {axisPtD}}});
315316 registry.add (" hMassD0barRecBg" , " D0bar background candidates massVsPt - MC reco" , {HistType::kTH2F , {{axisMassD}, {axisPtD}}});
316- registry.add (" hPtCandRecSigPrompt" , " D+ ,Hadron candidates Prompt - MC Reco" , {HistType::kTH1F , {axisPtD}});
317- registry.add (" hPtCandRecSigNonPrompt" , " D+ ,Hadron candidates Non Prompt - MC Reco" , {HistType::kTH1F , {axisPtD}});
317+ registry.add (" hPtCandRecSigPrompt" , " D0 ,Hadron candidates Prompt - MC Reco" , {HistType::kTH1F , {axisPtD}});
318+ registry.add (" hPtCandRecSigNonPrompt" , " D0 ,Hadron candidates Non Prompt - MC Reco" , {HistType::kTH1F , {axisPtD}});
318319 registry.add (" hPtVsMultiplicityRecPrompt" , " Multiplicity FT0M - MC Rec Prompt" , {HistType::kTH2F , {{axisPtD}, {axisMultFT0M}}});
319320 registry.add (" hPtVsMultiplicityRecNonPrompt" , " Multiplicity FT0M - MC Rec Non Prompt" , {HistType::kTH2F , {{axisPtD}, {axisMultFT0M}}});
320321 registry.add (" hPtParticleAssocVsCandRec" , " Associated Particle - MC reco" , {HistType::kTH2F , {{axisPtHadron}, {axisPtD}}});
@@ -406,7 +407,7 @@ struct HfCorrelatorD0Hadrons {
406407 for (unsigned int iclass = 0 ; iclass < classMl->size (); iclass++) {
407408 outputMlD0[iclass] = candidate.mlProbD0 ()[classMl->at (iclass)];
408409 }
409- registry.fill (HIST (" hMLScoresVsMassVsPt" ), outputMlD0[0 ], outputMlD0[2 ], hfHelper.invMassD0ToPiK (candidate), candidate.pt ());
410+ registry.fill (HIST (" hMLScoresVsMassVsPt" ), outputMlD0[0 ], outputMlD0[2 ], hfHelper.invMassD0ToPiK (candidate), candidate.pt (), candidate. isSelD0bar () ? o2::aod::hf_correlation_d0_hadron::D0D0barBoth : o2::aod::hf_correlation_d0_hadron::D0Only );
410411 }
411412 if (candidate.isSelD0bar () >= selectionFlagD0bar) {
412413 registry.fill (HIST (" hMass" ), hfHelper.invMassD0barToKPi (candidate), candidate.pt (), efficiencyWeight);
@@ -415,7 +416,7 @@ struct HfCorrelatorD0Hadrons {
415416 for (unsigned int iclass = 0 ; iclass < classMl->size (); iclass++) {
416417 outputMlD0bar[iclass] = candidate.mlProbD0bar ()[classMl->at (iclass)];
417418 }
418- registry.fill (HIST (" hMLScoresVsMassVsPt" ), outputMlD0bar[0 ], outputMlD0bar[2 ], hfHelper.invMassD0barToKPi (candidate), candidate.pt ());
419+ registry.fill (HIST (" hMLScoresVsMassVsPt" ), outputMlD0bar[0 ], outputMlD0bar[2 ], hfHelper.invMassD0barToKPi (candidate), candidate.pt (), candidate. isSelD0 () ? o2::aod::hf_correlation_d0_hadron::D0D0barBoth : o2::aod::hf_correlation_d0_hadron::D0barOnly );
419420 }
420421 entryD0CandRecoInfo (hfHelper.invMassD0ToPiK (candidate), hfHelper.invMassD0barToKPi (candidate), candidate.pt (), outputMlD0[0 ], outputMlD0[2 ], outputMlD0bar[0 ], outputMlD0bar[2 ]);
421422
0 commit comments