You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/coordinate_systems/exyz.jl
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -53,9 +53,9 @@ function pz end
53
53
54
54
"""
55
55
56
-
magnitude2(::EXYZ, mom)
56
+
spatial_magnitude2(::EXYZ, mom)
57
57
58
-
Return the square of the magnitude of a given four-momentum, i.e. the sum of the squared spatial components.
58
+
Return the square of the spatial_magnitude of a given four-momentum, i.e. the sum of the squared spatial components.
59
59
60
60
!!! example
61
61
@@ -67,15 +67,15 @@ Return the square of the magnitude of a given four-momentum, i.e. the sum of the
67
67
This function differs from a similar function for the `TLorentzVector` used in the famous `ROOT` library.
68
68
69
69
"""
70
-
@inlinefunctionmagnitude2(::EXYZ, mom)
70
+
@inlinefunctionspatial_magnitude2(::EXYZ, mom)
71
71
returnpx(mom)^2+py(mom)^2+pz(mom)^2
72
72
end
73
73
74
74
"""
75
75
76
-
magnitude(::EXYZ,mom)
76
+
spatial_magnitude(::EXYZ,mom)
77
77
78
-
Return the magnitude of a given four-momentum, i.e. the euklidian norm spatial components.
78
+
Return the spatial_magnitude of a given four-momentum, i.e. the euklidian norm spatial components.
79
79
80
80
!!! example
81
81
@@ -87,8 +87,8 @@ Return the magnitude of a given four-momentum, i.e. the euklidian norm spatial c
87
87
This function differs from a similar function for the `TLorentzVector` used in the famous `ROOT` library.
88
88
89
89
"""
90
-
@inlinefunctionmagnitude(cs::EXYZ, mom)
91
-
returnsqrt(magnitude2(mom))
90
+
@inlinefunctionspatial_magnitude(cs::EXYZ, mom)
91
+
returnsqrt(spatial_magnitude2(mom))
92
92
end
93
93
94
94
"""
@@ -138,7 +138,7 @@ end
138
138
139
139
boost_beta(::EXYZ, mom )
140
140
141
-
Return magnitude of the beta vector for a given four-momentum, i.e. the magnitude of the four-momentum divided by its 0-component.
141
+
Return spatial_magnitude of the beta vector for a given four-momentum, i.e. the spatial_magnitude of the four-momentum divided by its 0-component.
142
142
143
143
!!! example
144
144
@@ -147,7 +147,7 @@ Return magnitude of the beta vector for a given four-momentum, i.e. the magnitud
147
147
"""
148
148
@inlinefunctionboost_beta(::EXYZ, mom)
149
149
en =energy(mom)
150
-
rho =magnitude(mom)
150
+
rho =spatial_magnitude(mom)
151
151
if!iszero(en)
152
152
rho / en
153
153
elseifiszero(rho)
@@ -202,7 +202,7 @@ end
202
202
203
203
transverse_momentum(::EXYZ, mom)
204
204
205
-
Return the transverse momentum for a given four-momentum, i.e. the magnitude of its transverse components.
205
+
Return the transverse momentum for a given four-momentum, i.e. the spatial_magnitude of its transverse components.
206
206
207
207
!!! example
208
208
@@ -327,7 +327,7 @@ Return the theta angle for a given four-momentum, i.e. the polar angle of its sp
327
327
328
328
!!! example
329
329
330
-
If `(E,px,py,pz)` is a four-momentum with magnitude `rho`, this is equivalent to `arccos(pz/rho)`, which is also equivalent to `arctan(sqrt(px^2+py^2)/pz)`.
330
+
If `(E,px,py,pz)` is a four-momentum with spatial_magnitude `rho`, this is equivalent to `arccos(pz/rho)`, which is also equivalent to `arctan(sqrt(px^2+py^2)/pz)`.
331
331
332
332
!!! note
333
333
@@ -358,7 +358,7 @@ Return the cosine of the theta angle for a given four-momentum.
0 commit comments