@@ -537,10 +537,6 @@ struct k892hadronphotonBkg {
537537 for (int kIdx : kshortIndices) {
538538 auto kshort = fullV0s.rawIteratorAt (kIdx );
539539
540- float kPt = kshort.pt ();
541- float kEta = kshort.eta ();
542- float kPhi = kshort.phi ();
543-
544540 for (int pIdx : photonIndices) {
545541 auto photon = fullV0s.rawIteratorAt (pIdx);
546542
@@ -554,7 +550,7 @@ struct k892hadronphotonBkg {
554550 float theta = rotRng.Uniform (o2::constants::math::PI - o2::constants::math::PI / kstarBkgConfig.rotationalCut ,
555551 o2::constants::math::PI + o2::constants::math::PI / kstarBkgConfig.rotationalCut );
556552
557- ROOT ::Math::PtEtaPhiMVector kRot (kPt , kEta , kPhi + theta, o2::constants::physics::MassK0Short);
553+ ROOT ::Math::PtEtaPhiMVector kRot (kshort. pt (), kshort. eta (), kshort. phi () + theta, o2::constants::physics::MassK0Short);
558554
559555 auto kstar = pGamma + kRot ;
560556
@@ -751,7 +747,7 @@ struct k892hadronphotonBkg {
751747
752748 // _______________________________________________
753749 // Data process: same-event rotational + mixed-event K* background
754- void processKStarBkg (soa::Join<aod::StraCollisions, aod::StraCents, aod::StraEvSels, aod::StraStamps> const & collisions,
750+ void processKStarBkg (soa::Join<aod::StraCollisions, aod::StraCents, aod::StraEvSels, aod::StraStamps, aod::StraEvSelExtras > const & collisions,
755751 V0StandardDerivedDatas const & fullV0s,
756752 dauTracks const &)
757753 {
0 commit comments