@@ -41,7 +41,7 @@ class CalVdriftExB
4141 if (!defaultAvg || (isGoodExB (iDet) && isGoodVdrift (iDet)))
4242 return mVdrift [iDet];
4343 else {
44- if (TMath::Abs (mMeanVdrift + 999 .) < 1e-6 )
44+ if (std::fabs (mMeanVdrift + 999 .) < 1e-6 )
4545 mMeanVdrift = getAverageVdrift ();
4646 return mMeanVdrift ;
4747 }
@@ -51,7 +51,7 @@ class CalVdriftExB
5151 if (!defaultAvg || (isGoodExB (iDet) && isGoodVdrift (iDet)))
5252 return mExB [iDet];
5353 else {
54- if (TMath::Abs (mMeanExB + 999 .) < 1e-6 )
54+ if (std::fabs (mMeanExB + 999 .) < 1e-6 )
5555 mMeanExB = getAverageExB ();
5656 return mMeanExB ;
5757 }
@@ -102,9 +102,9 @@ class CalVdriftExB
102102 // check if value is well calibrated or not
103103 // default calibration if not enough entries
104104 // close to boundaries indicate a failed fit
105- if (TMath::Abs (mExB [iDet] - constants::EXBDEFAULT) > 1e-6 &&
106- TMath::Abs (mExB [iDet] - constants::EXBMIN) > 0.01 &&
107- TMath::Abs (mExB [iDet] - constants::EXBMAX) > 0.01 )
105+ if (std::fabs (mExB [iDet] - constants::EXBDEFAULT) > 1e-6 &&
106+ std::fabs (mExB [iDet] - constants::EXBMIN) > 0.01 &&
107+ std::fabs (mExB [iDet] - constants::EXBMAX) > 0.01 )
108108 return true ;
109109 else
110110 return false ;
@@ -115,9 +115,9 @@ class CalVdriftExB
115115 // check if value is well calibrated or not
116116 // default calibration if not enough entries
117117 // close to boundaries indicate a failed fit
118- if (TMath::Abs (mVdrift [iDet] - constants::VDRIFTDEFAULT) > 1e-6 &&
119- TMath::Abs (mVdrift [iDet] - constants::VDRIFTMIN) > 0.1 &&
120- TMath::Abs (mVdrift [iDet] - constants::VDRIFTMAX) > 0.1 )
118+ if (std::fabs (mVdrift [iDet] - constants::VDRIFTDEFAULT) > 1e-6 &&
119+ std::fabs (mVdrift [iDet] - constants::VDRIFTMIN) > 0.1 &&
120+ std::fabs (mVdrift [iDet] - constants::VDRIFTMAX) > 0.1 )
121121 return true ;
122122 else
123123 return false ;
0 commit comments