def getMyFiles(self, dataset, user, pattern, dbsInstance, useAAA=False): # print 'getting files for', dataset,user,pattern ds = createMyDataset(user, dataset, pattern, dbsInstance, True) files = ds.listOfGoodFiles() mapping = 'root://eoscms.cern.ch//eos/cms%s' if useAAA: mapping = 'root://cms-xrd-global.cern.ch/%s' return [mapping % f for f in files]
def getMyFiles(self, dataset, user, pattern, dbsInstance, useAAA=False): # print 'getting files for', dataset,user,pattern ds = createMyDataset( user, dataset, pattern, dbsInstance, True ) files = ds.listOfGoodFiles() mapping = 'root://eoscms.cern.ch//eos/cms%s' if useAAA: mapping = 'root://cms-xrd-global.cern.ch/%s' return [ mapping % f for f in files]
def myDatasetToSource( user, dataset, pattern='.*root', dbsInstance=None, readCache=False): #print user, dataset, pattern, dbsInstance data = createMyDataset(user, dataset, pattern, dbsInstance, readCache) source = cms.Source( "PoolSource", noEventSort = cms.untracked.bool(True), duplicateCheckMode = cms.untracked.string("noDuplicateCheck"), fileNames = cms.untracked.vstring() ) #print data.listOfGoodFiles() source.fileNames.extend( data.listOfGoodFiles() ) return source
def myDatasetToSource(user, dataset, pattern='.*root', dbsInstance=None, readCache=False): #print user, dataset, pattern, dbsInstance data = createMyDataset(user, dataset, pattern, dbsInstance, readCache) source = cms.Source( "PoolSource", noEventSort=cms.untracked.bool(True), duplicateCheckMode=cms.untracked.string("noDuplicateCheck"), fileNames=cms.untracked.vstring()) #print data.listOfGoodFiles() source.fileNames.extend(data.listOfGoodFiles()) return source