diff --git a/macros/CCEScan/batch/hadd.py b/macros/CCEScan/batch/hadd.py index c550ff0..ba8131e 100644 --- a/macros/CCEScan/batch/hadd.py +++ b/macros/CCEScan/batch/hadd.py @@ -24,5 +24,9 @@ if modtime(f) > dec15: files_to_hadd.append(f) -print files_to_hadd +#print files_to_hadd +target = temp_dir + '/CCEScan.root' +haddstring = "hadd -f %s %s" % (target, " ".join(files_to_hadd)) +print haddstring +os.system(haddstring)