@@ -189,7 +189,7 @@ static const constexpr int32_t COLORS_HEX[COLORCOUNT] = {0xB03030, 0x00A000, 0x0
189189static const constexpr int32_t CONFIG_DASHED_MARKERS = 0 ;
190190
191191static const constexpr float AXES_MIN[5 ] = {-Y_MAX, -Z_MAX, 0 .f , -ETA_MAX, PT_MIN};
192- static const constexpr float AXES_MAX[5 ] = {Y_MAX, Z_MAX, 2 .f * M_PI , ETA_MAX, PT_MAX};
192+ static const constexpr float AXES_MAX[5 ] = {Y_MAX, Z_MAX, 2 .f * CAMath::Pi () , ETA_MAX, PT_MAX};
193193static const constexpr int32_t AXIS_BINS[5 ] = {51 , 51 , 144 , 31 , 50 };
194194static 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.
195195static const constexpr float RES_AXES[5 ] = {1 ., 1 ., 0.03 , 0.03 , 1.0 };
@@ -1163,12 +1163,12 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
11631163 const mcInfo_t& info = GetMCTrack (i, iCol);
11641164 additionalMCParameters& mc2 = mMCParam [iCol][i];
11651165 mc2.pt = std::sqrt (info.pX * info.pX + info.pY * info.pY );
1166- mc2.phi = M_PI + std::atan2 (-info.pY , -info.pX );
1166+ mc2.phi = CAMath::Pi () + std::atan2 (-info.pY , -info.pX );
11671167 float p = info.pX * info.pX + info.pY * info.pY + info.pZ * info.pZ ;
11681168 if (p < 1e-18 ) {
11691169 mc2.theta = mc2.eta = 0 .f ;
11701170 } else {
1171- mc2.theta = info.pZ == 0 ? (M_PI / 2 ) : (std::acos (info.pZ / std::sqrt (p)));
1171+ mc2.theta = info.pZ == 0 ? (CAMath::Pi () / 2 ) : (std::acos (info.pZ / std::sqrt (p)));
11721172 mc2.eta = -std::log (std::tan (0.5 * mc2.theta ));
11731173 }
11741174 if (mConfig .writeMCLabels ) {
@@ -1222,10 +1222,10 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
12221222 }
12231223
12241224 float alpha = std::atan2 (info.y , info.x );
1225- alpha /= M_PI / 9 .f ;
1225+ alpha /= CAMath::Pi () / 9 .f ;
12261226 alpha = std::floor (alpha);
1227- alpha *= M_PI / 9 .f ;
1228- alpha += M_PI / 18 .f ;
1227+ alpha *= CAMath::Pi () / 9 .f ;
1228+ alpha += CAMath::Pi () / 18 .f ;
12291229
12301230 float c = std::cos (alpha);
12311231 float s = std::sin (alpha);
0 commit comments