@@ -172,10 +172,12 @@ struct kstarInOO {
172172
173173 if (cfgDataHistos) {
174174 histos.add (" nEvents" , " nEvents" , kTH1F , {{4 , 0.0 , 4.0 }});
175- histos.add (" hUSS" , " hUSS" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
176- histos.add (" hLSS" , " hLSS" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
177- histos.add (" hUSS_Mix" , " hUSS_Mix" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
178- histos.add (" hLSS_Mix" , " hLSS_Mix" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
175+ histos.add (" hUSS_KPi" , " hUSS_KPi" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
176+ histos.add (" hUSS_PiK" , " hUSS_PiK" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
177+ histos.add (" hLSS_KPi" , " hLSS_KPi" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
178+ histos.add (" hLSS_PiK" , " hLSS_PiK" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
179+ histos.add (" hUSS_Mix_KPi" , " hUSS_Mix_KPi" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
180+ histos.add (" hUSS_Mix_PiK" , " hUSS_Mix_PiK" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
179181 }
180182
181183 if (cfgMcHistos) {
@@ -385,26 +387,29 @@ struct kstarInOO {
385387
386388 for (const auto & [trk1, trk2] : combinations (o2::soa::CombinationsFullIndexPolicy (tracks1, tracks2))) {
387389
388- auto [KstarPt, Minv] = minvReconstruction (trk1, trk2, QA, false );
390+ auto [KstarPt_Kpi, Minv_Kpi] = minvReconstruction (trk1, trk2, QA, false );
391+ auto [KstarPt_piK, Minv_piK] = minvReconstruction (trk1, trk2, QA, true );
392+
393+ if (Minv_Kpi < 0 )
394+ continue ;
389395
390396 double conjugate = trk1.sign () * trk2.sign ();
391397 if (cfgDataHistos) {
392- if (Minv > 0 ) {
393- if (!IsMix) {
394- if (conjugate < 0 ) {
395- histos.fill (HIST (" hUSS" ), centrality, KstarPt, Minv);
396- } else if (conjugate > 0 ) {
397- histos.fill (HIST (" hLSS" ), centrality, KstarPt, Minv);
398- }
399- } else {
400- if (conjugate < 0 ) {
401- histos.fill (HIST (" hUSS_Mix" ), centrality, KstarPt, Minv);
402- } else if (conjugate > 0 ) {
403- histos.fill (HIST (" hLSS_Mix" ), centrality, KstarPt, Minv);
404- }
398+ if (!IsMix) {
399+ if (conjugate < 0 ) {
400+ histos.fill (HIST (" hUSS_KPi" ), centrality, KstarPt_Kpi, Minv_Kpi);
401+ histos.fill (HIST (" hUSS_PiK" ), centrality, KstarPt_piK, Minv_piK);
402+ } else if (conjugate > 0 ) {
403+ histos.fill (HIST (" hLSS_KPi" ), centrality, KstarPt_Kpi, Minv_Kpi);
404+ histos.fill (HIST (" hLSS_PiK" ), centrality, KstarPt_piK, Minv_piK);
405+ }
406+ } else {
407+ if (conjugate < 0 ) {
408+ histos.fill (HIST (" hUSS_KPi_Mix" ), centrality, KstarPt_Kpi, Minv_Kpi);
409+ histos.fill (HIST (" hUSS_PiK_Mix" ), centrality, KstarPt_piK, Minv_piK);
405410 }
406411 }
407- } // cfgDataHistos
412+ }
408413 } // for
409414 } // TrackSlicing
410415
@@ -419,18 +424,13 @@ struct kstarInOO {
419424 std::vector<int > PIDPurityKey_Kaon;
420425 std::vector<int > PIDPurityKey_Pion;
421426
422- // double KstarPt_Kpi, Minv_Kpi;
423-
424427 for (const auto & [trk1, trk2] : combinations (o2::soa::CombinationsFullIndexPolicy (tracks1, tracks2))) {
425428 if (!trk1.has_mcParticle () || !trk2.has_mcParticle ())
426429 continue ;
427430
428431 auto [KstarPt_Kpi, Minv_Kpi] = minvReconstruction (trk1, trk2, QA, false );
429432 auto [KstarPt_piK, Minv_piK] = minvReconstruction (trk1, trk2, QA, true );
430433
431- // std::tie(KstarPt_Kpi, Minv_Kpi) = minvReconstruction(trk1, trk2, QA, false);
432- // std::tie(KstarPt_Kpi, Minv_Kpi) = minvReconstruction(trk1, trk2, QA, true);
433-
434434 if (Minv_Kpi < 0 )
435435 continue ;
436436
@@ -704,7 +704,7 @@ struct kstarInOO {
704704 }
705705 TrackSlicingMC (collision, tracks, collision, tracks, false , true );
706706 } // processSameEvents_MC
707- PROCESS_SWITCH (kstarInOO, processSameEventMC, " process Same Event MC" , true );
707+ PROCESS_SWITCH (kstarInOO, processSameEventMC, " process Same Event MC" , false );
708708
709709 // =======================================================
710710 // |
@@ -776,6 +776,10 @@ struct kstarInOO {
776776 if (cfgMcHistos) {
777777 histos.fill (HIST (" hMC_kstar_True" ), centrality, particle.pt ());
778778 }
779+ if (cfgMcHistos) {
780+ histos.fill (HIST (" nEvents_MC_True" ), 1.5 );
781+ }
782+
779783 } // loop over particles
780784 } // processMCTrue
781785 PROCESS_SWITCH (kstarInOO, processMCTrue, " process MC True" , false );
0 commit comments