Skip to content

Commit 2f169ce

Browse files
author
Uwe Hernandez Acosta
committed
made package buildable
1 parent 34fcbeb commit 2f169ce

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/cross_section.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

2-
# FIXME: implement this!
3-
@inline _rho(E,m) =
2+
@inline function _rho(E,m)
3+
#
4+
# FIXME: implement this!
5+
#
6+
end
47

58
"""
69
differential_cross_section(E_in::Real, cos_theta::Real)

src/events.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# TODO: add check for energy momentum conservation
2-
31
"""
42
Event(
53
electron_momentum,
@@ -79,7 +77,11 @@ end
7977
Event(d::Dict,weight) = Event(d["e-"],d["e+"],d["mu-"],d["mu+"],weight)
8078

8179
# construct event from coordinates
82-
Event(E_in::Real,cos_theta::Real,phi::Real,weight::Real) = # FIXME: add me
80+
function Event(E_in::Real,cos_theta::Real,phi::Real,weight::Real)
81+
#
82+
# FIXME: add me
83+
#
84+
end
8385

8486
# easy access of element type
8587
Base.eltype(::Event{T}) where T = T

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ using Test
33
using SafeTestsets
44

55
begin
6-
@safetestset "four momentum" begin
7-
include("four_momentum.jl")
8-
end
96
@safetestset "cross section" begin
107
include("differential_cross_section.jl")
118
end
9+
@safetestset "four momentum" begin
10+
include("four_momentum.jl")
11+
end
1212
@safetestset "events" begin
1313
include("events.jl")
1414
end

0 commit comments

Comments
 (0)