From be2ff0470cc2d09f3b0056ff22127219581e4b5c Mon Sep 17 00:00:00 2001 From: Gordon McCann Date: Thu, 6 Jan 2022 14:35:05 -0500 Subject: [PATCH] Fixed bug where electron masses were subtracted twice in kinematic correction --- src/evb/FP_kinematics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/evb/FP_kinematics.cpp b/src/evb/FP_kinematics.cpp index 8c1d968..88b892b 100644 --- a/src/evb/FP_kinematics.cpp +++ b/src/evb/FP_kinematics.cpp @@ -64,10 +64,10 @@ namespace EventBuilder { B /= 10000; //convert to tesla angle *= DEGTORAD; - MT = MASS.FindMass(ZT, AT) - ZT*RESTMASS_ELECTRON*UTOMEV; - MP = MASS.FindMass(ZP, AP) - ZP*RESTMASS_ELECTRON*UTOMEV; - ME = MASS.FindMass(ZE, AE) - ZE*RESTMASS_ELECTRON*UTOMEV; - MR = MASS.FindMass(ZR, AR) - ZR*RESTMASS_ELECTRON*UTOMEV; + MT = MASS.FindMass(ZT, AT); + MP = MASS.FindMass(ZP, AP); + ME = MASS.FindMass(ZE, AE); + MR = MASS.FindMass(ZR, AR); if (MT*MP*ME*MR == 0) {