Skip to content

Commit 06349fc

Browse files
committed
fix warning: usage of abs instead of std::abs
1 parent 8168b4c commit 06349fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ void TrackInterpolation::interpolateTrack(int iSeed)
820820
float xv = vtx.X() * cs + vtx.Y() * sn, yv = -vtx.X() * sn + vtx.Y() * cs, zv = vtx.Z();
821821
auto dy = yv - trkWorkITS.getY();
822822
auto dz = zv - trkWorkITS.getZ();
823-
if ((std::abs(dy) < param::MaxResid) && (std::abs(dz) < param::MaxResid) && (std::abs(trkWorkITS.getY()) < param::MaxY) && (std::abs(trkWorkITS.getZ()) < param::MaxZ) && abs(xv) < param::MaxVtxX) {
823+
if ((std::abs(dy) < param::MaxResid) && (std::abs(dz) < param::MaxResid) && (std::abs(trkWorkITS.getY()) < param::MaxY) && (std::abs(trkWorkITS.getZ()) < param::MaxZ) && std::abs(xv) < param::MaxVtxX) {
824824
short compXV = static_cast<short>(xv * 0x7fff / param::MaxVtxX);
825825
mClRes.emplace_back(dy, dz, alpha / TMath::Pi(), trkWorkITS.getY(), trkWorkITS.getZ(), 190, -1, compXV);
826826
if (!gidTable[GTrackID::ITSTPC].isIndexSet()) {
@@ -1168,7 +1168,7 @@ void TrackInterpolation::extrapolateTrack(int iSeed)
11681168
float xv = vtx.X() * cs + vtx.Y() * sn, yv = -vtx.X() * sn + vtx.Y() * cs, zv = vtx.Z();
11691169
auto dy = yv - trkWorkITS.getY();
11701170
auto dz = zv - trkWorkITS.getZ();
1171-
if ((std::abs(dy) < param::MaxResid) && (std::abs(dz) < param::MaxResid) && (std::abs(trkWorkITS.getY()) < param::MaxY) && (std::abs(trkWorkITS.getZ()) < param::MaxZ) && abs(xv) < param::MaxVtxX) {
1171+
if ((std::abs(dy) < param::MaxResid) && (std::abs(dz) < param::MaxResid) && (std::abs(trkWorkITS.getY()) < param::MaxY) && (std::abs(trkWorkITS.getZ()) < param::MaxZ) && std::abs(xv) < param::MaxVtxX) {
11721172
short compXV = static_cast<short>(xv * 0x7fff / param::MaxVtxX);
11731173
mClRes.emplace_back(dy, dz, alpha / TMath::Pi(), trkWorkITS.getY(), trkWorkITS.getZ(), 190, -1, compXV);
11741174
if (!gidTableFull[GTrackID::ITSTPC].isIndexSet()) {

0 commit comments

Comments
 (0)