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
Return the squared invariant mass of a given four-momentum, i.e. the minkowski dot with itself.
99
99
@@ -103,13 +103,13 @@ Return the squared invariant mass of a given four-momentum, i.e. the minkowski d
103
103
104
104
105
105
"""
106
-
@inlinefunctioninvariant_mass2(::EXYZ, mom)
106
+
@inlinefunctionmass2(::EXYZ, mom)
107
107
returnenergy(mom)^2-px(mom)^2-py(mom)^2-pz(mom)^2
108
108
end
109
109
110
110
"""
111
111
112
-
invariant_mass(::EXYZ,mom)
112
+
mass(::EXYZ,mom)
113
113
114
114
Return the the invariant mass of a given four-momentum, i.e. the square root of the minkowski dot with itself.
115
115
@@ -123,8 +123,8 @@ Return the the invariant mass of a given four-momentum, i.e. the square root of
123
123
If the squared invariant mass `m2` is negative, `-sqrt(-m2)` is returned.
124
124
125
125
"""
126
-
@inlinefunctioninvariant_mass(cs::EXYZ, mom)
127
-
m2 =invariant_mass2(mom)
126
+
@inlinefunctionmass(::EXYZ, mom)
127
+
m2 =mass2(mom)
128
128
if m2 <zero(m2)
129
129
# Think about including this waring, maybe optional with a global PRINT_WARINGS switch.
130
130
#@warn("The square of the invariant mass (m2=P*P) is negative. The value -sqrt(-m2) is returned.")
@@ -181,7 +181,7 @@ end
181
181
########################
182
182
"""
183
183
184
-
transverse_momentum2(::EXYZ,mom)
184
+
pt2(::EXYZ,mom)
185
185
186
186
Return the squared transverse momentum for a given four-momentum, i.e. the sum of its squared 1- and 2-component.
187
187
@@ -194,13 +194,13 @@ Return the squared transverse momentum for a given four-momentum, i.e. the sum o
194
194
The transverse components are defined w.r.t. to the 3-axis.
195
195
196
196
"""
197
-
@inlinefunctiontransverse_momentum2(::EXYZ, mom)
197
+
@inlinefunctionpt2(::EXYZ, mom)
198
198
returnpx(mom)^2+py(mom)^2
199
199
end
200
200
201
201
"""
202
202
203
-
transverse_momentum(::EXYZ, mom)
203
+
pt(::EXYZ, mom)
204
204
205
205
Return the transverse momentum for a given four-momentum, i.e. the spatial_magnitude of its transverse components.
206
206
@@ -214,13 +214,13 @@ Return the transverse momentum for a given four-momentum, i.e. the spatial_magni
214
214
The transverse components are defined w.r.t. to the 3-axis.
215
215
216
216
"""
217
-
@inlinefunctiontransverse_momentum(::EXYZ, mom)
218
-
returnsqrt(transverse_momentum2(mom))
217
+
@inlinefunctionpt(::EXYZ, mom)
218
+
returnsqrt(pt2(mom))
219
219
end
220
220
221
221
"""
222
222
223
-
transverse_mass2(::EXYZ, mom)
223
+
mt2(::EXYZ, mom)
224
224
225
225
Return the squared transverse mass for a given four-momentum, i.e. the difference of its squared 0- and 3-component.
226
226
@@ -235,13 +235,13 @@ Return the squared transverse mass for a given four-momentum, i.e. the differenc
235
235
236
236
237
237
"""
238
-
@inlinefunctiontransverse_mass2(::EXYZ, mom)
238
+
@inlinefunctionmt2(::EXYZ, mom)
239
239
returnenergy(mom)^2-pz(mom)^2
240
240
end
241
241
242
242
"""
243
243
244
-
transverse_mass(::EXYZ,mom)
244
+
mt(::EXYZ,mom)
245
245
246
246
Return the transverse momentum for a given four-momentum, i.e. the square root of its squared transverse mass.
247
247
@@ -259,8 +259,8 @@ Return the transverse momentum for a given four-momentum, i.e. the square root o
259
259
If the squared transverse mass `mt2` is negative, `-sqrt(-mt2)` is returned.
260
260
261
261
"""
262
-
functiontransverse_mass(::EXYZ, mom)
263
-
mT2 =transverse_mass2(mom)
262
+
functionmt(::EXYZ, mom)
263
+
mT2 =mt2(mom)
264
264
if mT2 <zero(mT2)
265
265
# add optional waring: negative transverse mass -> -sqrt(-mT2) is returned.
266
266
-sqrt(-mT2)
@@ -292,11 +292,11 @@ Return the [rapidity](https://en.wikipedia.org/wiki/Rapidity) for a given four-m
292
292
end
293
293
294
294
"""
295
-
pseudorapidity(::EXYZ, mom)
295
+
eta(::EXYZ, mom)
296
296
297
297
TBW
298
298
"""
299
-
functionpseudorapidity(::EXYZ, mom)
299
+
functioneta(::EXYZ, mom)
300
300
cth =cos_theta(mom)
301
301
302
302
if cth^2<one(cth)
@@ -308,7 +308,7 @@ function pseudorapidity(::EXYZ, mom)
308
308
returnzero(z)
309
309
end
310
310
311
-
@warn"Pseudorapidity: transverse momentum is zero! return +/- 10e10"
311
+
@warn"Pseudorapidity (η): transverse momentum is zero! return +/- 10e10"
312
312
if z >zero(z)
313
313
return10e10
314
314
end
@@ -364,7 +364,7 @@ end
364
364
365
365
"""
366
366
367
-
azimuthal_angle(::EXYZ, mom)
367
+
phi(::EXYZ, mom)
368
368
369
369
Return the phi angle for a given four-momentum, i.e. the azimuthal angle of its spatial components in [spherical coordinates](https://en.wikipedia.org/wiki/Spherical_coordinate_system).
370
370
@@ -377,7 +377,7 @@ Return the phi angle for a given four-momentum, i.e. the azimuthal angle of its
377
377
The [spherical coordinates](https://en.wikipedia.org/wiki/Spherical_coordinate_system) are defined w.r.t. to the 3-axis.
0 commit comments