1313// / \brief Reconstruction of Xi* resonance.
1414// /
1515// / \author Min-jae Kim <minjae.kim@cern.ch>, Bong-Hwi Lim <bong-hwi.lim@cern.ch>
16- #include < TLorentzVector.h>
16+ // #include <TLorentzVector.h>
17+ #include " Math/Vector4D.h"
1718#include " TF1.h"
1819#include " TRandom3.h"
1920
@@ -34,6 +35,7 @@ using namespace o2::framework;
3435using namespace o2 ::framework::expressions;
3536using namespace o2 ::soa;
3637using namespace o2 ::constants::physics;
38+ using LorentzVectorPtEtaPhiMass = ROOT::Math::PtEtaPhiMVector;
3739// Service<o2::framework::O2DatabasePDG> pdgDB;
3840
3941enum {
@@ -692,7 +694,7 @@ struct Xi1530Analysisqa {
692694 }
693695 }
694696
695- TLorentzVector lDecayDaughter1, lDecayDaughter2, lResonance; // It will be replaced to use RecoDecay (In fixing...)
697+ LorentzVectorPtEtaPhiMass lDecayDaughter1, lDecayDaughter2, lResonance; // It will be replaced to use RecoDecay (In fixing...)
696698
697699 for (const auto & [trk1, trk2] : combinations (CombinationsFullIndexPolicy (dTracks1, dTracks2))) {
698700
@@ -896,8 +898,8 @@ struct Xi1530Analysisqa {
896898 }
897899 }
898900
899- lDecayDaughter1. SetPtEtaPhiM (trk1ptPi, trk1.eta (), trk1.phi (), massPi);
900- lDecayDaughter2. SetPtEtaPhiM (trk2ptXi, trk2.eta (), trk2.phi (), trk2.mXi ());
901+ lDecayDaughter1 = LorentzVectorPtEtaPhiMass (trk1ptPi, trk1.eta (), trk1.phi (), massPi);
902+ lDecayDaughter2 = LorentzVectorPtEtaPhiMass (trk2ptXi, trk2.eta (), trk2.phi (), trk2.mXi ());
901903 lResonance = lDecayDaughter1 + lDecayDaughter2;
902904
903905 auto lResonancePt = lResonance.Pt ();
0 commit comments