@@ -1508,7 +1508,7 @@ struct Kstar892LightIon {
15081508 if (!selectionTrack (track1) || !selectionTrack (track2))
15091509 continue ;
15101510
1511- if (track1.index () = = track2.index ())
1511+ if (track1.index () > = track2.index ())
15121512 continue ;
15131513
15141514 if (track1.sign () * track2.sign () >= 0 )
@@ -1531,30 +1531,21 @@ struct Kstar892LightIon {
15311531 if (!ok1 || !ok2)
15321532 continue ;
15331533
1534- ROOT::Math::PxPyPzMVector p1 (track1.px (), track1.py (), track1.pz (), pdg1 == PDG_t::kPiPlus ? massPi : massKa);
1535- ROOT::Math::PxPyPzMVector p2 (track2.px (), track2.py (), track2.pz (), pdg2 == PDG_t::kPiPlus ? massPi : massKa);
1536-
1537- if (pdg1 == PDG_t::kPiPlus ) {
1534+ // pi-pi misidentification
1535+ if (pdg1 == PDG_t::kPiPlus && pdg2 == PDG_t::kPiPlus ) {
15381536 ROOT::Math::PxPyPzMVector p1Fake (track1.px (), track1.py (), track1.pz (), massKa);
1539- auto misIDMother = p1Fake + p2;
1540- hMC.fill (HIST (" RecMisID/hMassMisID" ), centrality, misIDMother.Pt (), misIDMother.M ());
1541- }
1537+ ROOT::Math::PxPyPzMVector p2True (track2.px (), track2.py (), track2.pz (), massPi);
15421538
1543- if (pdg2 == PDG_t::kPiPlus ) {
1544- ROOT::Math::PxPyPzMVector p2Fake (track2.px (), track2.py (), track2.pz (), massKa);
1545- auto misIDMother = p1 + p2Fake;
1539+ auto misIDMother = p1Fake + p2True;
15461540 hMC.fill (HIST (" RecMisID/hMassMisID" ), centrality, misIDMother.Pt (), misIDMother.M ());
15471541 }
15481542
1549- if (pdg1 == PDG_t::kKPlus ) {
1543+ // KK misidentification
1544+ if (pdg1 == PDG_t::kKPlus && pdg2 == PDG_t::kKPlus ) {
15501545 ROOT::Math::PxPyPzMVector p1Fake (track1.px (), track1.py (), track1.pz (), massPi);
1551- auto misIDMother = p1Fake + p2;
1552- hMC.fill (HIST (" RecMisID/hMassMisID" ), centrality, misIDMother.Pt (), misIDMother.M ());
1553- }
1546+ ROOT::Math::PxPyPzMVector p2True (track2.px (), track2.py (), track2.pz (), massKa);
15541547
1555- if (pdg2 == PDG_t::kKPlus ) {
1556- ROOT::Math::PxPyPzMVector p2Fake (track2.px (), track2.py (), track2.pz (), massPi);
1557- auto misIDMother = p1 + p2Fake;
1548+ auto misIDMother = p1Fake + p2True;
15581549 hMC.fill (HIST (" RecMisID/hMassMisID" ), centrality, misIDMother.Pt (), misIDMother.M ());
15591550 }
15601551 }
0 commit comments