CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
datasetToSource Namespace Reference

Functions

def datasetToSource
 
def myDatasetToSource
 MM. More...
 

Function Documentation

def datasetToSource.datasetToSource (   user,
  dataset,
  pattern = '.*root',
  readCache = False 
)

Definition at line 7 of file datasetToSource.py.

References dataset.createDataset().

7 
8 def datasetToSource( user, dataset, pattern='.*root', readCache=False):
9 
10  # print user, dataset, pattern
11  data = createDataset(user, dataset, pattern, readCache)
12 
13  source = cms.Source(
14  "PoolSource",
15  noEventSort = cms.untracked.bool(True),
16  duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
17  fileNames = cms.untracked.vstring()
18  )
19 
20  source.fileNames.extend( data.listOfGoodFiles() )
21 
22  return source
def createDataset
Definition: dataset.py:429
def datasetToSource.myDatasetToSource (   user,
  dataset,
  pattern = '.*root',
  dbsInstance = None,
  readCache = False 
)

MM.

Definition at line 24 of file datasetToSource.py.

References dataset.createMyDataset().

24 
25 def myDatasetToSource( user, dataset, pattern='.*root', dbsInstance=None, readCache=False):
26 
27  #print user, dataset, pattern, dbsInstance
28  data = createMyDataset(user, dataset, pattern, dbsInstance, readCache)
29 
30  source = cms.Source(
31  "PoolSource",
32  noEventSort = cms.untracked.bool(True),
33  duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
34  fileNames = cms.untracked.vstring()
35  )
36 
37  #print data.listOfGoodFiles()
38  source.fileNames.extend( data.listOfGoodFiles() )
39 
return source
def createMyDataset
if user == 'CMS': data = CMSDataset( dataset ) elif user == 'LOCAL': if basedir is None: basedir = os...
Definition: dataset.py:470
def myDatasetToSource
MM.