Skip to content

Commit 736a294

Browse files
author
Emil Gorm Nielsen
committed
move to std::abs
1 parent e2d45f7 commit 736a294

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGCF/Flow/Tasks/FlowGFWPbPb.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ struct FlowGFWPbPb {
306306
return;
307307
if (!corrconf.pTDif) {
308308
val = fGFW->Calculate(corrconf, 0, kFALSE).real() / dnx;
309-
if (TMath::Abs(val) < 1)
309+
if (std::abs(val) < 1)
310310
registry.fill(tarName, cent, val, dnx);
311311
return;
312312
}
@@ -321,7 +321,7 @@ struct FlowGFWPbPb {
321321
return;
322322
if (!corrconf.pTDif) {
323323
val = fGFW->Calculate(corrconf, 0, kFALSE).real() / dnx;
324-
if (TMath::Abs(val) < 1) {
324+
if (std::abs(val) < 1) {
325325
tarName->Fill(cent, val, dnx);
326326
}
327327
return;
@@ -337,7 +337,7 @@ struct FlowGFWPbPb {
337337
return;
338338
if (!corrconf.pTDif) {
339339
val = fGFW->Calculate(corrconf, 0, kFALSE).real() / dnx;
340-
if (TMath::Abs(val) < 1)
340+
if (std::abs(val) < 1)
341341
fFC->FillProfile(corrconf.Head.c_str(), cent, val, dnx, rndm);
342342
return;
343343
}
@@ -346,7 +346,7 @@ struct FlowGFWPbPb {
346346
if (dnx == 0)
347347
continue;
348348
val = fGFW->Calculate(corrconf, i - 1, kFALSE).real() / dnx;
349-
if (TMath::Abs(val) < 1)
349+
if (std::abs(val) < 1)
350350
fFC->FillProfile(Form("%s_pt_%i", corrconf.Head.c_str(), i), cent, val, dnx, rndm);
351351
}
352352
return;

0 commit comments

Comments
 (0)