2424#include " TMath.h"
2525#include " TDatabasePDG.h"
2626
27+ #include " CommonConstants/MathConstants.h"
28+ using namespace o2 ::constants::math;
29+
2730using namespace o2 ::framework;
2831
2932namespace o2 ::analysis::femtoWorld
@@ -77,8 +80,8 @@ class FemtoWorldContainer
7780 framework::AxisSpec kTAxis = {kTBins , " #it{k}_{T} (GeV/#it{c})" };
7881 framework::AxisSpec mTAxis = {mTBins , " #it{m}_{T} (GeV/#it{c}^{2})" };
7982
80- mPhiLow = (-(int )(phiBins / 4 ) + 0.5 ) * 2 . * TMath::Pi () / phiBins;
81- mPhiHigh = 2 * TMath::Pi () + (-(int )(phiBins / 4 ) + 0.5 ) * 2 . * TMath::Pi () / phiBins;
83+ mPhiLow = (-(int )(phiBins / 4 ) + 0.5 ) * 2 . * PI / phiBins;
84+ mPhiHigh = 2 * PI + (-(int )(phiBins / 4 ) + 0.5 ) * 2 . * PI / phiBins;
8285
8386 framework::AxisSpec phiAxis = {phiBins, mPhiLow , mPhiHigh };
8487 framework::AxisSpec etaAxis = {etaBins, -2.0 , 2.0 };
@@ -125,10 +128,10 @@ class FemtoWorldContainer
125128
126129 double delta_phi = part1.phi () - part2.phi ();
127130 while (delta_phi < mPhiLow ) {
128- delta_phi += PIT ;
131+ delta_phi += TwoPI ;
129132 }
130133 while (delta_phi > mPhiHigh ) {
131- delta_phi -= PIT ;
134+ delta_phi -= TwoPI ;
132135 }
133136
134137 if (mHistogramRegistry ) {
@@ -155,7 +158,6 @@ class FemtoWorldContainer
155158 float mMassTwo = 0 .f; // /< PDG mass of particle 2
156159 double mPhiLow ;
157160 double mPhiHigh ;
158- static constexpr double PIT = 6.28318530717958623 ;
159161};
160162
161163} // namespace o2::analysis::femtoWorld
0 commit comments