Skip to content

Commit c2935ff

Browse files
committed
Update
1 parent 25ec3a8 commit c2935ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ALICE3/TableProducer/OTF/onTheFlyTOFPID.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ struct OnTheFlyTOFPID {
256256
float centerDistance = std::hypot(trcCircle.xC, trcCircle.yC);
257257

258258
// condition of circles touching - if not satisfied returned length will be -100
259-
if (centerDistance < trcCircle.rC + radius && centerDistance > fabs(trcCircle.rC - radius)) {
259+
if (centerDistance < trcCircle.rC + radius && centerDistance > std::fabs(trcCircle.rC - radius)) {
260260
length = 0.0f;
261261

262262
// base radical direction
@@ -299,7 +299,7 @@ struct OnTheFlyTOFPID {
299299
}
300300
cosAngle /= modulus;
301301
length = trcCircle.rC * TMath::ACos(cosAngle);
302-
length *= sqrt(1.0f + track.getTgl() * track.getTgl());
302+
length *= std::sqrt(1.0f + track.getTgl() * track.getTgl());
303303
}
304304
return length;
305305
}
@@ -384,7 +384,7 @@ struct OnTheFlyTOFPID {
384384
}
385385

386386
tzero[0] = sum / sumw;
387-
tzero[1] = sqrt(1. / sumw);
387+
tzero[1] = std::sqrt(1. / sumw);
388388
return true;
389389
}
390390

0 commit comments

Comments
 (0)