From 69e40856625eb0b5229a699de45fd0f98b95397c Mon Sep 17 00:00:00 2001 From: Moelf Date: Wed, 2 Oct 2024 15:25:47 +0200 Subject: [PATCH] fix deps --- Project.toml | 2 +- src/LorentzVectorHEP.jl | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Project.toml b/Project.toml index 55804ea..4806b6d 100644 --- a/Project.toml +++ b/Project.toml @@ -4,7 +4,7 @@ authors = ["Jerry Ling 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] diff --git a/src/LorentzVectorHEP.jl b/src/LorentzVectorHEP.jl index ec10c4d..104ed48 100644 --- a/src/LorentzVectorHEP.jl +++ b/src/LorentzVectorHEP.jl @@ -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 @@ -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)