@@ -202,6 +202,9 @@ struct HfCorrelatorDMesonPairs {
202202 registry.add (" hInputCheckD0OrD0barMcGen" , " Check on input D0 | D0bar meson candidates/event MC Gen" , {HistType::kTH1F , {axisInputD0}});
203203
204204 registry.add (" hMass" , " D Meson pair candidates;inv. mass (#pi K) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{120 , 1.5848 , 2.1848 }, {vbins, " #it{p}_{T} (GeV/#it{c})" }}});
205+ registry.add (" hMassMcRecPrompt" , " D Meson pair candidates;inv. mass (#pi K) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{120 , 1.5848 , 2.1848 }, {vbins, " #it{p}_{T} (GeV/#it{c})" }}});
206+ registry.add (" hMassMcRecNonPrompt" , " D Meson pair candidates;inv. mass (#pi K) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{120 , 1.5848 , 2.1848 }, {vbins, " #it{p}_{T} (GeV/#it{c})" }}});
207+ registry.add (" hMassMcRecReflections" , " D Meson pair candidates;inv. mass (#pi K) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{120 , 1.5848 , 2.1848 }, {vbins, " #it{p}_{T} (GeV/#it{c})" }}});
205208 }
206209
207210 // / Sets bits to select candidate type for D0
@@ -329,7 +332,6 @@ struct HfCorrelatorDMesonPairs {
329332 registry.fill (HIST (" hPhi" ), candidate.phi ());
330333 registry.fill (HIST (" hY" ), candidate.y (MassD0));
331334 registry.fill (HIST (" hPtCandAfterCut" ), candidate.pt ());
332- registry.fill (HIST (" hMass" ), hfHelper.invMassD0ToPiK (candidate), candidate.pt ());
333335
334336 bool isDCand1 = isD (candidateType1);
335337 bool isDbarCand1 = isDbar (candidateType1);
@@ -463,6 +465,13 @@ struct HfCorrelatorDMesonPairs {
463465 bool isDCand1 = isD (candidateType1);
464466 bool isDbarCand1 = isDbar (candidateType1);
465467
468+ if (isDCand1) {
469+ registry.fill (HIST (" hMass" ), hfHelper.invMassD0ToPiK (candidate1), candidate1.pt ());
470+ }
471+ if (isDbarCand1) {
472+ registry.fill (HIST (" hMass" ), hfHelper.invMassD0barToKPi (candidate1), candidate1.pt ());
473+ }
474+
466475 for (auto candidate2 = candidate1 + 1 ; candidate2 != selectedD0CandidatesGrouped.end (); ++candidate2) {
467476 if (abs (hfHelper.yD0 (candidate2)) > yCandMax) {
468477 continue ;
@@ -545,6 +554,31 @@ struct HfCorrelatorDMesonPairs {
545554 registry.fill (HIST (" hStatusSinglePart" ), 6 );
546555 }
547556
557+ if (isDCand1) {
558+ if (isTrueDCand1) {
559+ registry.fill (HIST (" hMass" ), hfHelper.invMassD0ToPiK (candidate1), candidate1.pt ());
560+ if (originRec1 == 1 ) {
561+ registry.fill (HIST (" hMassMcRecPrompt" ), hfHelper.invMassD0ToPiK (candidate1), candidate1.pt ());
562+ } else if (originRec1 == 2 ) {
563+ registry.fill (HIST (" hMassMcRecNonPrompt" ), hfHelper.invMassD0ToPiK (candidate1), candidate1.pt ());
564+ }
565+ } else if (isTrueDbarCand1) {
566+ registry.fill (HIST (" hMassMcRecReflections" ), hfHelper.invMassD0ToPiK (candidate1), candidate1.pt ());
567+ }
568+ }
569+ if (isDbarCand1) {
570+ if (isTrueDbarCand1) {
571+ registry.fill (HIST (" hMass" ), hfHelper.invMassD0barToKPi (candidate1), candidate1.pt ());
572+ if (originRec1 == 1 ) {
573+ registry.fill (HIST (" hMassMcRecPrompt" ), hfHelper.invMassD0barToKPi (candidate1), candidate1.pt ());
574+ } else if (originRec1 == 2 ) {
575+ registry.fill (HIST (" hMassMcRecNonPrompt" ), hfHelper.invMassD0barToKPi (candidate1), candidate1.pt ());
576+ }
577+ } else if (isTrueDCand1) {
578+ registry.fill (HIST (" hMassMcRecReflections" ), hfHelper.invMassD0barToKPi (candidate1), candidate1.pt ());
579+ }
580+ }
581+
548582 for (auto candidate2 = candidate1 + 1 ; candidate2 != selectedD0CandidatesGroupedMc.end (); ++candidate2) {
549583 auto ptCandidate2 = candidate2.pt ();
550584 auto yCandidate2 = hfHelper.yD0 (candidate2);
0 commit comments