From c4c35f80265232112476e2686d3a26f5e12e347f Mon Sep 17 00:00:00 2001
From: adrien-matta <a.matta@surrey.ac.uk>
Date: Mon, 12 May 2014 15:47:16 +0100
Subject: [PATCH] * now calculate the Q value correctly

---
 NPLib/Physics/NPReaction.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/NPLib/Physics/NPReaction.cxx b/NPLib/Physics/NPReaction.cxx
index 8f8a6e303..e420fd67a 100644
--- a/NPLib/Physics/NPReaction.cxx
+++ b/NPLib/Physics/NPReaction.cxx
@@ -524,6 +524,7 @@ void Reaction::initializePrecomputeVariable(){
   m2 = fNuclei2->Mass();
   m3 = fNuclei3->Mass() + fExcitation3;
   m4 = fNuclei4->Mass() + fExcitation4;
+  fQValue =fNuclei1->Mass()+fNuclei2->Mass()-fNuclei3->Mass()-fNuclei4->Mass();
   
   s = m1*m1 + m2*m2 + 2*m2*(fBeamEnergy + m1);
   fTotalEnergyImpulsionCM = TLorentzVector(0,0,0,sqrt(s));
-- 
GitLab