From 9924154b9610a410a6c79f75742af73b1dacc142 Mon Sep 17 00:00:00 2001
From: adrien-matta <a.matta@surrey.ac.uk>
Date: Wed, 22 Jul 2015 10:21:37 +0100
Subject: [PATCH] * trying to fix NPToolLogon.C Failure on specific linux

---
 NPAnalysis/e628/RunToTreat.txt | 9 ++-------
 NPLib/scripts/NPToolLogon.C    | 6 ++----
 2 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/NPAnalysis/e628/RunToTreat.txt b/NPAnalysis/e628/RunToTreat.txt
index b7b97b5c0..13ca3dca4 100644
--- a/NPAnalysis/e628/RunToTreat.txt
+++ b/NPAnalysis/e628/RunToTreat.txt
@@ -1,10 +1,5 @@
 TTreeName 
-	AutoTree
+	SimulatedTree
 RootFileName 
-	/data/e628X/e628/acquisition/run_root/run_1377.0.root
-	/data/e628X/e628/acquisition/run_root/run_1377.1.root
-%	/data/e628X/e628/acquisition/run_root/run_1336.2.root
-	
-	
-
+	./Example1.root
 
diff --git a/NPLib/scripts/NPToolLogon.C b/NPLib/scripts/NPToolLogon.C
index fbec3b590..77392df7a 100644
--- a/NPLib/scripts/NPToolLogon.C
+++ b/NPLib/scripts/NPToolLogon.C
@@ -38,6 +38,8 @@ using namespace std;
 #include"TRandom.h"
 #include"TRandom2.h"
 
+void NPToolLogon(){ 
+
 #ifdef __APPLE__
 std::string LOGON_LIB_EXTENSION = ".dylib";
 #endif
@@ -48,10 +50,6 @@ std::string LOGON_LIB_EXTENSION = ".so";
 std::string LOGON_LIB_EXTENSION = ".so";
 #endif
 
-
-//#include "Style_nptool.C"
-
-void NPToolLogon(){ 
   // Create the NPTool Stype
   TString NPLPath = gSystem->Getenv("NPTOOL");  
   gROOT->ProcessLine(Form(".x %s/NPLib/scripts/Style_nptool.C",NPLPath.Data()));
-- 
GitLab