@@ -179,10 +179,10 @@ struct kstarInOO {
179179 }
180180
181181 if (cfgMcHistos) {
182- // histos.add("hPion_PID_Purity", "hPion_PID_Purity", kTH1F, {{3, -1.5, 1.5}});
183- // histos.add("hKaon_PID_Purity", "hKaon_PID_Purity", kTH1F, {{3, -1.5, 1.5}});
184- // histos.add("hSimplePion_PID_Purity", "hSimplePion_PID_Purity", kTH1F, {{3, -1.5, 1.5}});
185- // histos.add("hSimpleKaon_PID_Purity", "hSimpleKaon_PID_Purity", kTH1F, {{3, -1.5, 1.5}});
182+ histos.add (" hPion_PID_Purity" , " hPion_PID_Purity" , kTH1F , {{3 , -1.5 , 1.5 }});
183+ histos.add (" hKaon_PID_Purity" , " hKaon_PID_Purity" , kTH1F , {{3 , -1.5 , 1.5 }});
184+ histos.add (" hSimplePion_PID_Purity" , " hSimplePion_PID_Purity" , kTH1F , {{3 , -1.5 , 1.5 }});
185+ histos.add (" hSimpleKaon_PID_Purity" , " hSimpleKaon_PID_Purity" , kTH1F , {{3 , -1.5 , 1.5 }});
186186
187187 histos.add (" nEvents_MC" , " nEvents_MC" , kTH1F , {{4 , 0.0 , 4.0 }});
188188 histos.add (" nEvents_MC_True" , " nEvents_MC_True" , kTH1F , {{4 , 0.0 , 4.0 }});
@@ -191,8 +191,13 @@ struct kstarInOO {
191191
192192 histos.add (" hMC_USS_True" , " hMC_USS_True" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
193193 histos.add (" hMC_USS_KPi" , " hMC_USS_KPi" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
194+ histos.add (" hMC_USS_PiK" , " hMC_USS_PiK" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
194195 histos.add (" hMC_LSS_KPi" , " hMC_LSS_KPi" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
196+ histos.add (" hMC_LSS_PiK" , " hMC_LSS_PiK" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
197+
195198 histos.add (" hMC_USS_KPi_Mix" , " hMC_USS_KPi_Mix" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
199+ histos.add (" hMC_USS_PiK_Mix" , " hMC_USS_PiK_Mix" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
200+
196201 histos.add (" hMC_USS_KPi_True" , " hMC_USS_KPi_True" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
197202 histos.add (" hMC_USS_PiK_True" , " hMC_USS_PiK_True" , kTHnSparseF , {cfgCentAxis, ptAxis, minvAxis});
198203 }
@@ -279,13 +284,11 @@ struct kstarInOO {
279284 return false ;
280285 if (cfgTrackGlobalWoDCATrack && !track.isGlobalTrackWoDCA ())
281286 return false ;
282- // if (cfgTracknFindableTPCClusters > 0 && track.tpcNClsFindable() < cfgTracknFindableTPCClusters)
283- if (track.tpcNClsFindable () < cfgTracknFindableTPCClusters)
287+ if (cfgTracknFindableTPCClusters > 0 && track.tpcNClsFindable () < cfgTracknFindableTPCClusters)
284288 return false ;
285289 if (track.tpcNClsCrossedRows () < cfgTracknTPCCrossedRows)
286290 return false ;
287- // if (cfgTracknRowsOverFindable > 0 && track.tpcCrossedRowsOverFindableCls() > cfgTracknRowsOverFindable)
288- if (track.tpcCrossedRowsOverFindableCls () > cfgTracknRowsOverFindable)
291+ if (cfgTracknRowsOverFindable > 0 && track.tpcCrossedRowsOverFindableCls () > cfgTracknRowsOverFindable)
289292 return false ;
290293 if (track.tpcChi2NCl () > cfgTracknTPCChi2)
291294 return false ;
@@ -416,17 +419,17 @@ struct kstarInOO {
416419 std::vector<int > PIDPurityKey_Kaon;
417420 std::vector<int > PIDPurityKey_Pion;
418421
419- double KstarPt_Kpi, Minv_Kpi;
422+ // double KstarPt_Kpi, Minv_Kpi;
420423
421424 for (const auto & [trk1, trk2] : combinations (o2::soa::CombinationsFullIndexPolicy (tracks1, tracks2))) {
422425 if (!trk1.has_mcParticle () || !trk2.has_mcParticle ())
423426 continue ;
424427
425- // auto [KstarPt_Kpi, Minv_Kpi] = minvReconstruction(trk1, trk2, QA, false);
426- // auto [KstarPt_piK, Minv_piK] = minvReconstruction(trk1, trk2, QA, true);
428+ auto [KstarPt_Kpi, Minv_Kpi] = minvReconstruction (trk1, trk2, QA, false );
429+ auto [KstarPt_piK, Minv_piK] = minvReconstruction (trk1, trk2, QA, true );
427430
428- std::tie (KstarPt_Kpi, Minv_Kpi) = minvReconstruction (trk1, trk2, QA, false );
429- std::tie (KstarPt_Kpi, Minv_Kpi) = minvReconstruction (trk1, trk2, QA, true );
431+ // std::tie(KstarPt_Kpi, Minv_Kpi) = minvReconstruction(trk1, trk2, QA, false);
432+ // std::tie(KstarPt_Kpi, Minv_Kpi) = minvReconstruction(trk1, trk2, QA, true);
430433
431434 if (Minv_Kpi < 0 )
432435 continue ;
@@ -436,12 +439,15 @@ struct kstarInOO {
436439 if (!IsMix) {
437440 if (conjugate < 0 ) {
438441 histos.fill (HIST (" hMC_USS_KPi" ), centrality, KstarPt_Kpi, Minv_Kpi);
442+ histos.fill (HIST (" hMC_USS_PiK" ), centrality, KstarPt_piK, Minv_piK);
439443 } else if (conjugate > 0 ) {
440444 histos.fill (HIST (" hMC_LSS_KPi" ), centrality, KstarPt_Kpi, Minv_Kpi);
445+ histos.fill (HIST (" hMC_LSS_PiK" ), centrality, KstarPt_piK, Minv_piK);
441446 }
442447 } else {
443448 if (conjugate < 0 ) {
444449 histos.fill (HIST (" hMC_USS_KPi_Mix" ), centrality, KstarPt_Kpi, Minv_Kpi);
450+ histos.fill (HIST (" hMC_USS_PiK_Mix" ), centrality, KstarPt_piK, Minv_piK);
445451 }
446452 }
447453 }
@@ -535,20 +541,14 @@ struct kstarInOO {
535541 if (!trackSelection (trk1, false ) || !trackSelection (trk2, false ))
536542 return {-1.0 , -1.0 };
537543
538- if (!flip) {
539- if (!trackPIDKaon (trk1, QA) || !trackPIDPion (trk2, QA)) {
540- return {-1.0 , -1.0 };
541- }
542- } else {
543- if (!trackPIDPion (trk1, false ) || !trackPIDKaon (trk2, false ))
544- return {-1.0 , -1.0 };
545- }
546-
547- if (trk1.index () >= trk2.index ())
544+ if (!trackPIDKaon (trk1, QA) || !trackPIDPion (trk2, QA))
548545 return {-1.0 , -1.0 };
549546
550- // if (trk1.globalIndex () == trk2.globalIndex ())
547+ // if (trk1.index () >= trk2.index ())
551548 // return {-1.0, -1.0};
549+ // I checked that index and globalIndex was same function
550+ if (trk1.globalIndex () >= trk2.globalIndex ())
551+ return {-1.0 , -1.0 };
552552
553553 TLorentzVector lDecayDaughter1, lDecayDaughter2, lResonance;
554554 if (!flip) {
0 commit comments