File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments