From 426a598fbf5df153f490b807c12052beccad94b7 Mon Sep 17 00:00:00 2001
From: adrien-matta <a.matta@surrey.ac.uk>
Date: Sat, 13 Jun 2015 11:37:34 +0100
Subject: [PATCH] * Adding nponline to npa

---
 NPLib/Utility/npanalysis.cxx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/NPLib/Utility/npanalysis.cxx b/NPLib/Utility/npanalysis.cxx
index 9b115d43e..afb4f98d2 100644
--- a/NPLib/Utility/npanalysis.cxx
+++ b/NPLib/Utility/npanalysis.cxx
@@ -99,6 +99,12 @@ int main(int argc , char** argv){
     }
   }
 
+  if(myOptionManager->GetOnline()){
+    // Request Detector manager to give the Spectra to the server
+    myDetector->SetSpectraServer(); 
+   
+  }
+
   std::cout << std::endl << "///////// Starting Analysis ///////// "<< std::endl;
   TChain* Chain = RootInput:: getInstance()->GetChain();
   myOptionManager->GetNumberOfEntryToAnalyse();
-- 
GitLab