Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonReinhard committed Jun 6, 2024
1 parent 1cac751 commit 398b6f1
Show file tree
Hide file tree
Showing 26 changed files with 1,012 additions and 1,272 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ julia = "1.6"
[extras]
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"

[targets]
test = ["SafeTestsets","Test"]
test = ["SafeTestsets", "Test", "Suppressor"]
53 changes: 24 additions & 29 deletions src/QEDbase.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
module QEDbase

using SimpleTraits
using ArgCheck
using ConstructionBase

import Base: *
import StaticArrays: similar_type

Expand All @@ -28,20 +24,14 @@ export setTransverseMomentum!, setPerp!, setPt!
export setTransverseMass!, setMt!
export setRapidity!

export AbstractLorentzVector, SLorentzVector, MLorentzVector, dot
export AbstractFourMomentum, SFourMomentum, MFourMomentum
export AbstractLorentzVector, dot
export AbstractFourMomentum
export isonshell, assert_onshell

export BiSpinor, AdjointBiSpinor, DiracMatrix, mul
export AbstractDiracVector, AbstractDiracMatrix
export mul

export gamma, GAMMA, AbstractGammaRepresentation, DiracGammaRepresentation, slashed

export BASE_PARTICLE_SPINOR, BASE_ANTIPARTICLE_SPINOR
export IncomingFermionSpinor,
OutgoingFermionSpinor, IncomingAntiFermionSpinor, OutgoingAntiFermionSpinor
export SpinorU, SpinorUbar, SpinorV, SpinorVbar
export @valid_spinor_input
export AbstractGammaRepresentation

# particle interface
export AbstractParticle
Expand All @@ -66,10 +56,6 @@ export AbstractDefiniteSpin, AbstractIndefiniteSpin
export SpinUp, SpinDown, AllSpin
export multiplicity

using StaticArrays
using LinearAlgebra
using DocStringExtensions

# probabilities
export differential_probability, unsafe_differential_probability
export total_probability
Expand All @@ -90,25 +76,34 @@ export particles, number_particles
export AbstractComputationSetup, InvalidInputError, compute
export AbstractProcessSetup, scattering_process, physical_model

include("interfaces/phase_space.jl")
# Abstract phase space interface
export AbstractCoordinateSystem, AbstractFrameOfReference, AbstractPhasespaceDefinition

using StaticArrays
using LinearAlgebra
using DocStringExtensions

using SimpleTraits
using ArgCheck
using ConstructionBase

include("utils.jl")

include("interfaces/dirac_tensors.jl")
include("interfaces/gamma_matrices.jl")
include("interfaces/lorentz.jl")
include("dirac_tensors.jl")
include("lorentz_vector.jl")
include("gamma_matrices.jl")
include("four_momentum.jl") # maybe go to a kinematics module!!
include("interfaces/four_momentum.jl")
include("interfaces/model.jl")

include("interfaces/particle.jl")
include("particles/types.jl")
include("interfaces/particle_types.jl")
include("interfaces/particle_functions.jl")

include("particles/direction.jl")
include("particles/spin_pol.jl")
include("particles/spinors.jl")
include("particles/states.jl")

include("interfaces/model.jl")

include("interfaces/phase_space.jl")
include("interfaces/process.jl")

include("interfaces/setup.jl")

end #QEDbase
160 changes: 0 additions & 160 deletions src/dirac_tensors.jl

This file was deleted.

Loading

0 comments on commit 398b6f1

Please sign in to comment.