示例#1
0
 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
示例#4
0
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