@@ -188,7 +188,7 @@ static const constexpr int32_t COLORS_HEX[COLORCOUNT] = {0xB03030, 0x00A000, 0x0
188188static const constexpr int32_t CONFIG_DASHED_MARKERS = 0 ;
189189
190190static const constexpr float AXES_MIN[5 ] = {-Y_MAX, -Z_MAX, 0 .f , -ETA_MAX, PT_MIN};
191- static const constexpr float AXES_MAX[5 ] = {Y_MAX, Z_MAX, 2 .f * M_PI , ETA_MAX, PT_MAX};
191+ static const constexpr float AXES_MAX[5 ] = {Y_MAX, Z_MAX, 2 .f * CAMath::Pi () , ETA_MAX, PT_MAX};
192192static const constexpr int32_t AXIS_BINS[5 ] = {51 , 51 , 144 , 31 , 50 };
193193static 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.
194194static const constexpr float RES_AXES[5 ] = {1 ., 1 ., 0.03 , 0.03 , 1.0 };
@@ -1162,12 +1162,12 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
11621162 const mcInfo_t& info = GetMCTrack (i, iCol);
11631163 additionalMCParameters& mc2 = mMCParam [iCol][i];
11641164 mc2.pt = std::sqrt (info.pX * info.pX + info.pY * info.pY );
1165- mc2.phi = M_PI + std::atan2 (-info.pY , -info.pX );
1165+ mc2.phi = CAMath::Pi () + std::atan2 (-info.pY , -info.pX );
11661166 float p = info.pX * info.pX + info.pY * info.pY + info.pZ * info.pZ ;
11671167 if (p < 1e-18 ) {
11681168 mc2.theta = mc2.eta = 0 .f ;
11691169 } else {
1170- mc2.theta = info.pZ == 0 ? (M_PI / 2 ) : (std::acos (info.pZ / std::sqrt (p)));
1170+ mc2.theta = info.pZ == 0 ? (CAMath::Pi () / 2 ) : (std::acos (info.pZ / std::sqrt (p)));
11711171 mc2.eta = -std::log (std::tan (0.5 * mc2.theta ));
11721172 }
11731173 if (mConfig .writeMCLabels ) {
@@ -1221,10 +1221,10 @@ void GPUQA::RunQA(bool matchOnly, const std::vector<o2::tpc::TrackTPC>* tracksEx
12211221 }
12221222
12231223 float alpha = std::atan2 (info.y , info.x );
1224- alpha /= M_PI / 9 .f ;
1224+ alpha /= CAMath::Pi () / 9 .f ;
12251225 alpha = std::floor (alpha);
1226- alpha *= M_PI / 9 .f ;
1227- alpha += M_PI / 18 .f ;
1226+ alpha *= CAMath::Pi () / 9 .f ;
1227+ alpha += CAMath::Pi () / 18 .f ;
12281228
12291229 float c = std::cos (alpha);
12301230 float s = std::sin (alpha);
0 commit comments