From 3254eac1467f5bac3e6bb0c827b03fc30d457764 Mon Sep 17 00:00:00 2001 From: Sawan Kumawat Date: Fri, 10 May 2024 23:18:55 +0530 Subject: [PATCH] corrected mass of pion in the lorentz vector --- PWGLF/Tasks/Resonances/kstarqa.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGLF/Tasks/Resonances/kstarqa.cxx b/PWGLF/Tasks/Resonances/kstarqa.cxx index 497df356933..ed7d2f6504f 100644 --- a/PWGLF/Tasks/Resonances/kstarqa.cxx +++ b/PWGLF/Tasks/Resonances/kstarqa.cxx @@ -818,11 +818,11 @@ struct kstarqa { auto motherP = mothertrack1.p(); auto motherE = mothertrack1.e(); auto genMass = std::sqrt(motherE * motherE - motherP * motherP); - auto recMass = RecoDecay::m(arrMomrec, array{massKa, massKa}); + auto recMass = RecoDecay::m(arrMomrec, array{massKa, massPi}); // auto recpt = TMath::Sqrt((track1.px() + track2.px()) * (track1.px() + track2.px()) + (track1.py() + track2.py()) * (track1.py() + track2.py())); //// Resonance reconstruction lDecayDaughter1.SetXYZM(track1.px(), track1.py(), track1.pz(), massKa); - lDecayDaughter2.SetXYZM(track2.px(), track2.py(), track2.pz(), massKa); + lDecayDaughter2.SetXYZM(track2.px(), track2.py(), track2.pz(), massPi); lResonance = lDecayDaughter1 + lDecayDaughter2; histos.fill(HIST("h3KstarRec"), motherP); histos.fill(HIST("h1KstarRecMass"), recMass);