diff --git a/Phys/B2KShh/job/download.py b/Phys/B2KShh/job/download.py index 365ac0d..ed40d82 100644 --- a/Phys/B2KShh/job/download.py +++ b/Phys/B2KShh/job/download.py @@ -58,7 +58,7 @@ os.system('%s/dirac-dms-remove-files %s' % (scripts, rootfile)) -def hadd(mylist): +def hadd(mylist, dest): #os.system('SetupProject Bender v27r0p1') paths = ['%s/%s/' % (dest, k) for k in mylist.keys()] print 'Found folders:' @@ -75,9 +75,17 @@ if __name__ == '__main__': - #mylist = getlist(265, 268) - out = '/afs/cern.ch/work/e/egraveri/Analysis/ganga/Lb2Lcmunu' - #pickle.dump(mylist, open(out + '/lfns.pkl', 'wb')) - mylist = pickle.load(open(out + '/lfns.pkl', 'rb')) - download(mylist, dest2) - #hadd(mylist) + # #mylist = getlist(302, 304) + # out = '/afs/cern.ch/work/e/egraveri/Analysis/ganga/Lb2Lcmunu' + # #pickle.dump(mylist, open(out + '/lfns.pkl', 'wb')) + # mylist = pickle.load(open(out + '/lfns.pkl', 'rb')) + # download(mylist, dest2) + # #deleteFromGrid(mylist) + # #hadd(mylist) + #mylist2 = getlist(287, 300) + out2 = "/home/hep/egraveri/cmtuser/Bender_v27r0p1/Phys/B2KShh/job" + #pickle.dump(mylist2, open(out2 + '/lfns.pkl', 'wb')) + mylist2 = pickle.load(open(out2 + '/lfns.pkl', 'rb')) + #download(mylist2, dest1) + hadd(mylist2, dest1) + #deleteFromGrid(mylist2)