Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docstring corrections and suggestion #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/cross_section.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ scattering angle (`cos_theta`), i.e. the angle between the incoming electron and
This function computes the differential cross section using the following formula (from Schwartz 2014):

```math
\\frac{\\mathrm{d}\\sigma}{\\mathrm{d}\\Omega} = \\frac{\\alpha^2}{16 E_{\\mathrm{in}}^6}\\left( E_{\\text{in}}^4 + \\rho_e^2 \\rho_\\mu^2 \\cos^2\\theta + E_{\\text{in}}^2 \\left( m_e^2 + m_\\mu^2 \\right) \\right)
\\frac{\\mathrm{d}\\sigma}{\\mathrm{d}\\Omega} = \\frac{\\rho_\\mu}{\\rho_e} \\cdot \\frac{\\alpha^2}{16 E_{\\mathrm{in}}^6}\\left( E_{\\text{in}}^4 + \\rho_e^2 \\rho_\\mu^2 \\cos^2\\theta + E_{\\text{in}}^2 \\left( m_e^2 + m_\\mu^2 \\right) \\right)
```

where:
Expand Down Expand Up @@ -89,6 +89,3 @@ function total_cross_section(E_in)
# FIXME: fill me in
#
end



6 changes: 5 additions & 1 deletion src/four_momentum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Computes the Minkowski dot product of two four-momentum vectors. The dot product
Minkowski metric `(+,-,-,-)`. For ``p_i = (E_i,p_i^x,p_i^y,p_i^z)`` with ``i=1,2``, the result is:

```math
p_1 \\cdot p_2 = E_1E_2 - p_1^xp_2^x - p_1^yp_2^y + p_1^zp_2^z
p_1 \\cdot p_2 = E_1E_2 - p_1^xp_2^x - p_1^yp_2^y - p_1^zp_2^z
```

# Example
Expand Down Expand Up @@ -167,6 +167,10 @@ Constructs the four-momenta for an electron-positron annihilation process ``e^+
in the center-of-mass frame. The input energy (`E_in`), scattering angle (`cos_theta`), and azimuthal angle (`phi`)
are used to compute the incoming and outgoing momenta for the particles.

Assumes the ``e^+ e^-`` collision is colinear with the `z`-axis, and then rotates the ``\\mu^+\\mu^-`` components relative to them.
The 3-momentum magnitude is given by `rho`, for a given particle mass and energy.
The components in the ``x,y,z`` axes will be ``sin(theta) * cos(phi)``, ``sin(theta) * sin(phi)``, ``cos_theta`` respectively.

# Returns
A `Dict` mapping the particle names ("e-", "e+", "mu-", "mu+") to their respective `FourMomentum` objects.

Expand Down
Loading