Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72663
b: "refs/heads/CMSSW_7_1_X"
c: 9a98c2a
h: "refs/heads/CMSSW_7_1_X"
i:
  72661: 20f5a3e
  72659: 9a4c7d8
  72655: d81bf36
v: v3
  • Loading branch information
Colin Bernet committed Aug 29, 2009
1 parent 5114275 commit 3405423
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": 763afa94d616a4bf7a25b80638e2840f67e5d777
"refs/heads/CMSSW_7_1_X": 9a98c2ae08f53c37d059eaa2e1939b572b0fb046
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def sourceFileList( files ):
parser = OptionParser()
parser.usage = "%prog <dir> <regexp> : format a set of root files matching a regexp in a directory, as an input to the PoolSource."


(options,args) = parser.parse_args()

if len(args) != 2:
Expand All @@ -33,8 +34,12 @@ def sourceFileList( files ):

castor = castortools.isCastorDir( dir )

protocol = 'file'
if castor:
protocol = 'rfio'

files = castortools.matchingFiles( dir, regexp,
protocol=True, castor=castor)
protocol=protocol, castor=castor)

print '''
import FWCore.ParameterSet.Config as cms
Expand All @@ -44,7 +49,7 @@ def sourceFileList( files ):
'''
print "\tfileNames = cms.untracked.vstring("
for file in files:
fileLine = "\t\t%s'," % file
fileLine = "\t\t'%s'," % file
print fileLine
print "\t)"
print ")"

0 comments on commit 3405423

Please sign in to comment.