Skip to content

Commit 57be22a

Browse files
authored
[PWGCF] FemtoDream: DetaDphiStar: replacing abs() with std::fabs() (#10160)
1 parent 9612c27 commit 57be22a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGCF/FemtoDream/Core/femtoDreamDetaDphiStar.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ class FemtoDreamDetaDphiStar
558558
if (!runOldVersion) {
559559
auto arg = 0.3 * charge * magfield * tmpRadiiTPC[i] * 0.01 / (2. * pt);
560560
// for very low pT particles, this value goes outside of range -1 to 1 at at large tpc radius; asin fails
561-
if (abs(arg) < 1) {
561+
if (std::fabs(arg) < 1) {
562562
tmpVec.push_back(phi0 - std::asin(0.3 * charge * magfield * tmpRadiiTPC[i] * 0.01 / (2. * pt)));
563563
} else {
564564
tmpVec.push_back(999);
@@ -618,7 +618,7 @@ class FemtoDreamDetaDphiStar
618618
if (!runOldVersion) {
619619
auto arg = 0.3 * charge * magfield * radii * 0.01 / (2. * pt);
620620
// for very low pT particles, this value goes outside of range -1 to 1 at at large tpc radius; asin fails
621-
if (abs(arg) < 1) {
621+
if (std::fabs(arg) < 1) {
622622
phiAtRadii = phi0 - std::asin(0.3 * charge * magfield * radii * 0.01 / (2. * pt));
623623
} else {
624624
phiAtRadii = 999.;
@@ -661,7 +661,7 @@ class FemtoDreamDetaDphiStar
661661
if (!runOldVersion) {
662662
auto arg = 0.3 * charge * magfield * tmpRadiiTPC[i] * 0.01 / (2. * pt);
663663
// for very low pT particles, this value goes outside of range -1 to 1 at at large tpc radius; asin fails
664-
if (abs(arg) < 1) {
664+
if (std::fabs(arg) < 1) {
665665
tmpVec.push_back(phi0 - std::asin(0.3 * charge * magfield * tmpRadiiTPC[i] * 0.01 / (2. * pt)));
666666
} else {
667667
tmpVec.push_back(999);

0 commit comments

Comments
 (0)