Skip to content

Commit 9a29fdf

Browse files
author
jimun_lee
committed
[PWGLF] Changed the current code of KstarInOO.cxx
1 parent 60d47b5 commit 9a29fdf

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

PWGLF/Tasks/Resonances/kstarInOO.cxx

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,10 @@ struct kstarInOO {
423423
// auto [KstarPt_Kpi, Minv_Kpi] = minvReconstruction(trk1, trk2, QA, false);
424424
// auto [KstarPt_piK, Minv_piK] = minvReconstruction(trk1, trk2, QA, true);
425425

426+
// 1. (k, pi) passed condition
426427
std::tie(KstarPt_Kpi, Minv_Kpi) = minvReconstruction(trk1, trk2, QA, false);
428+
429+
// 2. (pi, k) passed condition if trk1=pion, trk2=kaon after passing 1. candidates
427430
std::tie(KstarPt_Kpi, Minv_Kpi) = minvReconstruction(trk1, trk2, QA, true);
428431

429432
if (Minv_Kpi < 0)
@@ -533,21 +536,14 @@ struct kstarInOO {
533536
if (!trackSelection(trk1, false) || !trackSelection(trk2, false))
534537
return {-1.0, -1.0};
535538

536-
if (!flip) {
537-
if (!trackPIDKaon(trk1, QA) || !trackPIDPion(trk2, QA)) {
538-
return {-1.0, -1.0};
539-
}
540-
} else {
541-
if (!trackPIDPion(trk1, false) || !trackPIDKaon(trk2, false))
542-
return {-1.0, -1.0};
543-
}
544-
545-
if (trk1.index() >= trk2.index())
539+
if (!trackPIDKaon(trk1, QA) || !trackPIDPion(trk2, QA))
546540
return {-1.0, -1.0};
547-
// std::cout << "track1 Index: " << trk1.index() << "track2 Index: " << trk2.index() << std::endl;
548541

549-
// if (trk1.globalIndex() == trk2.globalIndex())
542+
// if (trk1.index() >= trk2.index())
550543
// return {-1.0, -1.0};
544+
// I checked that index and globalIndex was same function
545+
if (trk1.globalIndex() >= trk2.globalIndex())
546+
return {-1.0, -1.0};
551547

552548
TLorentzVector lDecayDaughter1, lDecayDaughter2, lResonance;
553549
if (!flip) {

0 commit comments

Comments
 (0)