Skip to content

Commit

Permalink
replace fabs by TMath::Abs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Brun authored and Rene Brun committed Nov 11, 2010
1 parent 434aad0 commit 8d3fd89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TGeant3/TGeant3gu.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ void eustep(){
Double_t cosLam0 = TMath::Sin(dir.Theta());

// cos(lambda) < 2.e-6 means theta < 1e-4 deg
if(fabs(cosLam0) < 2.e-6) {
if(TMath::Abs(cosLam0) < 2.e-6) {

// cos(lambda) @ limit angle
Double_t cosLam = TMath::Sign(1., cosLam0) * 2.e-6;
Expand Down

0 comments on commit 8d3fd89

Please sign in to comment.