LorentzVector#

class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float)[source]#
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, z: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, eta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, theta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, z: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, eta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, theta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, pz: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, z: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, pz: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, z: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, pz: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, z: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, pz: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, pz: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, z: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, pz: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, theta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, theta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, theta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, theta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, eta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, eta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, eta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, eta: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, z: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, z: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, z: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, z: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, z: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, z: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, ptau: float, phi: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, ptau: float, phi: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, ptau: float, phi: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, ptau: float, phi: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, z: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, z: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, z: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, z: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, z: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pE: float, phi: float, z: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pE: float, phi: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pE: float, phi: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pE: float, phi: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, z: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, z: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, z: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, z: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, z: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pe: float, phi: float, z: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pe: float, phi: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pe: float, phi: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pe: float, phi: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, z: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, z: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, z: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, z: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, z: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pM: float, phi: float, z: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pM: float, phi: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pM: float, phi: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pM: float, phi: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, z: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, z: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, z: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, z: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, z: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pm: float, phi: float, z: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pm: float, phi: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pm: float, phi: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pm: float, phi: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, y: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, x: float, py: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, y: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, px: float, py: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, rho: float, phi: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(*, pt: float, phi: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.LorentzVector(__azimuthal: Azimuthal)
class coffea.nanoevents.methods.vector.LorentzVector(__azimuthal: Azimuthal, __longitudinal: Longitudinal)
class coffea.nanoevents.methods.vector.LorentzVector(__azimuthal: Azimuthal, __longitudinal: Longitudinal, __temporal: Temporal)

Bases: MomentumAwkward4D

A cartesian Lorentz vector

A heavy emphasis towards a momentum vector interpretation is assumed. (+, -, -, -) metric This mixin class requires the parent class to provide items x, y, z, and t.

Attributes Summary

boostvec

The x, y and z components divided by t as a ThreeVector

pvec

The x, y and z components as a ThreeVector

Methods Summary

absolute()

Magnitude of this Lorentz vector

delta_phi(other)

Compute difference in angle between two vectors

delta_r(other)

Distance between two Lorentz vectors in (eta,phi) plane

delta_r2(other)

Squared delta_r

divide(other)

Divide this vector by a scalar elementwise using its cartesian components This is realized by using the multiplication functionality

metric_table(other[, axis, metric, ...])

Return a list of a metric evaluated between this object and another.

multiply(other)

Multiply this vector by a scalar elementwise using x, y, z, and t components

nearest(other[, axis, metric, ...])

Return nearest object to this one

negative()

Returns the negative of the vector

sum([axis])

Sum an array of vectors elementwise using x, y, z, and t components

Attributes Documentation

boostvec#

The x, y and z components divided by t as a ThreeVector

This can be used for boosting. For cases where |t| <= r, this returns the unit vector.

pvec#

The x, y and z components as a ThreeVector

Methods Documentation

absolute()[source]#

Magnitude of this Lorentz vector

Alias for mass

delta_phi(other)[source]#

Compute difference in angle between two vectors

Returns a value within [-pi, pi)

delta_r(other)[source]#

Distance between two Lorentz vectors in (eta,phi) plane

\(\sqrt{\Delta\eta^2 + \Delta\phi^2}\)

delta_r2(other)[source]#

Squared delta_r

divide(other)[source]#

Divide this vector by a scalar elementwise using its cartesian components This is realized by using the multiplication functionality

metric_table(other, axis=1, metric=<function LorentzVector.<lambda>>, return_combinations=False)#

Return a list of a metric evaluated between this object and another.

The two arrays should be broadcast-compatible on all axes other than the specified axis, which will be used to form a cartesian product. If axis=None, broadcast arrays directly. The return shape will be that of self with a new axis with shape of other appended at the specified axis depths.

Parameters:
  • other (awkward.Array) – Another array with same shape in all but axis

  • axis (int, optional) – The axis to form the cartesian product (default 1). If None, the metric is directly evaluated on the input arrays (i.e. they should broadcast)

  • metric (callable) – A function of two arguments, returning a scalar. The default metric is delta_r.

  • return_combinations (bool) – If True return the combinations of inputs as well as an unzipped tuple

multiply(other)[source]#

Multiply this vector by a scalar elementwise using x, y, z, and t components

nearest(other, axis=1, metric=<function LorentzVector.<lambda>>, return_metric=False, threshold=None)#

Return nearest object to this one

Finds item in other satisfying min(metric(self, other)). The two arrays should be broadcast-compatible on all axes other than the specified axis, which will be used to form a cartesian product. If axis=None, broadcast arrays directly. The return shape will be that of self.

Parameters:
  • other (awkward.Array) – Another array with same shape in all but axis

  • axis (int, optional) – The axis to form the cartesian product (default 1). If None, the metric is directly evaluated on the input arrays (i.e. they should broadcast)

  • metric (callable) – A function of two arguments, returning a scalar. The default metric is delta_r.

  • return_metric (bool, optional) – If true, return both the closest object and its metric (default false)

  • threshold (Number, optional) – If set, any objects with metric > threshold will be masked from the result

negative()[source]#

Returns the negative of the vector

sum(axis=-1)[source]#

Sum an array of vectors elementwise using x, y, z, and t components