Skip to content

Commit e9d5361

Browse files
committed
Remove hard coded PDG mass
1 parent 597c306 commit e9d5361

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

PWGLF/Tasks/Resonances/doublephimeson.cxx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
#include "PWGLF/DataModel/ReducedDoublePhiTables.h"
1717

18-
#include "Common/Core/RecoDecay.h"
19-
18+
#include <CommonConstants/PhysicsConstants.h>
2019
#include <Framework/AnalysisDataModel.h>
2120
#include <Framework/AnalysisTask.h>
2221
#include <Framework/BinningPolicy.h>
@@ -1079,8 +1078,8 @@ struct doublephimeson {
10791078
return;
10801079

10811080
// --- helpers ---
1082-
constexpr double mPhiPDG = 1.019461; // GeV/c^2
1083-
constexpr double mKPDG = 0.493677; // GeV/c^2
1081+
constexpr double mPhiPDG = o2::constants::physics::MassPhi; // GeV/c^2
1082+
constexpr double mKPDG = o2::constants::physics::MassKPlus; // GeV/c^2
10841083

10851084
const auto deltaMPhi = [=](double m1, double m2) {
10861085
const double d1 = m1 - mPhiPDG, d2 = m2 - mPhiPDG;
@@ -1302,8 +1301,8 @@ struct doublephimeson {
13021301
return;
13031302
}
13041303

1305-
constexpr double mPhiPDG = 1.019461; // GeV/c^2
1306-
constexpr double mKPDG = 0.493677; // GeV/c^2
1304+
constexpr double mPhiPDG = o2::constants::physics::MassPhi; // GeV/c^2
1305+
constexpr double mKPDG = o2::constants::physics::MassKPlus; // GeV/c^2
13071306

13081307
const auto deltaMPhi = [=](double m1, double m2) {
13091308
const double d1 = m1 - mPhiPDG;

0 commit comments

Comments
 (0)