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 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
-
@inlinefunctionpt2(::EXYZ, mom)
197
+
@inlinefunctionpt2(::XYZE, mom)
198
198
returnpx(mom)^2+py(mom)^2
199
199
end
200
200
201
201
"""
202
202
203
-
pt(::EXYZ, mom)
203
+
pt(::XYZE, 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
-
@inlinefunctionpt(::EXYZ, mom)
217
+
@inlinefunctionpt(::XYZE, mom)
218
218
returnsqrt(pt2(mom))
219
219
end
220
220
221
221
"""
222
222
223
-
mt2(::EXYZ, mom)
223
+
mt2(::XYZE, 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
-
@inlinefunctionmt2(::EXYZ, mom)
238
+
@inlinefunctionmt2(::XYZE, mom)
239
239
returnenergy(mom)^2-pz(mom)^2
240
240
end
241
241
242
242
"""
243
243
244
-
mt(::EXYZ,mom)
244
+
mt(::XYZE,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,7 +259,7 @@ 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
-
functionmt(::EXYZ, mom)
262
+
functionmt(::XYZE, mom)
263
263
mT2 =mt2(mom)
264
264
if mT2 <zero(mT2)
265
265
# add optional waring: negative transverse mass -> -sqrt(-mT2) is returned.
@@ -271,7 +271,7 @@ end
271
271
272
272
"""
273
273
274
-
rapidity(::EXYZ, mom)
274
+
rapidity(::XYZE, mom)
275
275
276
276
Return the [rapidity](https://en.wikipedia.org/wiki/Rapidity) for a given four-momentum.
277
277
@@ -285,18 +285,18 @@ Return the [rapidity](https://en.wikipedia.org/wiki/Rapidity) for a given four-m
285
285
The transverse components are defined w.r.t. to the 3-axis.
286
286
287
287
"""
288
-
@inlinefunctionrapidity(::EXYZ, mom)
288
+
@inlinefunctionrapidity(::XYZE, mom)
289
289
en =energy(mom)
290
290
zcomp =pz(mom)
291
291
return0.5*log((en + zcomp) / (en - zcomp))
292
292
end
293
293
294
294
"""
295
-
eta(::EXYZ, mom)
295
+
eta(::XYZE, mom)
296
296
297
297
TBW
298
298
"""
299
-
functioneta(::EXYZ, mom)
299
+
functioneta(::XYZE, mom)
300
300
cth =cos_theta(mom)
301
301
302
302
if cth^2<one(cth)
@@ -321,7 +321,7 @@ end
321
321
#######################
322
322
"""
323
323
324
-
polar_angle(::EXYZ,mom)
324
+
polar_angle(::XYZE,mom)
325
325
326
326
Return the theta angle for a given four-momentum, i.e. the polar angle of its spatial components in [spherical coordinates](https://en.wikipedia.org/wiki/Spherical_coordinate_system).
327
327
@@ -334,7 +334,7 @@ Return the theta angle for a given four-momentum, i.e. the polar angle of its sp
334
334
The [spherical coordinates](https://en.wikipedia.org/wiki/Spherical_coordinate_system) are defined w.r.t. to the 3-axis.
335
335
336
336
"""
337
-
@inlinefunctionpolar_angle(::EXYZ, mom)
337
+
@inlinefunctionpolar_angle(::XYZE, mom)
338
338
xcomp =px(mom)
339
339
ycomp =py(mom)
340
340
zcomp =pz(mom)
@@ -348,23 +348,23 @@ end
348
348
349
349
"""
350
350
351
-
cos_theta(::EXYZ, mom)
351
+
cos_theta(::XYZE, mom)
352
352
353
353
Return the cosine of the theta angle for a given four-momentum.
354
354
355
355
!!! note
356
356
357
-
This is an equivalent but faster version of `cos(polar_angle(::EXYZ, mom))`; see [`polar_angle`](@ref).
357
+
This is an equivalent but faster version of `cos(polar_angle(::XYZE, mom))`; see [`polar_angle`](@ref).
358
358
359
359
"""
360
-
@inlinefunctioncos_theta(::EXYZ, mom)
360
+
@inlinefunctioncos_theta(::XYZE, mom)
361
361
r =spatial_magnitude(mom)
362
362
returniszero(r) ?one(px(mom)) :pz(mom) / r
363
363
end
364
364
365
365
"""
366
366
367
-
phi(::EXYZ, mom)
367
+
phi(::XYZE, 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,15 +377,15 @@ 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.
Return the cosine of the azimuthal angle for a given four-momentum.
391
391
@@ -394,14 +394,14 @@ Return the cosine of the azimuthal angle for a given four-momentum.
394
394
This is an equivalent but faster version of `cos(azimuthal_angle(mom))`; see [`azimuthal_angle`](@ref).
395
395
396
396
"""
397
-
functioncos_phi(::EXYZ, mom)
397
+
functioncos_phi(::XYZE, mom)
398
398
pT =transverse_momentum(mom)
399
399
returniszero(pT) ?one(pT) :px(mom) / pT
400
400
end
401
401
402
402
"""
403
403
404
-
sin_phi(::EXYZ,mom)
404
+
sin_phi(::XYZE,mom)
405
405
406
406
Return the sine of the azimuthal angle for a given four-momentum.
407
407
@@ -410,7 +410,7 @@ Return the sine of the azimuthal angle for a given four-momentum.
410
410
This is an equivalent but faster version of `sin(azimuthal_angle(mom))`; see [`azimuthal_angle`](@ref).
411
411
412
412
"""
413
-
functionsin_phi(::EXYZ, mom)
413
+
functionsin_phi(::XYZE, mom)
414
414
pT =transverse_momentum(mom)
415
415
returniszero(pT) ?zero(pT) :py(mom) / pT
416
416
end
@@ -420,7 +420,7 @@ end
420
420
########################
421
421
"""
422
422
423
-
plus_component(::EXYZ, mom)
423
+
plus_component(::XYZE, mom)
424
424
425
425
Return the plus component for a given four-momentum in [light-cone coordinates](https://en.wikipedia.org/wiki/Light-cone_coordinates).
426
426
@@ -437,13 +437,13 @@ Return the plus component for a given four-momentum in [light-cone coordinates](
437
437
The definition ``p^+ := (E + p_z)/2` differs from the usual definition of [light-cone coordinates](https://en.wikipedia.org/wiki/Light-cone_coordinates) in general relativity.
438
438
439
439
"""
440
-
@inlinefunctionplus_component(::EXYZ, mom)
440
+
@inlinefunctionplus_component(::XYZE, mom)
441
441
return0.5* (energy(mom) +pz(mom))
442
442
end
443
443
444
444
"""
445
445
446
-
minus_component(::EXYZ, mom)
446
+
minus_component(::XYZE, mom)
447
447
448
448
Return the minus component for a given four-momentum in [light-cone coordinates](https://en.wikipedia.org/wiki/Light-cone_coordinates).
449
449
@@ -460,6 +460,6 @@ Return the minus component for a given four-momentum in [light-cone coordinates]
460
460
The definition ``p^- := (E - p_z)/2` differs from the usual definition of [light-cone coordinates](https://en.wikipedia.org/wiki/Light-cone_coordinates) in general relativity.
0 commit comments