Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed Oct 2, 2024
1 parent d9b434b commit 69e4085
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["Jerry Ling <[email protected]> and contributors"]
version = "0.1.6"

[deps]
FourMomentumBase = "592a752d-6533-4762-a71b-738712ea30ec"
LorentzVectorBase = "592a752d-6533-4762-a71b-738712ea30ec"
LorentzVectors = "3f54b04b-17fc-5cd4-9758-90c048d965e3"

[compat]
Expand Down
14 changes: 7 additions & 7 deletions src/LorentzVectorHEP.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module LorentzVectorHEP

using FourMomentumBase
import FourMomentumBase: px, py, pz, energy, pt, rapidity, eta, phi, mt, mt2, pt, pt2, mass, mass2, azimuthal_angle
using LorentzVectorBase
import LorentzVectorBase: px, py, pz, energy, pt, rapidity, eta, phi, mt, mt2, pt, pt2, mass, mass2, azimuthal_angle

using LorentzVectors # provides x, y, z, t

Expand All @@ -15,11 +15,11 @@ export fromPtEtaPhiE
include("cartesian.jl")

include("cylindrical.jl")
FourMomentumBase.coordinate_system(::LorentzVectorCyl) = FourMomentumBase.PtEtaPhiM()
FourMomentumBase.pt(mom::LorentzVectorCyl) = mom.pt
FourMomentumBase.eta(mom::LorentzVectorCyl) = mom.eta
FourMomentumBase.phi(mom::LorentzVectorCyl) = mom.phi
FourMomentumBase.mass(mom::LorentzVectorCyl) = mom.mass
LorentzVectorBase.coordinate_system(::LorentzVectorCyl) = LorentzVectorBase.PtEtaPhiM()
LorentzVectorBase.pt(mom::LorentzVectorCyl) = mom.pt
LorentzVectorBase.eta(mom::LorentzVectorCyl) = mom.eta
LorentzVectorBase.phi(mom::LorentzVectorCyl) = mom.phi
LorentzVectorBase.mass(mom::LorentzVectorCyl) = mom.mass

# conversion
function LorentzVector(v::LorentzVectorCyl)
Expand Down

0 comments on commit 69e4085

Please sign in to comment.