Skip to content

Commit f2bc793

Browse files
committed
Update
1 parent 8110fee commit f2bc793

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
@@ -361,7 +361,7 @@ struct OnTheFlyTofPid {
361361
const float etof = track.mInnerTOFTime.second; // [ps]
362362
const float L = track.mTrackLengthInnerTOF.first; // [cm]
363363
float p = track.mMomentum.first; // [GeV/c]
364-
p *= abs(pdgInfo->Charge()) / 3.; // Total momentum
364+
p *= std::abs(pdgInfo->Charge()) / 3.; // Total momentum
365365
const float ep = track.mMomentum.second; // [GeV/c]
366366
const float p2 = p * p;
367367
const float Lc = L * o2::constants::physics::invLightSpeedCm2PS;
@@ -754,11 +754,11 @@ struct OnTheFlyTofPid {
754754
}
755755
}
756756

757-
float deltaTrackLengthInnerTOF = abs(trackLengthInnerTOF - trackLengthRecoInnerTOF);
757+
float deltaTrackLengthInnerTOF = std::abs(trackLengthInnerTOF - trackLengthRecoInnerTOF);
758758
if (trackLengthInnerTOF > 0 && trackLengthRecoInnerTOF > 0) {
759759
histos.fill(HIST("h2dDeltaTrackLengthInnerVsPt"), noSmearingPt, deltaTrackLengthInnerTOF);
760760
}
761-
float deltaTrackLengthOuterTOF = abs(trackLengthOuterTOF - trackLengthRecoOuterTOF);
761+
float deltaTrackLengthOuterTOF = std::abs(trackLengthOuterTOF - trackLengthRecoOuterTOF);
762762
if (trackLengthOuterTOF > 0 && trackLengthRecoOuterTOF > 0) {
763763
histos.fill(HIST("h2dDeltaTrackLengthOuterVsPt"), noSmearingPt, deltaTrackLengthOuterTOF);
764764
}

0 commit comments

Comments
 (0)