From 2235002d5396579bc4ef5f3ab95f41db0e8769bf Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wouter.deconinck@umanitoba.ca> Date: Wed, 13 Oct 2021 00:56:33 +0000 Subject: [PATCH] VectorXYZT::mass2 --- eic_data.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/eic_data.yaml b/eic_data.yaml index b8f3160..63c6c07 100644 --- a/eic_data.yaml +++ b/eic_data.yaml @@ -180,6 +180,7 @@ components: double phi() const {return atan2(y,x);}\n double eta() const {return -log(tan(0.5*theta()));} double energy() const {return t;}\n + double mass2() const {return t*t - x*x - y*y - z*z;}\n double mass() const {return sqrt(t*t - x*x - y*y - z*z);}\n operator std::tuple<double, double, double, double>() {return {x, y, z, t};}\n double dot(const VectorXYZT& rhs) const {return t*rhs.t - x*rhs.x - y*rhs.y - z*rhs.z;}\n -- GitLab