@@ -35,10 +35,12 @@ using namespace o2::framework::expressions;
3535namespace
3636{
3737enum CandTypeSel {
38- SigD0 = 0 , // Signal D0
39- SigD0bar, // Signal D0bar
40- ReflectedD0, // Reflected D0
41- ReflectedD0bar // Reflected D0bar
38+ SigD0 = 0 , // Signal D0
39+ SigD0bar, // Signal D0bar
40+ ReflectedD0, // Reflected D0
41+ ReflectedD0bar, // Reflected D0bar
42+ PureSigD0, // Signal D0 exclude Reflected D0bar
43+ PureSigD0bar // Signal D0bar exclude Reflected D0
4244};
4345} // namespace
4446struct HfTaskD0 {
@@ -63,7 +65,7 @@ struct HfTaskD0 {
6365 ConfigurableAxis thnConfigAxisPt{" thnConfigAxisPt" , {500 , 0 , 50 }, " Cand. pT bins" };
6466 ConfigurableAxis thnConfigAxisY{" thnConfigAxisY" , {20 , -1 , 1 }, " Cand. rapidity bins" };
6567 ConfigurableAxis thnConfigAxisOrigin{" thnConfigAxisOrigin" , {3 , -0.5 , 2.5 }, " Cand. origin type" };
66- ConfigurableAxis thnConfigAxisCandType{" thnConfigAxisCandType" , {4 , -0.5 , 3 .5 }, " D0 type" };
68+ ConfigurableAxis thnConfigAxisCandType{" thnConfigAxisCandType" , {6 , -0.5 , 5 .5 }, " D0 type" };
6769 ConfigurableAxis thnConfigAxisGenPtD{" thnConfigAxisGenPtD" , {500 , 0 , 50 }, " Gen Pt D" };
6870 ConfigurableAxis thnConfigAxisGenPtB{" thnConfigAxisGenPtB" , {1000 , 0 , 100 }, " Gen Pt B" };
6971 ConfigurableAxis thnConfigAxisNumPvContr{" thnConfigAxisNumPvContr" , {200 , -0.5 , 199.5 }, " Number of PV contributors" };
@@ -318,16 +320,36 @@ struct HfTaskD0 {
318320 if constexpr (applyMl) {
319321 if (candidate.isSelD0 () >= selectionFlagD0) {
320322 registry.fill (HIST (" hBdtScoreVsMassVsPtVsPtBVsYVsOriginVsD0Type" ), candidate.mlProbD0 ()[0 ], candidate.mlProbD0 ()[1 ], candidate.mlProbD0 ()[2 ], massD0, ptCandidate, hfHelper.yD0 (candidate), SigD0);
323+ if (candidate.isSelD0bar ()) {
324+ registry.fill (HIST (" hBdtScoreVsMassVsPtVsPtBVsYVsOriginVsD0Type" ), candidate.mlProbD0 ()[0 ], candidate.mlProbD0 ()[1 ], candidate.mlProbD0 ()[2 ], massD0, ptCandidate, hfHelper.yD0 (candidate), ReflectedD0);
325+ } else if (!candidate.isSelD0bar ()) {
326+ registry.fill (HIST (" hBdtScoreVsMassVsPtVsPtBVsYVsOriginVsD0Type" ), candidate.mlProbD0 ()[0 ], candidate.mlProbD0 ()[1 ], candidate.mlProbD0 ()[2 ], massD0, ptCandidate, hfHelper.yD0 (candidate), PureSigD0);
327+ }
321328 }
322329 if (candidate.isSelD0bar () >= selectionFlagD0bar) {
323330 registry.fill (HIST (" hBdtScoreVsMassVsPtVsPtBVsYVsOriginVsD0Type" ), candidate.mlProbD0bar ()[0 ], candidate.mlProbD0bar ()[1 ], candidate.mlProbD0bar ()[2 ], massD0bar, ptCandidate, hfHelper.yD0 (candidate), SigD0bar);
331+ if (candidate.isSelD0 ()) {
332+ registry.fill (HIST (" hBdtScoreVsMassVsPtVsPtBVsYVsOriginVsD0Type" ), candidate.mlProbD0 ()[0 ], candidate.mlProbD0 ()[1 ], candidate.mlProbD0 ()[2 ], massD0bar, ptCandidate, hfHelper.yD0 (candidate), ReflectedD0bar);
333+ } else if (!candidate.isSelD0 ()) {
334+ registry.fill (HIST (" hBdtScoreVsMassVsPtVsPtBVsYVsOriginVsD0Type" ), candidate.mlProbD0bar ()[0 ], candidate.mlProbD0bar ()[1 ], candidate.mlProbD0bar ()[2 ], massD0bar, ptCandidate, hfHelper.yD0 (candidate), PureSigD0bar);
335+ }
324336 }
325337 } else {
326338 if (candidate.isSelD0 () >= selectionFlagD0) {
327339 registry.fill (HIST (" hMassVsPtVsPtBVsYVsOriginVsD0Type" ), massD0, ptCandidate, hfHelper.yD0 (candidate), SigD0);
340+ if (candidate.isSelD0bar ()) {
341+ registry.fill (HIST (" hMassVsPtVsPtBVsYVsOriginVsD0Type" ), massD0, ptCandidate, hfHelper.yD0 (candidate), ReflectedD0);
342+ } else if (!candidate.isSelD0bar ()) {
343+ registry.fill (HIST (" hMassVsPtVsPtBVsYVsOriginVsD0Type" ), massD0, ptCandidate, hfHelper.yD0 (candidate), PureSigD0);
344+ }
328345 }
329346 if (candidate.isSelD0bar () >= selectionFlagD0bar) {
330347 registry.fill (HIST (" hMassVsPtVsPtBVsYVsOriginVsD0Type" ), massD0bar, ptCandidate, hfHelper.yD0 (candidate), SigD0bar);
348+ if (candidate.isSelD0 ()) {
349+ registry.fill (HIST (" hMassVsPtVsPtBVsYVsOriginVsD0Type" ), massD0bar, ptCandidate, hfHelper.yD0 (candidate), ReflectedD0bar);
350+ } else if (!candidate.isSelD0 ()) {
351+ registry.fill (HIST (" hMassVsPtVsPtBVsYVsOriginVsD0Type" ), massD0bar, ptCandidate, hfHelper.yD0 (candidate), PureSigD0bar);
352+ }
331353 }
332354 }
333355 }
0 commit comments