@@ -183,7 +183,7 @@ static const constexpr int32_t COLORS_HEX[COLORCOUNT] = {0xB03030, 0x00A000, 0x0
183183static const constexpr int32_t CONFIG_DASHED_MARKERS = 0 ;
184184
185185static const constexpr float AXES_MIN[5 ] = {-Y_MAX, -Z_MAX, 0 .f , -ETA_MAX, PT_MIN};
186- static const constexpr float AXES_MAX[5 ] = {Y_MAX, Z_MAX, 2 .f * M_PI , ETA_MAX, PT_MAX};
186+ static const constexpr float AXES_MAX[5 ] = {Y_MAX, Z_MAX, 2 .f * CAMath::Pi () , ETA_MAX, PT_MAX};
187187static const constexpr int32_t AXIS_BINS[5 ] = {51 , 51 , 144 , 31 , 50 };
188188static const constexpr int32_t RES_AXIS_BINS[] = {1017 , 113 }; // Consecutive bin sizes, histograms are binned down until the maximum entry is 50, each bin size should evenly divide its predecessor.
189189static const constexpr float RES_AXES[5 ] = {1 ., 1 ., 0.03 , 0.03 , 1.0 };
@@ -1214,12 +1214,12 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
12141214 const mcInfo_t& info = GetMCTrack (i, iCol);
12151215 additionalMCParameters& mc2 = mMCParam [iCol][i];
12161216 mc2.pt = std::sqrt (info.pX * info.pX + info.pY * info.pY );
1217- mc2.phi = M_PI + std::atan2 (-info.pY , -info.pX );
1217+ mc2.phi = CAMath::Pi () + std::atan2 (-info.pY , -info.pX );
12181218 float p = info.pX * info.pX + info.pY * info.pY + info.pZ * info.pZ ;
12191219 if (p < 1e-18 ) {
12201220 mc2.theta = mc2.eta = 0 .f ;
12211221 } else {
1222- mc2.theta = info.pZ == 0 ? (M_PI / 2 ) : (std::acos (info.pZ / std::sqrt (p)));
1222+ mc2.theta = info.pZ == 0 ? (CAMath::Pi () / 2 ) : (std::acos (info.pZ / std::sqrt (p)));
12231223 mc2.eta = -std::log (std::tan (0.5 * mc2.theta ));
12241224 }
12251225 if (mConfig .writeMCLabels ) {
@@ -1273,10 +1273,10 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
12731273 }
12741274
12751275 float alpha = std::atan2 (info.y , info.x );
1276- alpha /= M_PI / 9 .f ;
1276+ alpha /= CAMath::Pi () / 9 .f ;
12771277 alpha = std::floor (alpha);
1278- alpha *= M_PI / 9 .f ;
1279- alpha += M_PI / 18 .f ;
1278+ alpha *= CAMath::Pi () / 9 .f ;
1279+ alpha += CAMath::Pi () / 18 .f ;
12801280
12811281 float c = std::cos (alpha);
12821282 float s = std::sin (alpha);
0 commit comments