From b3f979722d25c0dea0c0f9930e0492b98ffab716 Mon Sep 17 00:00:00 2001
From: flavigny <flavigny@lpccaen.in2p3.fr>
Date: Tue, 8 Sep 2020 17:20:51 +0200
Subject: [PATCH] Add Getter for Phi angles

---
 NPLib/Physics/NPQFS.cxx | 6 ++++++
 NPLib/Physics/NPQFS.h   | 1 +
 2 files changed, 7 insertions(+)

diff --git a/NPLib/Physics/NPQFS.cxx b/NPLib/Physics/NPQFS.cxx
index 0eca56b43..6f93995a9 100644
--- a/NPLib/Physics/NPQFS.cxx
+++ b/NPLib/Physics/NPQFS.cxx
@@ -156,6 +156,12 @@ void QFS::ReadConfigurationFile(NPL::InputParser parser){
           fshoot1 = blocks[i]->GetInt("ShootLight");
           fshoot2 = blocks[i]->GetInt("ShootLight");
       }
+      if(blocks[i]->HasToken("ShootLight1")){
+          fshoot1 = blocks[i]->GetInt("ShootLight1");
+      }
+      if(blocks[i]->HasToken("ShootLight2")){
+          fshoot2 = blocks[i]->GetInt("ShootLight2");
+      }
       if(blocks[i]->HasToken("PerpMomentumPath")){
           vector<string> file_perp = blocks[i]->GetVectorString("PerpMomentumPath");
           TH1F* Perptemp = Read1DProfile(file_perp[0], file_perp[1]);
diff --git a/NPLib/Physics/NPQFS.h b/NPLib/Physics/NPQFS.h
index 0016793dd..052490510 100644
--- a/NPLib/Physics/NPQFS.h
+++ b/NPLib/Physics/NPQFS.h
@@ -182,6 +182,7 @@ namespace NPL{
     bool     GetShoot2()         const        {return fshoot2;}
     bool     GetShootB()         const        {return fshootB;}
     double   GetThetaCM()        const        {return fThetaCM;}
+    double   GetPhiCM()          const        {return fPhiCM;}
     double   GetMomentumSigma()  const        {return fMomentumSigma;}
     TVector3 GetInternalMomentum() const   {return fInternalMomentum;}
  
-- 
GitLab