Skip to content

Commit b024341

Browse files
committed
Use existing constants instead of redefining particle masses
1 parent 66a9746 commit b024341

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

PWGLF/Tasks/Resonances/k1AnalysisMicro.cxx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,6 @@ struct K1AnalysisMicro {
252252
histos.print();
253253
} // init
254254

255-
double massKa = MassKaonCharged;
256-
double massPi = MassPionCharged;
257-
double massRho770 = 0.77526;
258-
double massK892 = MassK0Star892;
259-
260255
// PDG code
261256
int kPDGRho770 = 113;
262257
int kK1Plus = 10323;
@@ -497,8 +492,8 @@ struct K1AnalysisMicro {
497492
}
498493

499494
// Resonance reconstruction
500-
lDecayDaughter1.SetXYZM(trk1.px(), trk1.py(), trk1.pz(), massPi);
501-
lDecayDaughter2.SetXYZM(trk2.px(), trk2.py(), trk2.pz(), massPi);
495+
lDecayDaughter1.SetXYZM(trk1.px(), trk1.py(), trk1.pz(), MassPionCharged);
496+
lDecayDaughter2.SetXYZM(trk2.px(), trk2.py(), trk2.pz(), MassPionCharged);
502497
lResonanceSecondary = lDecayDaughter1 + lDecayDaughter2;
503498

504499
if (lResonanceSecondary.Pt() < cMinSecondaryPtCut)
@@ -529,7 +524,7 @@ struct K1AnalysisMicro {
529524
continue;
530525

531526
// K1 reconstruction
532-
lDecayDaughter_bach.SetXYZM(bTrack.px(), bTrack.py(), bTrack.pz(), massKa);
527+
lDecayDaughter_bach.SetXYZM(bTrack.px(), bTrack.py(), bTrack.pz(), MassKaonCharged);
533528
lResonanceK1 = lResonanceSecondary + lDecayDaughter_bach;
534529

535530
// Cuts

0 commit comments

Comments
 (0)