@@ -1498,7 +1498,18 @@ struct Kstar892LightIon {
14981498 return ;
14991499 }
15001500
1501- centrality = collision.centFT0M ();
1501+ if (selectCentEstimator == kFT0M ) {
1502+ centrality = collision.centFT0M ();
1503+ } else if (selectCentEstimator == kFT0A ) {
1504+ centrality = collision.centFT0A ();
1505+ } else if (selectCentEstimator == kFT0C ) {
1506+ centrality = collision.centFT0C ();
1507+ } else if (selectCentEstimator == kFV0A ) {
1508+ centrality = collision.centFV0A ();
1509+ } else {
1510+ centrality = collision.centFT0M (); // default
1511+ }
1512+
15021513 if (!selectionEvent (collision, false )) {
15031514 return ;
15041515 }
@@ -1508,7 +1519,7 @@ struct Kstar892LightIon {
15081519 if (!selectionTrack (track1) || !selectionTrack (track2))
15091520 continue ;
15101521
1511- if (track1.index () = = track2.index ())
1522+ if (track1.index () > = track2.index ())
15121523 continue ;
15131524
15141525 if (track1.sign () * track2.sign () >= 0 )
@@ -1531,31 +1542,22 @@ struct Kstar892LightIon {
15311542 if (!ok1 || !ok2)
15321543 continue ;
15331544
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 ) {
1545+ // pi-pi misidentification
1546+ if (pdg1 == PDG_t::kPiPlus && pdg2 == PDG_t::kPiPlus ) {
15381547 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- }
1548+ ROOT::Math::PxPyPzMVector p2True (track2.px (), track2.py (), track2.pz (), massPi);
15421549
1543- if (pdg2 == PDG_t::kPiPlus ) {
1544- ROOT::Math::PxPyPzMVector p2Fake (track2.px (), track2.py (), track2.pz (), massKa);
1545- auto misIDMother = p1 + p2Fake;
1546- hMC.fill (HIST (" RecMisID/hMassMisID" ), centrality, misIDMother.Pt (), misIDMother.M ());
1550+ auto misIDMother = p1Fake + p2True;
1551+ hMC.fill (HIST (" RecMisID/hMassMisID" ), misIDMother.Pt (), centrality, misIDMother.M ());
15471552 }
15481553
1549- if (pdg1 == PDG_t::kKPlus ) {
1554+ // KK misidentification
1555+ if (pdg1 == PDG_t::kKPlus && pdg2 == PDG_t::kKPlus ) {
15501556 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- }
1557+ ROOT::Math::PxPyPzMVector p2True (track2.px (), track2.py (), track2.pz (), massKa);
15541558
1555- if (pdg2 == PDG_t::kKPlus ) {
1556- ROOT::Math::PxPyPzMVector p2Fake (track2.px (), track2.py (), track2.pz (), massPi);
1557- auto misIDMother = p1 + p2Fake;
1558- hMC.fill (HIST (" RecMisID/hMassMisID" ), centrality, misIDMother.Pt (), misIDMother.M ());
1559+ auto misIDMother = p1Fake + p2True;
1560+ hMC.fill (HIST (" RecMisID/hMassMisID" ), misIDMother.Pt (), centrality, misIDMother.M ());
15591561 }
15601562 }
15611563 }
0 commit comments