Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
4eb76687
Commit
4eb76687
authored
7 years ago
by
Javier Cervantes Villanueva
Committed by
Marko Petric
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDCore/include/DDSegmentation/SegmentationUtil.h
+1
-1
1 addition, 1 deletion
DDCore/include/DDSegmentation/SegmentationUtil.h
with
1 addition
and
1 deletion
DDCore/include/DDSegmentation/SegmentationUtil.h
+
1
−
1
View file @
4eb76687
...
...
@@ -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
/
radius
FromXYZ
(
position
);
return
position
.
Z
/
mag
FromXYZ
(
position
);
}
/// calculates the polar angle theta from Cartesian coordinates
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment