Skip to content

Commit

Permalink
Use magFromXYZ instead of radiusFromXYZ to calculate Pseudorapidity o…
Browse files Browse the repository at this point in the history
…f a vector
  • Loading branch information
JavierCVilla authored and Marko Petric committed Mar 26, 2018
1 parent 3b3257a commit 4eb7668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DDCore/include/DDSegmentation/SegmentationUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ inline double radiusFromXYZ(const Vector3D& position) {

/// Calculates cosine of the polar angle theat from Cartesian coodinates
inline double cosThetaFromXYZ(const Vector3D& position) {
return position.Z / radiusFromXYZ(position);
return position.Z / magFromXYZ(position);
}

/// calculates the polar angle theta from Cartesian coordinates
Expand Down

0 comments on commit 4eb7668

Please sign in to comment.