6 print(
"Searching for files with pattern '",filePattern,
"' in ",inputPath)
10 for f
in popen(
"%(cmd)s %(path)s | grep '%(pattern)s'" \
11 % {
'cmd':cmd,
'path':inputPath,
'pattern':filePattern}):
12 if f[len(f)-1:]==
'\n':
14 if (inputPath[0:11]==
'/eos/atlas/'):
15 fileList+=[
'root://eosatlas.cern.ch/'+inputPath+
'/'+f]
16 elif (inputPath[0:10]==
'/eos/user/'):
17 fileList+=[
'root://eosuser.cern.ch/'+inputPath+
'/'+f]
18 elif (inputPath[0:12]==
'/eos/project'):
19 fileList+=[
'root://eosproject.cern.ch/'+inputPath+
'/'+f]
21 fileList+=[inputPath+
'/'+f]
22 print (
"Found ",len(fileList),
" files")
28 pattern=
"%(prefix)s.*%(rn)07d.%(trig)s.*" % {
'prefix' : prefix ,
'rn' : runnumber,
'trig' : trigger}
33 pattern=
"%(prefix)s.*%(trig)s.*" % {
'prefix' : prefix ,
'trig' : trigger}
38 pattern=
"%(prefix)s.*" % {
'prefix' : prefix }