From ebd87a033229caad00e75b87ad0c66b7147840f5 Mon Sep 17 00:00:00 2001
From: Christian Weber <Christian.Weber@yale.edu>
Date: Thu, 8 Aug 2019 15:51:14 -0400
Subject: [PATCH] Moved files related to m4lRange study into seperate directory

---
 m4lRangeStudy.py => optimizeM4lCut/m4lRangeStudy.py |   5 +++++
 .../testm4lStudy.root                               | Bin
 2 files changed, 5 insertions(+)
 rename m4lRangeStudy.py => optimizeM4lCut/m4lRangeStudy.py (99%)
 rename testm4lStudy.root => optimizeM4lCut/testm4lStudy.root (100%)

diff --git a/m4lRangeStudy.py b/optimizeM4lCut/m4lRangeStudy.py
similarity index 99%
rename from m4lRangeStudy.py
rename to optimizeM4lCut/m4lRangeStudy.py
index 8f331f8..1950234 100644
--- a/m4lRangeStudy.py
+++ b/optimizeM4lCut/m4lRangeStudy.py
@@ -10,6 +10,11 @@ import os
 import collections # so we can use collections.defaultdict to more easily construct nested dicts on the fly
 import resource # print 'Memory usage: %s (kb)' % resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
 
+# import sys and os.path to be able to import plotPostProcess from the parent directory
+import sys 
+from os import path
+sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) # need to append the parent directory here explicitly to be able to import plotPostProcess
+
 import plotPostProcess as postProcess
 from functions.histTools import getSmallestInterval # my own tools for ROOT histograms 
 import math # for simple math
diff --git a/testm4lStudy.root b/optimizeM4lCut/testm4lStudy.root
similarity index 100%
rename from testm4lStudy.root
rename to optimizeM4lCut/testm4lStudy.root
-- 
GitLab