@@ -192,15 +192,15 @@ void MatchTOF::run(const o2::globaltracking::RecoContainer& inp, unsigned long f
192192 bct0--;
193193 }
194194 float tof = matchingPair.getSignal () - bct0 * Geo::BC_TIME_INPS;
195- if (abs (tof - matchingPair.getLTIntegralOut ().getTOF (2 )) < 600 ) {
196- } else if (abs (tof - matchingPair.getLTIntegralOut ().getTOF (3 )) < 600 ) {
197- } else if (abs (tof - matchingPair.getLTIntegralOut ().getTOF (4 )) < 600 ) {
198- } else if (abs (tof - matchingPair.getLTIntegralOut ().getTOF (0 )) < 600 ) {
199- } else if (abs (tof - matchingPair.getLTIntegralOut ().getTOF (1 )) < 600 ) {
200- } else if (abs (tof - matchingPair.getLTIntegralOut ().getTOF (5 )) < 600 ) {
201- } else if (abs (tof - matchingPair.getLTIntegralOut ().getTOF (6 )) < 600 ) {
202- } else if (abs (tof - matchingPair.getLTIntegralOut ().getTOF (7 )) < 600 ) {
203- } else if (abs (tof - matchingPair.getLTIntegralOut ().getTOF (8 )) < 600 ) {
195+ if (std:: abs (tof - matchingPair.getLTIntegralOut ().getTOF (2 )) < 600 ) {
196+ } else if (std:: abs (tof - matchingPair.getLTIntegralOut ().getTOF (3 )) < 600 ) {
197+ } else if (std:: abs (tof - matchingPair.getLTIntegralOut ().getTOF (4 )) < 600 ) {
198+ } else if (std:: abs (tof - matchingPair.getLTIntegralOut ().getTOF (0 )) < 600 ) {
199+ } else if (std:: abs (tof - matchingPair.getLTIntegralOut ().getTOF (1 )) < 600 ) {
200+ } else if (std:: abs (tof - matchingPair.getLTIntegralOut ().getTOF (5 )) < 600 ) {
201+ } else if (std:: abs (tof - matchingPair.getLTIntegralOut ().getTOF (6 )) < 600 ) {
202+ } else if (std:: abs (tof - matchingPair.getLTIntegralOut ().getTOF (7 )) < 600 ) {
203+ } else if (std:: abs (tof - matchingPair.getLTIntegralOut ().getTOF (8 )) < 600 ) {
204204 } else { // no pion, kaon, proton, electron, muon, deuteron, triton, 3He, 4He
205205 matchingPair.setFakeMatch ();
206206 }
@@ -557,7 +557,7 @@ void MatchTOF::propagateTPCTracks(int sec)
557557 }
558558
559559 if (trc.getX () < o2::constants::geom::XTPCOuterRef - 1 .) {
560- if (!propagateToRefXWithoutCov (trc, o2::constants::geom::XTPCOuterRef, 10 , mBz ) || TMath::Abs (trc.getZ ()) > Geo::MAXHZTOF) { // we check that the propagat>
560+ if (!propagateToRefXWithoutCov (trc, o2::constants::geom::XTPCOuterRef, 10 , mBz ) || std::abs (trc.getZ ()) > Geo::MAXHZTOF) { // we check that the propagat>
561561 mNotPropagatedToTOF [trkType::UNCONS]++;
562562 continue ;
563563 }
@@ -566,7 +566,7 @@ void MatchTOF::propagateTPCTracks(int sec)
566566 o2::base::Propagator::Instance ()->estimateLTFast (intLT0, trc);
567567
568568 // the "rough" propagation worked; now we can propagate considering also the cov matrix
569- if (!propagateToRefX (trc, mXRef , 2 , intLT0)) { // || TMath::Abs (trc.getZ()) > Geo::MAXHZTOF) { // we check that the propagation with the cov matrix w>
569+ if (!propagateToRefX (trc, mXRef , 2 , intLT0)) { // || std::abs (trc.getZ()) > Geo::MAXHZTOF) { // we check that the propagation with the cov matrix w>
570570 mNotPropagatedToTOF [trkType::UNCONS]++;
571571 continue ;
572572 }
@@ -603,7 +603,7 @@ void MatchTOF::propagateConstrTracks(int sec)
603603 }
604604
605605 // the "rough" propagation worked; now we can propagate considering also the cov matrix
606- if (!propagateToRefX (trc, mXRef , 2 , intLT0) || TMath::Abs (trc.getZ ()) > Geo::MAXHZTOF) { // we check that the propagation with the cov matrix worked;>
606+ if (!propagateToRefX (trc, mXRef , 2 , intLT0) || std::abs (trc.getZ ()) > Geo::MAXHZTOF) { // we check that the propagation with the cov matrix worked;>
607607 mNotPropagatedToTOF [trkType::CONSTR]++;
608608 continue ;
609609 }
@@ -706,7 +706,7 @@ void MatchTOF::addTPCSeed(const o2::tpc::TrackTPC& _tr, o2::dataformats::GlobalT
706706 // compute track length up to now
707707 mLTinfos [sector][trkType::UNCONS].emplace_back (intLT0);
708708 float vz0 = _tr.getZAt (0 , mBz );
709- if (abs (vz0) > 9000 ) {
709+ if (std:: abs (vz0) > 9000 ) {
710710 vz0 = _tr.getZ () - _tr.getX () * _tr.getTgl ();
711711 }
712712 mVZtpcOnly [sector].push_back (vz0);
@@ -727,14 +727,14 @@ void MatchTOF::addTPCSeed(const o2::tpc::TrackTPC& _tr, o2::dataformats::GlobalT
727727 }
728728
729729 if (trc.getX() < o2::constants::geom::XTPCOuterRef - 1.) {
730- if (!propagateToRefX(trc, o2::constants::geom::XTPCOuterRef, 10, intLT0) || TMath::Abs (trc.getZ()) > Geo::MAXHZTOF) { // we check that the propagation with the cov matrix worked; CHECK: can it happ
730+ if (!propagateToRefX(trc, o2::constants::geom::XTPCOuterRef, 10, intLT0) || std::abs (trc.getZ()) > Geo::MAXHZTOF) { // we check that the propagation with the cov matrix worked; CHECK: can it happ
731731 mNotPropagatedToTOF[trkType::UNCONS]++;
732732 return;
733733 }
734734 }
735735
736736 // the "rough" propagation worked; now we can propagate considering also the cov matrix
737- if (!propagateToRefX(trc, mXRef, 2, intLT0)) { // || TMath::Abs (trc.getZ()) > Geo::MAXHZTOF) { // we check that the propagation with the cov matrix worked; CHECK: can it happen that it does not if the prop>
737+ if (!propagateToRefX(trc, mXRef, 2, intLT0)) { // || std::abs (trc.getZ()) > Geo::MAXHZTOF) { // we check that the propagation with the cov matrix worked; CHECK: can it happen that it does not if the prop>
738738 mNotPropagatedToTOF[trkType::UNCONS]++;
739739 return;
740740 }
@@ -1411,10 +1411,10 @@ void MatchTOF::doMatchingForTPC(int sec)
14111411 }
14121412
14131413 if (mMatchParams ->applyPIDcutTPConly ) { // for TPC only tracks allowing possibility to apply a PID cut
1414- if (abs (tof - trkLTInt[ibc][iPropagation].getTOF (2 )) < 2000 ) { // pion hypotesis
1415- } else if (abs (tof - trkLTInt[ibc][iPropagation].getTOF (3 )) < 2000 ) { // kaon hypoteis
1416- } else if (abs (tof - trkLTInt[ibc][iPropagation].getTOF (4 )) < 2000 ) { // proton hypotesis
1417- } else { // reject matching
1414+ if (std:: abs (tof - trkLTInt[ibc][iPropagation].getTOF (2 )) < 2000 ) { // pion hypotesis
1415+ } else if (std:: abs (tof - trkLTInt[ibc][iPropagation].getTOF (3 )) < 2000 ) { // kaon hypoteis
1416+ } else if (std:: abs (tof - trkLTInt[ibc][iPropagation].getTOF (4 )) < 2000 ) { // proton hypotesis
1417+ } else { // reject matching
14181418 continue ;
14191419 }
14201420 }
@@ -1518,7 +1518,7 @@ int MatchTOF::findFITIndex(int bc, const gsl::span<const o2::ft0::RecPoints>& FI
15181518 if (mHasFillScheme && !mFillScheme [ir.bc ]) {
15191519 continue ;
15201520 }
1521- bool quality = (fabs (FITRecPoints[i].getCollisionTime (0 )) < 1000 && fabs (FITRecPoints[i].getVertex ()) < 1000 );
1521+ bool quality = (std::abs (FITRecPoints[i].getCollisionTime (0 )) < 1000 && std::abs (FITRecPoints[i].getVertex ()) < 1000 );
15221522 if (bestQuality && !quality) { // if current has no good quality and the one previoulsy selected has -> discard the current one
15231523 continue ;
15241524 }
@@ -1596,7 +1596,7 @@ void MatchTOF::BestMatches(std::vector<o2::dataformats::MatchInfoTOFReco>& match
15961596 float timeNew = TOFClusWork[matchingPair.getTOFClIndex ()].getTime () - deltaT;
15971597 float timeOld = TOFClusWork[prevMatching.getTOFClIndex ()].getTime ();
15981598
1599- if (fabs (timeNew - timeOld) < 200 ) {
1599+ if (std::abs (timeNew - timeOld) < 200 ) {
16001600 // update time information averaging the two (the second one corrected for the difference in the track length)
16011601 prevMatching.setSignal ((timeNew + timeOld) * 0.5 );
16021602 prevMatching.setChi2 (0 ); // flag such cases with chi2 equal to zero
@@ -1820,7 +1820,7 @@ bool MatchTOF::propagateToRefX(o2::track::TrackParCov& trc, float xRef, float st
18201820 refReached = true ; // we reached the 371cm reference
18211821 }
18221822 istep++;
1823- if (fabs (trc.getY ()) > trc.getX () * tanHalfSector) { // we are still in the same sector
1823+ if (std::abs (trc.getY ()) > trc.getX () * tanHalfSector) { // we are still in the same sector
18241824 // we need to rotate the track to go to the new sector
18251825 // Printf("propagateToRefX: changing sector");
18261826 auto alphaNew = o2::math_utils::angle2Alpha (trc.getPhiPos ());
@@ -1860,7 +1860,7 @@ bool MatchTOF::propagateToRefXWithoutCov(const o2::track::TrackParCov& trc, floa
18601860 refReached = true ; // we reached the 371cm reference
18611861 }
18621862 istep++;
1863- if (fabs (trcNoCov.getY ()) > trcNoCov.getX () * tanHalfSector) { // we are still in the same sector
1863+ if (std::abs (trcNoCov.getY ()) > trcNoCov.getX () * tanHalfSector) { // we are still in the same sector
18641864 // we need to rotate the track to go to the new sector
18651865 // Printf("propagateToRefX: changing sector");
18661866 auto alphaNew = o2::math_utils::angle2Alpha (trcNoCov.getPhiPos ());
@@ -1877,7 +1877,7 @@ bool MatchTOF::propagateToRefXWithoutCov(const o2::track::TrackParCov& trc, floa
18771877 // if (std::abs(trc.getSnp()) > MAXSNP) Printf("propagateToRefX: condition on snp not ok, returning false");
18781878 // Printf("propagateToRefX: snp of teh track is %f (--> %f grad)", trcNoCov.getSnp(), TMath::ASin(trcNoCov.getSnp())*TMath::RadToDeg());
18791879
1880- return refReached && std::abs (trcNoCov.getSnp ()) < 0.95 && TMath::Abs (trcNoCov.getZ ()) < Geo::MAXHZTOF; // Here we need to put MAXSNP
1880+ return refReached && std::abs (trcNoCov.getSnp ()) < 0.95 && std::abs (trcNoCov.getZ ()) < Geo::MAXHZTOF; // Here we need to put MAXSNP
18811881}
18821882
18831883// ______________________________________________
@@ -1900,7 +1900,7 @@ void MatchTOF::updateTimeDependentParams()
19001900 mTPCBin2Z = mTPCTBinMUS * mTPCVDrift ;
19011901
19021902 mBz = o2::base::Propagator::Instance ()->getNominalBz ();
1903- mMaxInvPt = abs (mBz ) > 0.1 ? 1 . / (abs (mBz ) * 0.05 ) : 999 .;
1903+ mMaxInvPt = std:: abs (mBz ) > 0.1 ? 1 . / (std:: abs (mBz ) * 0.05 ) : 999 .;
19041904
19051905 const auto & trackTune = TrackTuneParams::Instance ();
19061906 float scale = mTPCCorrMapsHelper ->getInstLumiCTP ();
0 commit comments