Skip to content

Commit

Permalink
made package buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Hernandez Acosta committed Oct 1, 2024
1 parent 34fcbeb commit 2f169ce
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
7 changes: 5 additions & 2 deletions src/cross_section.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

# FIXME: implement this!
@inline _rho(E,m) =
@inline function _rho(E,m)
#
# FIXME: implement this!
#
end

"""
differential_cross_section(E_in::Real, cos_theta::Real)
Expand Down
8 changes: 5 additions & 3 deletions src/events.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# TODO: add check for energy momentum conservation

"""
Event(
electron_momentum,
Expand Down Expand Up @@ -79,7 +77,11 @@ end
Event(d::Dict,weight) = Event(d["e-"],d["e+"],d["mu-"],d["mu+"],weight)

# construct event from coordinates
Event(E_in::Real,cos_theta::Real,phi::Real,weight::Real) = # FIXME: add me
function Event(E_in::Real,cos_theta::Real,phi::Real,weight::Real)
#
# FIXME: add me
#
end

# easy access of element type
Base.eltype(::Event{T}) where T = T
Expand Down
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ using Test
using SafeTestsets

begin
@safetestset "four momentum" begin
include("four_momentum.jl")
end
@safetestset "cross section" begin
include("differential_cross_section.jl")
end
@safetestset "four momentum" begin
include("four_momentum.jl")
end
@safetestset "events" begin
include("events.jl")
end
Expand Down

0 comments on commit 2f169ce

Please sign in to comment.