ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/mjarvis/makePSet.py
(Generate patch)

Comparing UserCode/mjarvis/makePSet.py (file contents):
Revision 1.3 by mjarvis, Thu Jul 22 11:17:09 2010 UTC vs.
Revision 1.4 by mjarvis, Thu Jul 22 11:52:06 2010 UTC

# Line 28 | Line 28 | for row in rows:
28                  datasets = (row['dataset']).split(',')
29                  if len(datasets) > 1 :
30                          for dset in datasets :
31 <                                path = (row['rpath'])+string.replace(dset[1:], '/', '.')
31 >                                path = (row['rpath'])+'/'+string.replace(dset[1:], '/', '.')
32                                  paths.append(path)
33                                  shortName = (string.split(dset, '/'))[1] + "_" + (string.split(dset, '/'))[2]
34                                  shortName = string.replace(shortName,'-','_')
# Line 52 | Line 52 | for path, shortName, xsec in zip(paths,
52          # print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
53          # print "\tPath: " + path
54          
55 <        prefix = '\n' + '\t' +  "\"dcap://gfe02.grid.hep.ph.ic.ac.uk:22128/" + path[22:]
55 >        prefix = '\n' + '\t' +  "\"dcap://gfe02.grid.hep.ph.ic.ac.uk:22128/" + path + '/'
56          suffix = '.root\" ,'
57  
58          temp = commands.getstatusoutput("lcg-ls srm://gfe02.grid.hep.ph.ic.ac.uk:8443/srm/managerv2?SFN=" + path + "/ | grep -E SusyCAF_Tree_[0-9]\{1\}[0-9]\{0,1\}[0-9]\{0,1\}_[0-9] -o")
# Line 77 | Line 77 | for path, shortName, xsec in zip(paths,
77          toRemove.reverse()
78          for i in toRemove :
79                  del infile[i]
80 <                                
80 >
81          outfile = open(shortName+'.py','w')
82  
83          filenames = []

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines