@@ -181,7 +181,7 @@ static const constexpr int32_t COLORS_HEX[COLORCOUNT] = {0xB03030, 0x00A000, 0x0
181181static const constexpr int32_t CONFIG_DASHED_MARKERS = 0 ;
182182
183183static const constexpr float AXES_MIN[5 ] = {-Y_MAX, -Z_MAX, 0 .f , -ETA_MAX, PT_MIN};
184- static const constexpr float AXES_MAX[5 ] = {Y_MAX, Z_MAX, 2 .f * M_PI , ETA_MAX, PT_MAX};
184+ static const constexpr float AXES_MAX[5 ] = {Y_MAX, Z_MAX, 2 .f * CAMath::Pi () , ETA_MAX, PT_MAX};
185185static const constexpr int32_t AXIS_BINS[5 ] = {51 , 51 , 144 , 31 , 50 };
186186static 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.
187187static const constexpr float RES_AXES[5 ] = {1 ., 1 ., 0.03 , 0.03 , 1.0 };
@@ -1197,12 +1197,12 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
11971197 const mcInfo_t& info = GetMCTrack (i, iCol);
11981198 additionalMCParameters& mc2 = mMCParam [iCol][i];
11991199 mc2.pt = std::sqrt (info.pX * info.pX + info.pY * info.pY );
1200- mc2.phi = M_PI + std::atan2 (-info.pY , -info.pX );
1200+ mc2.phi = CAMath::Pi () + std::atan2 (-info.pY , -info.pX );
12011201 float p = info.pX * info.pX + info.pY * info.pY + info.pZ * info.pZ ;
12021202 if (p < 1e-18 ) {
12031203 mc2.theta = mc2.eta = 0 .f ;
12041204 } else {
1205- mc2.theta = info.pZ == 0 ? (M_PI / 2 ) : (std::acos (info.pZ / std::sqrt (p)));
1205+ mc2.theta = info.pZ == 0 ? (CAMath::Pi () / 2 ) : (std::acos (info.pZ / std::sqrt (p)));
12061206 mc2.eta = -std::log (std::tan (0.5 * mc2.theta ));
12071207 }
12081208 if (mConfig .writeMCLabels ) {
@@ -1256,10 +1256,10 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
12561256 }
12571257
12581258 float alpha = std::atan2 (info.y , info.x );
1259- alpha /= M_PI / 9 .f ;
1259+ alpha /= CAMath::Pi () / 9 .f ;
12601260 alpha = std::floor (alpha);
1261- alpha *= M_PI / 9 .f ;
1262- alpha += M_PI / 18 .f ;
1261+ alpha *= CAMath::Pi () / 9 .f ;
1262+ alpha += CAMath::Pi () / 18 .f ;
12631263
12641264 float c = std::cos (alpha);
12651265 float s = std::sin (alpha);
0 commit comments