Functions | |
def | copyfiles |
def | makelocal |
Variables | |
list | datfiles |
string | outdir = "/tmp/temple/inputfiles/" |
list | rootfiles |
def inputfiles::copyfiles | ( | filelist, | |
args = None |
|||
) |
Definition at line 68 of file inputfiles.py.
00069 : 00070 import string 00071 import os 00072 dir="/tmp/temple/inputfiles" 00073 if len(args)>0: 00074 dir=args[0] 00075 if not os.path.isdir(dir): 00076 print "Sorry, dir '%s' does not exist"%dir 00077 return 00078 startcount=-1 00079 endcount=9999999999 00080 if (len(args)>1): 00081 startcount=string.atoi(args[1]) 00082 if (len(args)>2): 00083 endcount=string.atoi(args[2]) 00084 00085 print "startcount = ",startcount 00086 print "endcount = ",endcount 00087 counter=0 00088 for i in filelist: 00089 if not i.startswith("/store/"): 00090 continue 00091 counter=counter+1 00092 if (counter<startcount): 00093 continue 00094 temp=string.replace(i,"/store/","/castor/cern.ch/cms/store/") 00095 cmd="rfcp %s /tmp/temple/inputfiles"%temp 00096 print cmd 00097 os.system(cmd) 00098 if (counter>=endcount): 00099 break
def inputfiles::makelocal | ( | filelist, | |
dir | |||
) |
Definition at line 100 of file inputfiles.py.
list inputfiles::datfiles |
00001 [ 00002 'file:/tmp/temple/inputfiles/Data.00128766.0001.A.storageManager.00.0000.dat', 00003 'file:/tmp/temple/inputfiles/Data.00128766.0021.A.storageManager.01.0000.dat', 00004 'file:/tmp/temple/inputfiles/Data.00128766.0041.A.storageManager.02.0000.dat', 00005 'file:/tmp/temple/inputfiles/Data.00128766.0061.A.storageManager.03.0000.dat', 00006 'file:/tmp/temple/inputfiles/Data.00128766.0081.A.storageManager.04.0000.dat', 00007 'file:/tmp/temple/inputfiles/Data.00128766.0101.A.storageManager.05.0000.dat', 00008 'file:/tmp/temple/inputfiles/Data.00128766.0121.A.storageManager.06.0000.dat', 00009 'file:/tmp/temple/inputfiles/Data.00128766.0141.A.storageManager.07.0000.dat', 00010 'file:/tmp/temple/inputfiles/Data.00128766.0161.A.storageManager.08.0000.dat', 00011 'file:/tmp/temple/inputfiles/Data.00128766.0181.A.storageManager.09.0000.dat', 00012 'file:/tmp/temple/inputfiles/Data.00128766.0201.A.storageManager.10.0000.dat', 00013 'file:/tmp/temple/inputfiles/Data.00128766.0221.A.storageManager.11.0000.dat', 00014 'file:/tmp/temple/inputfiles/Data.00128766.0241.A.storageManager.12.0000.dat', 00015 'file:/tmp/temple/inputfiles/Data.00128766.0261.A.storageManager.13.0000.dat', 00016 'file:/tmp/temple/inputfiles/Data.00128766.0281.A.storageManager.14.0000.dat', 00017 ]
Definition at line 50 of file inputfiles.py.
list inputfiles::outdir = "/tmp/temple/inputfiles/" |
Definition at line 116 of file inputfiles.py.
Definition at line 1 of file inputfiles.py.