Skip to content

Commit

Permalink
feat: add Positron
Browse files Browse the repository at this point in the history
  • Loading branch information
Beforerr committed Nov 19, 2024
1 parent 9ecf98e commit 15be5e2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/special_particles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@ const antileptons = ("e+", "mu+", "tau+", "anti_nu_e", "anti_nu_mu", "anti_nu_ta
const baryons = ("p+", "n")
const antibaryons = ("p-", "antineutron")

const mass_dicts = Dict(
:p => mp,
)

struct Electron <: AbstractLepton end
struct Positron <: AbstractLepton end
struct Muon <: AbstractLepton end
struct Neutron <: AbstractFermion end

# Properties
atomic_number(::AbstractFermion) = 0
mass_number(::AbstractFermion) = 0

## Electron
## Electron and Positron
charge_number(::Electron) = -1
mass(::Electron) = me
symbol(::Electron) = :e

charge_number(::Positron) = 1
mass(::Positron) = me
symbol(::Positron) = :e

## Muon
charge_number(::Muon) = -1
mass(::Muon) = 206.7682827me
Expand Down

0 comments on commit 15be5e2

Please sign in to comment.