Skip to content

Commit

Permalink
Fix for ROOT 5.34.18 - TVector3 Angle fcn
Browse files Browse the repository at this point in the history
  • Loading branch information
Voutsi committed Jul 7, 2014
1 parent 3c80bf9 commit 47aa5d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Criteria/Crit4_3DAngleChange.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ bool Crit4_3DAngleChange::areCompatible( Segment* parent , Segment* child )throw



double angleXY1 = outerVec.Angle( middleVec.Phi() );
double angleXY2 = middleVec.Angle( innerVec.Phi() );
double angleXY1 = outerVec.Angle( middleVec );
double angleXY2 = middleVec.Angle( innerVec );

angleXY1 -= 2*M_PI*floor( angleXY1 /2. /M_PI ); //to the range from 0 to 2pi
if (angleXY1 > M_PI) angleXY1 -= 2*M_PI; //to the range from -pi to pi
Expand Down

0 comments on commit 47aa5d1

Please sign in to comment.