Skip to content
Snippets Groups Projects
Commit 4eb76687 authored by Javier Cervantes Villanueva's avatar Javier Cervantes Villanueva Committed by Marko Petric
Browse files

Use magFromXYZ instead of radiusFromXYZ to calculate Pseudorapidity of a vector

parent 3b3257ae
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment